I'm writing data, about 10 record types out to a private-zone.
One one record type, which is setup the same as all the others, I keep getting the following error
Internal Error 5004 We couldn't get share PCS data for record
Error: Optional(<CKError 0x61000044f210: "Internal Error" (1/5004); "We couldn't get share PCS data for record <CKRecordID: 0x7fea3e92eb70; recordName=21194672-3A3B-45B2-B47C-9364C5FA6B57, zoneID=Campaign-Zone:XXX>">)
Error on Record: <CKRecordID: 0x600000026e40; recordName=21194672-3A3B-45B2-B47C-9364C5FA6B57, zoneID=Campaign-Zone:XXX>
All the other records work fine. I can find nothing wrong with the Record Type Defintion. I've been working on this for a few days, and it's driving me nuts ... any help would be appreciated
Here's the basic code used to setup the CKRecord, howver
private func convert( xxx: XXX, ckRecordID: CKRecordID, recordZone: CKRecordZone ) -> CKRecord
{
let xxxID: CKRecordID = CKRecordID(recordName: xxx.objectGUID! as String, zoneID: recordZone.zoneID)
let xxxCKRecord = CKRecord(recordType: Schema.RecordType.XXX, recordID: xxxID )
let parentReference = CKReference(recordID: ckRecordID, action: .none)
xxxCKRecord.parent = parentReference
xxxCKRecord[ Schema.XXX.isActive ] = value ...
xxxCKRecord[ Schema.XXX.title ] = value ...
xxxCKRecord[ Schema.XXX.subTitle ] = value ...
xxxCKRecord[ Schema.XXX.districtNumber ] = value...
xxxCKRecord[ Schema.XXX.type ] = value ...
return xxxCKRecord
}