CloudKit Dashboard Showing Parse Errors

I have been trying to query my records on CloudKit Dashboard, but I am getting this response on any query:

Expected this response but could not parse it: HTTP 200, text:

It then contains the JSON data. The data all looks correct.

This is on production and development. As far as I can tell, my app is able to retrieve and save data into CloudKit. But when I go to the dashboard to query my records, I am getting this error.

Any ideas how to fix it so I can see my data in a more readable way?

Answered by ForumsContributor in

Same issue here with a CKRecord created successfully. Fetching the record via query results in this same parse error. Attempting to fetch the record from iCloud fails with Record Not Found. I can fetch the record successfully in CloudKit Dashboard if I limit the fields. If I allow all I get this parse error.

Gosh Darn it. I Have the same issue. any answers or solutions on this? thanks.

Accepted Answer

This exception is thrown due to the presence of { "type": "emptyList", "value": [] } in the response. If you limit the fields to fields other than empty list fields, it should let you view the data in CK Console until a fix is deployed.

Hey @crslade,

I had the same issue that you are facing. I saw that when I created a record straight from the CloudKit dashboard, I noticed that the ids were a bit off. The recordName of the record straight from the CloudKit dashboard was a bit shorter than the one I created through code.

The Solution

Remove the recordName parameter from CKRecord.ID

extension DICategory {
    init(name: String) {
//        self.id      = CKRecord.ID(recordName: UUID().uuidString, zoneID: CKRecordZone.diApp.zoneID) - shows the parsing error when you assign recordName to a UUID()

        self.id           = CKRecord.ID(zoneID: CKRecordZone.diApp.zoneID)
        self.name    = name
        self.recipes = []
    }
}

This issue has been resolved as of September 1st, 2021. We're quite sorry that we didn't catch this sooner and that this caused so much frustration.

CloudKit Dashboard Showing Parse Errors
 
 
Q