1

The last few days I see that some users are generating a lot of errors that are labeled as "ATOMIC_ERROR" in the CloudKit dashboard Telemetry view. I have search a bit on this, but I see only some documentation related to CloudKit JS. I don't use that, I just use the standard CloudKit library within a multiplatform macOS/iOS/tvOS app.

  • To which CKError does ATOMIC_ERROR map? CKErrorPartialFailure perhaps?
  • What's the universal way to replicate this error?
  • How to prevent this error?

BTW: I'm aware of property isAtomic. I always set property isAtomic in batch updates to false, because I don't need data integrity between multiple records in one zone. Therefore I don't expect 'atomic' related errors.

Ely
  • 8,259
  • 1
  • 54
  • 67
  • There have a property `isAtomic` in `CKModifyRecordsOperation`, maybe you can start your investigation from that. https://developer.apple.com/documentation/cloudkit/ckmodifyrecordsoperation/1447484-isatomic – Jonny Jul 30 '17 at 03:44
  • I'm aware of property `isAtomic`. I always set property `isAtomic` to false, because I don't need data integrity between multiple records in one zone. Therefore I don't expect 'atomic' related errors. – Ely Jul 30 '17 at 08:52
  • Are you trying to upload ckrecord with a recordName that is already existed on iCloud server? – Wael Showair Mar 11 '18 at 05:17
  • @wael I use `CKModifyRecordsOperation`. So when the recordName is unknown in iCloud, it will be added, otherwise the existing record will be updated. – Ely Mar 11 '18 at 12:54

0 Answers0