better errors for batchputitem