Contents

CKError.Code.batchRequestFailed

An error that occurs when the system rejects the entire batch of changes.

Declaration

case batchRequestFailed

Discussion

This error occurs when an operation attempts to save multiple items in a custom zone, but one of those items encounters an error. Because custom zones are atomic, the entire batch fails. The items that cause the problem have their own errors, and all other items in the batch have a CKError.Code.batchRequestFailed error to indicate that the system can’t save them.

This error indicates that the system can’t process the associated item due to an error in another item in the operation. Check the other per-item errors under CKPartialErrorsByItemIDKey for any that aren’t CKError.Code.batchRequestFailed errors. Handle those errors, and then retry all items in the operation.

See Also

Error Codes