BTW, I am able to save the other records successfully from the app.
When I recently encountered something similar, the problem was resolved when I editted permissions in Schema > Security Roles.
That worked. I had to check read and write for that table. Funny that I could save most of the records.
What does this mean Spok?
Schema? Security Rules? What? Where are these things?
> Schema? Security Rules? What? Where are these things?
Xcode, select the target app, Signing & Capabilities,CloudKit Dashboard
Select the container for the app on CloudKit
This gets you to the CloudKit Dashboard.
Select Development. (this may be a drop down menu at the top labelled Production)
Select Schema. (this may be a drop down menu at the top labeled Data)
Select Security Roles (This may be on a drop down menu at the top labelled Record Types)
Select the permissions for World, Authenticated and Creator.
Then you may need to deploy to production.
On your simulator or you iPhone, go to setting and sign-in to iCloud. Users are not allowed to WRITE (CREATE) records to CloudKit unless they are signed-in to Apple iCloud. This is what causes this Permission Error. Apple should obviously add more color to their error; it shouldn't be so hard for devs to debug it (but it is).