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:***>">)
Error on Record: <CKRecordID: 0x600000026e40; recordName=21194672-3A3B-45B2-B47C-9364C5FA6B57, zoneID=Campaign-Zone:***>
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( ***: ***, ckRecordID: CKRecordID, recordZone: CKRecordZone ) -> CKRecord
{
let xxxID: CKRecordID = CKRecordID(recordName: ***.objectGUID! as String, zoneID: recordZone.zoneID)
let xxxCKRecord = CKRecord(recordType: Schema.RecordType.***, recordID: xxxID )
let parentReference = CKReference(recordID: ckRecordID, action: .none)
xxxCKRecord.parent = parentReference
xxxCKRecord[ Schema.***.isActive ] = value ...
xxxCKRecord[ Schema.***.title ] = value ...
xxxCKRecord[ Schema.***.subTitle ] = value ...
xxxCKRecord[ Schema.***.districtNumber ] = value...
xxxCKRecord[ Schema.***.type ] = value ...
return xxxCKRecord
}