batch operations silently fail; detecting this and throwing an exception