0 Replies
      Latest reply on Oct 24, 2019 2:08 PM by maymard
      maymard Level 1 Level 1 (0 points)

        I have two CKRecords, say RecA and RecB, where RecA has a CKReference to RecB. When I delete both records in one call using CKModifyRecordsOperation, everything works as expected.

         

        But now I've added the ability to share these records, and have set RecA as the parent of RecB. Now when I try to delete them, I get a CKError stating: "Reference Viloation", "Record delete would violate validating reference". I know that I could probably delete RecB first, but I don't want to have to make two separate calls.

         

        My CKReference specifies an action of CKRecord.Reference.Action.none. When I tried using deleteSelf, I got "Cycle detected in record graph error when creating the records.

         

        Any help would be greatly appreciated!