Kelly6401

Q: Notes app: attachments is not valid

I'm experiencing a problem which started recently with the Notes app (4.2- 549.10.1) on OSX El Capitan (10.11.2).   When exiting Notes, I get the following error:

Screenshot 2015-12-23 23.40.02.png

Yes, the grammar really is that bad.  After choosing OK (not really a choice- it is the only option), this message appears

Screenshot 2015-12-23 23.40.16.png

Cancel takes me back to Notes, Quit anyway quits.  Oddly, no notes or attachments appear to be missing when I re-load Notes, but I get the same messages after every exit.  I've tried deleting some of my recently added notes, also with no apparent change.   I have a couple hundred notes in total, and only recently started experiencing these problems.

 

Any suggestions or thoughts would be greatly appreciated!

MacBook (Retina, 12-inch, Early 2015), OS X El Capitan (10.11.2), null

Posted on Dec 23, 2015 11:48 PM

Close

Q: Notes app: attachments is not valid

  • All replies
  • Helpful answers

  • by John Galt,

    John Galt John Galt Dec 24, 2015 11:57 AM in response to Kelly6401
    Level 8 (49,507 points)
    Mac OS X
    Dec 24, 2015 11:57 AM in response to Kelly6401

    Back up your Mac if you have not done so already. To learn how to do that read https://www.apple.com/support/backup/. To learn how to use Time Machine read Use Time Machine to back up or restore your Mac.

     

    First make sure all your iCloud Notes are present and intact by logging in to iCloud, and selecting Notes. Consider archiving them as described here: Archive or make copies of your iCloud data - Apple Support

     

    Then: After establishing a reasonably fast Internet connection, turn off Notes in System Preferences > iCloud, and turn it on again. Launch the Notes app and let it populate. Determine if that results in a permanent resolution.

     

    All this assumes you are using iCloud services for your Notes and not some non-Apple service such as Microsoft Exchange. Non-Apple services can be used with the Notes app but I can't help with them.

  • by Kelly6401,

    Kelly6401 Kelly6401 Dec 24, 2015 1:56 PM in response to John Galt
    Level 1 (0 points)
    Dec 24, 2015 1:56 PM in response to John Galt

    I tried your suggestion, John, but unfortunately that didn't resolve my problem.

     

    Interestingly, the first time I exited Notes after replicating, I got a slightly different error: "Multiple Validation errors".  Exiting Notes subsequently returned to the messages I was seeing previously.  All of my notes appear intact when I view them via the iCloud web app, and I don't see any errors there.

     

    And yes, I'm using iCloud services only.  In any case, thank you for giving me something to try!  If you have any other ideas I'd be happy to see them.

  • by Linc Davis,

    Linc Davis Linc Davis Dec 24, 2015 5:47 PM in response to Kelly6401
    Level 10 (207,995 points)
    Applications
    Dec 24, 2015 5:47 PM in response to Kelly6401

    Please launch the Console application in any one of the following ways:

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be All Messages. If it isn't, select

              SYSTEM LOG QUERIES â–¹ All Messages

    from the log list on the left. If you don't see that list, select

              View â–¹ Show Log List

    from the menu bar at the top of the screen.

    Click the Clear Display icon in the toolbar. Then take an action that isn't working the way you expect. Select any lines that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.

    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.

    Please don't indiscriminately dump thousands of lines from the log into this discussion.

    Please don't post screenshots of log messages—post the text.

    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

    When you post the log extract, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the forum software. Please post the text on Pastebin, then post a link here to the page you created.

    If you have an account on Pastebin, please don't select Private from the Paste Exposure menu on the page, because then no one but you will be able to see it.

  • by Kelly6401,

    Kelly6401 Kelly6401 Jan 4, 2016 11:14 AM in response to Linc Davis
    Level 1 (0 points)
    Jan 4, 2016 11:14 AM in response to Linc Davis

    Following Linc's suggestion, here are the 'interesting' log entries.

     

    When starting Notes (no errors displayed in UI):

    ====================================================================

    2016-01-04 11:08:15.706 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.706 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.706 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.706 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.707 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.707 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.707 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.707 AM Notes[11245]: Not handling constraint conflict

    2016-01-04 11:08:15.710 AM Notes[11245]: Found constraint conflicts, and we're letting the default behavior handle it: (

        "NSConstraintConflict (0x7f7fee3ef590) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7fedd3acd0> (entity: ICAttachment; id: 0x7f7feb4f9fe0 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81224> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7feda63aa0 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81225>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 138b30ce62827e762b2d55c7d79e1190;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x7f7fedb83bc0 <x-coredata:///ICNote/t969C0BD7-5146-4442-8B35-2230AF722A81215>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n    );\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7fedf05040> (entity: ICAttachment; id: 0x3c500022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p3860> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x4dcc0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4979>\\\";\\n     duration = 0;\\n    fileSize = 2867;\\n    identifier = 138b30ce62827e762b2d55c7d79e1190;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = \\\"0x4bbc0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4847>\\\";\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 0;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n        \\\"0x7f7fedcef310 <x-coredata:///ICAttachmentPreviewImage/t969C0BD7-5146-4442-8B35-2230AF722A8111 32>\\\",\\n        \\\"0x7f7fedb11070 <x-coredata:///ICAttachmentPreviewImage/t969C0BD7-5146-4442-8B35-2230AF722A8111 30>\\\"\\n    );\\n    previewUpdateDate = \\\"2015-10-21 16:37:40 +0000\\\";\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = \\\"<CKRecord: 0x7f7fee197260; recordType=Attachment, recordID=138b30ce62827e762b2d55c7d79e1190:(Notes:__defaultOwner__), recordChangeTag=1qw>\\\";\\n    sizeHeight = 62;\\n    sizeWidth = 96;\\n    summary = nil;\\n    title = \\\"cfh-1x4.gif\\\";\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3ef6c0) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7fedf107f0> (entity: ICAttachment; id: 0x7f7feb5e2230 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81226> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7feda931e0 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81227>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 99a4852a4742d366253dfd4307c9a989;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x7f7fedb83bc0 <x-coredata:///ICNote/t969C0BD7-5146-4442-8B35-2230AF722A81215>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n    );\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7fedf0ff30> (entity: ICAttachment; id: 0x419c0022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p4199> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x42940002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4261>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 99a4852a4742d366253dfd4307c9a989;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages = \\\"<relationship fault: 0x7f7fee27fc90 'previewImages'>\\\";\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3ef730) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7feda6fd10 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81219>\\\";\\n     duration = 0;\\n    fileSize = 5489;\\n    identifier = 035a220e93115cbc680564d5114c338b;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = \\\"0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768>\\\";\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 0;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n        \\\"0x7f7fede40f50 <x-coredata:///ICAttachmentPreviewImage/t969C0BD7-5146-4442-8B35-2230AF722A8127 3>\\\",\\n        \\\"0x7f7fedf15910 <x-coredata:///ICAttachmentPreviewImage/t969C0BD7-5146-4442-8B35-2230AF722A8127 1>\\\"\\n    );\\n    previewUpdateDate = \\\"2015-10-21 16:37:40 +0000\\\";\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = \\\"<CKRecord: 0x7f7fede44170; recordType=Attachment, recordID=035a220e93115cbc680564d5114c338b:(Notes:__defaultOwner__), recordChangeTag=1i4>\\\";\\n    sizeHeight = 62;\\n    sizeWidth = 422;\\n    summary = nil;\\n    title = \\\"cfh-1x1.gif\\\";\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7fedf1ada0> (entity: ICAttachment; id: 0x3ee40022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p4025> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x4df80002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4990>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 035a220e93115cbc680564d5114c338b;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages = \\\"<relationship fault: 0x7f7fee271300 'previewImages'>\\\";\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3ef650) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7fedf1a500> (entity: ICAttachment; id: 0x3ba00022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p3816> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x3e800002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4000>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 27c1ef7e211e3913d6e79fb85294d73b;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages = \\\"<relationship fault: 0x7f7fee2669e0 'previewImages'>\\\";\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7feda6b0d0> (entity: ICAttachment; id: 0x7f7fed82c080 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81222> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7fedd0d070 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81223>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 27c1ef7e211e3913d6e79fb85294d73b;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x7f7fedb83bc0 <x-coredata:///ICNote/t969C0BD7-5146-4442-8B35-2230AF722A81215>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n    );\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3efb60) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7fed8dd390> (entity: ICAttachment; id: 0x7f7fedd11800 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81232> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7feda69640 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81233>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = b545cf8c31d4a0ea49b000c71366a7bd;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x7f7fedb83bc0 <x-coredata:///ICNote/t969C0BD7-5146-4442-8B35-2230AF722A81215>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n    );\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7fedf05260> (entity: ICAttachment; id: 0x3ed80022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p4022> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x4dbc0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4975>\\\";\\n     duration = 0;\\n    fileSize = 2855;\\n    identifier = b545cf8c31d4a0ea49b000c71366a7bd;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = \\\"0x45900024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4452>\\\";\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 0;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n        \\\"0x56ec0026b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachmentPreviewImage/p55 63>\\\",\\n        \\\"0x58740026b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachmentPreviewImage/p56 61>\\\"\\n    );\\n    previewUpdateDate = \\\"2015-10-21 16:37:40 +0000\\\";\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = \\\"<CKRecord: 0x7f7fee081b80; recordType=Attachment, recordID=b545cf8c31d4a0ea49b000c71366a7bd:(Notes:__defaultOwner__), recordChangeTag=19d>\\\";\\n    sizeHeight = 49;\\n    sizeWidth = 98;\\n    summary = nil;\\n    title = \\\"verisigntrustlogo.gif\\\";\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3efc20) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7fedf0f5a0 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81229>\\\";\\n     duration = 0;\\n    fileSize = 3223;\\n    identifier = 7be57427eeb5debbe465589a6af3bcbb;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = \\\"0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675>\\\";\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 0;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n        \\\"0x7f7fedbc8ce0 <x-coredata:///ICAttachmentPreviewImage/t969C0BD7-5146-4442-8B35-2230AF722A8192 4>\\\",\\n        \\\"0x7f7fedb502c0 <x-coredata:///ICAttachmentPreviewImage/t969C0BD7-5146-4442-8B35-2230AF722A8192 6>\\\"\\n    );\\n    previewUpdateDate = \\\"2015-10-21 16:37:40 +0000\\\";\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = \\\"<CKRecord: 0x7f7fedde6f50; recordType=Attachment, recordID=7be57427eeb5debbe465589a6af3bcbb:(Notes:__defaultOwner__), recordChangeTag=1ph>\\\";\\n    sizeHeight = 50;\\n    sizeWidth = 185;\\n    summary = nil;\\n    title = \\\"paypal.gif\\\";\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7fedf0fe80> (entity: ICAttachment; id: 0x41980022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p4198> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x455c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4439>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = 7be57427eeb5debbe465589a6af3bcbb;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages = \\\"<relationship fault: 0x7f7fee295500 'previewImages'>\\\";\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3efb00) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7fedf16a40> (entity: ICAttachment; id: 0x3cbc0022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p3887> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x4de80002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4986>\\\";\\n     duration = 0;\\n    fileSize = 2132;\\n    identifier = f25fe5bdd8997eca6836c63ab0e19a29;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = \\\"0x48a80024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4650>\\\";\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 0;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n        \\\"0x44ec0026b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachmentPreviewImage/p44 11>\\\",\\n        \\\"0x43ac0026b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachmentPreviewImage/p43 31>\\\"\\n    );\\n    previewUpdateDate = \\\"2015-10-21 16:37:40 +0000\\\";\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = \\\"<CKRecord: 0x7f7fee084820; recordType=Attachment, recordID=f25fe5bdd8997eca6836c63ab0e19a29:(Notes:__defaultOwner__), recordChangeTag=18d>\\\";\\n    sizeHeight = 62;\\n    sizeWidth = 210;\\n    summary = nil;\\n    title = \\\"cfh-1x2.gif\\\";\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7feda75cc0> (entity: ICAttachment; id: 0x7f7fed8139b0 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81220> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7fedd0ce10 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81221>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = f25fe5bdd8997eca6836c63ab0e19a29;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x7f7fedb83bc0 <x-coredata:///ICNote/t969C0BD7-5146-4442-8B35-2230AF722A81215>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n    );\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)",

        "NSConstraintConflict (0x7f7fee3efdf0) for constraint (\n    identifier\n): database: (null), conflictedObjects: (\n    \"<ICAttachment: 0x7f7feda72480> (entity: ICAttachment; id: 0x7f7fedd2aa70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81230> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x7f7feb4ad2e0 <x-coredata:///ICCloudState/t969C0BD7-5146-4442-8B35-2230AF722A81231>\\\";\\n     duration = 0;\\n    fileSize = 0;\\n    identifier = b5a855dd1d9e690a8c464402852b8246;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = nil;\\n    mergeableData = nil;\\n    modificationDate = \\\"2016-01-04 19:08:06 +0000\\\";\\n    needsInitialFetchFromCloud = 1;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x7f7fedb83bc0 <x-coredata:///ICNote/t969C0BD7-5146-4442-8B35-2230AF722A81215>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n    );\\n    previewUpdateDate = nil;\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = nil;\\n    sizeHeight = 0;\\n    sizeWidth = 0;\\n    summary = nil;\\n    title = nil;\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\",\n    \"<ICAttachment: 0x7f7fedf04f60> (entity: ICAttachment; id: 0x3e500022b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachment/p3988> ; data: {\\n    checkedForLocation = 0;\\n    cloudState = \\\"0x3bc00002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p3824>\\\";\\n     duration = 0;\\n    fileSize = 2330;\\n    identifier = b5a855dd1d9e690a8c464402852b8246;\\n    location = nil;\\n    markedForDeletion = 0;\\n    media = \\\"0x49140024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4677>\\\";\\n    mergeableData = nil;\\n    modificationDate = \\\"2015-12-24 21:48:17 +0000\\\";\\n    needsInitialFetchFromCloud = 0;\\n    needsToBeFetchedFromCloud = nil;\\n    note = \\\"0x4df8001ab <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICNote/p4990>\\\";\\n    orientation = 0;\\n    originX = 0;\\n    originY = 0;\\n    previewImages =     (\\n        \\\"0x59600026b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachmentPreviewImage/p57 20>\\\",\\n        \\\"0x58a00026b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICAttachmentPreviewImage/p56 72>\\\"\\n    );\\n    previewUpdateDate = \\\"2015-10-21 16:37:40 +0000\\\";\\n    remoteFileURL = nil;\\n    section = 1;\\n    serverRecord = \\\"<CKRecord: 0x7f7fee08c190; recordType=Attachment, recordID=b5a855dd1d9e690a8c464402852b8246:(Notes:__defaultOwner__), recordChangeTag=1a8>\\\";\\n    sizeHeight = 48;\\n    sizeWidth = 125;\\n    summary = nil;\\n    title = \\\"canada4.gif\\\";\\n    typeUTI = \\\"com.compuserve.gif\\\";\\n    urlString = nil;\\n})\"\n)"

    )

    2016-01-04 11:08:15.727 AM Notes[11245]: Core Data: warning: validation recovery attempt FAILED with Error Domain=NSCocoaErrorDomain Code=1550 "mediaAttachments is not valid." UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'mediaAttachments' on managed object (0x7f7fedf168b0) <ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {

        cloudState = "0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>";

        filename = "cfh-1x1.gif";

        identifier = "FD6329D1-F9FE-489D-9D08-B514C2932F1F";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>";

    }) with objects {(

        <ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)

    )}, NSAffectedObjectsErrorKey=(

        "<ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)"

    ), NSValidationErrorObject=<ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {

        cloudState = "0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>";

        filename = "cfh-1x1.gif";

        identifier = "FD6329D1-F9FE-489D-9D08-B514C2932F1F";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>";

    }), NSLocalizedDescription=mediaAttachments is not valid., NSValidationErrorKey=mediaAttachments, NSValidationErrorShouldAttemptRecoveryKey=true} and {

        "Dangling reference to an invalid object." = "<null>";

        NSAffectedObjectsErrorKey =     (

            "<ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)"

        );

        NSLocalizedDescription = "mediaAttachments is not valid.";

        NSValidationErrorKey = mediaAttachments;

        NSValidationErrorObject = "<ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {\n    cloudState = \"0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>\";\n    filename = \"cfh-1x1.gif\";\n    identifier = \"FD6329D1-F9FE-489D-9D08-B514C2932F1F\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>\";\n})";

        NSValidationErrorShouldAttemptRecoveryKey = 1;

        NSValidationErrorValue = "Relationship 'mediaAttachments' on managed object (0x7f7fedf168b0) <ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {\n    cloudState = \"0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>\";\n    filename = \"cfh-1x1.gif\";\n    identifier = \"FD6329D1-F9FE-489D-9D08-B514C2932F1F\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>\";\n}) with objects {(\n    <ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)\n)}";

    }.

    2016-01-04 11:08:15.728 AM Notes[11245]: Core Data: warning: validation recovery attempt FAILED with Error Domain=NSCocoaErrorDomain Code=1550 "mediaAttachments is not valid." UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'mediaAttachments' on managed object (0x7f7fedf07cd0) <ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {

        cloudState = "0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>";

        filename = "paypal.gif";

        identifier = "6917FD88-61AB-4010-A1AF-F2C314C82E15";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>";

    }) with objects {(

        <ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)

    )}, NSAffectedObjectsErrorKey=(

        "<ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)"

    ), NSValidationErrorObject=<ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {

        cloudState = "0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>";

        filename = "paypal.gif";

        identifier = "6917FD88-61AB-4010-A1AF-F2C314C82E15";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>";

    }), NSLocalizedDescription=mediaAttachments is not valid., NSValidationErrorKey=mediaAttachments, NSValidationErrorShouldAttemptRecoveryKey=true} and {

        "Dangling reference to an invalid object." = "<null>";

        NSAffectedObjectsErrorKey =     (

            "<ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)"

        );

        NSLocalizedDescription = "mediaAttachments is not valid.";

        NSValidationErrorKey = mediaAttachments;

        NSValidationErrorObject = "<ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {\n    cloudState = \"0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>\";\n    filename = \"paypal.gif\";\n    identifier = \"6917FD88-61AB-4010-A1AF-F2C314C82E15\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>\";\n})";

        NSValidationErrorShouldAttemptRecoveryKey = 1;

        NSValidationErrorValue = "Relationship 'mediaAttachments' on managed object (0x7f7fedf07cd0) <ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {\n    cloudState = \"0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>\";\n    filename = \"paypal.gif\";\n    identifier = \"6917FD88-61AB-4010-A1AF-F2C314C82E15\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>\";\n}) with objects {(\n    <ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)\n)}";

    }.

    2016-01-04 11:08:15.733 AM Notes[11245]: Error saving note context: Error Domain=NSCocoaErrorDomain Code=1560 "Multiple validation errors occurred." UserInfo={NSDetailedErrors=(

        "Error Domain=NSCocoaErrorDomain Code=1550 \"mediaAttachments is not valid.\" UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'mediaAttachments' on managed object (0x7f7fedf168b0) <ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {\n    cloudState = \"0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>\";\n    filename = \"cfh-1x1.gif\";\n    identifier = \"FD6329D1-F9FE-489D-9D08-B514C2932F1F\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>\";\n}) with objects {(\n    <ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)\n)}, NSAffectedObjectsErrorKey=(\n    \"<ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)\"\n), NSValidationErrorObject=<ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {\n    cloudState = \"0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>\";\n    filename = \"cfh-1x1.gif\";\n    identifier = \"FD6329D1-F9FE-489D-9D08-B514C2932F1F\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>\";\n}), NSLocalizedDescription=mediaAttachments is not valid., NSValidationErrorKey=mediaAttachments, NSValidationErrorShouldAttemptRecoveryKey=true}",

        "Error Domain=NSCocoaErrorDomain Code=1550 \"mediaAttachments is not valid.\" UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'mediaAttachments' on managed object (0x7f7fedf07cd0) <ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {\n    cloudState = \"0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>\";\n    filename = \"paypal.gif\";\n    identifier = \"6917FD88-61AB-4010-A1AF-F2C314C82E15\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>\";\n}) with objects {(\n    <ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)\n)}, NSAffectedObjectsErrorKey=(\n    \"<ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)\"\n), NSValidationErrorObject=<ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {\n    cloudState = \"0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>\";\n    filename = \"paypal.gif\";\n    identifier = \"6917FD88-61AB-4010-A1AF-F2C314C82E15\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>\";\n}), NSLocalizedDescription=mediaAttachments is not valid., NSValidationErrorKey=mediaAttachments, NSValidationErrorShouldAttemptRecoveryKey=true}"

    )}

    ====================================================================

     

    When exiting Notes (validation errors displayed in UI:

     

    ====================================================================

    2016-01-04 11:12:28.485 AM Notes[11245]: Core Data: warning: validation recovery attempt FAILED with Error Domain=NSCocoaErrorDomain Code=1550 "mediaAttachments is not valid." UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'mediaAttachments' on managed object (0x7f7fedf07cd0) <ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {

        cloudState = "0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>";

        filename = "paypal.gif";

        identifier = "6917FD88-61AB-4010-A1AF-F2C314C82E15";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>";

    }) with objects {(

        <ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)

    )}, NSAffectedObjectsErrorKey=(

        "<ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)"

    ), NSValidationErrorObject=<ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {

        cloudState = "0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>";

        filename = "paypal.gif";

        identifier = "6917FD88-61AB-4010-A1AF-F2C314C82E15";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>";

    }), NSLocalizedDescription=mediaAttachments is not valid., NSValidationErrorKey=mediaAttachments, NSValidationErrorShouldAttemptRecoveryKey=true} and {

        "Dangling reference to an invalid object." = "<null>";

        NSAffectedObjectsErrorKey =     (

            "<ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)"

        );

        NSLocalizedDescription = "mediaAttachments is not valid.";

        NSValidationErrorKey = mediaAttachments;

        NSValidationErrorObject = "<ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {\n    cloudState = \"0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>\";\n    filename = \"paypal.gif\";\n    identifier = \"6917FD88-61AB-4010-A1AF-F2C314C82E15\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>\";\n})";

        NSValidationErrorShouldAttemptRecoveryKey = 1;

        NSValidationErrorValue = "Relationship 'mediaAttachments' on managed object (0x7f7fedf07cd0) <ICMedia: 0x7f7fedf07cd0> (entity: ICMedia; id: 0x490c0024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4675> ; data: {\n    cloudState = \"0x42340002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4237>\";\n    filename = \"paypal.gif\";\n    identifier = \"6917FD88-61AB-4010-A1AF-F2C314C82E15\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7feb52f800; recordType=Media, recordID=6917FD88-61AB-4010-A1AF-F2C314C82E15:(Notes:__defaultOwner__), recordChangeTag=mz>\";\n}) with objects {(\n    <ICAttachment: 0x7f7fedf0f6e0> (entity: ICAttachment; id: 0x7f7feb5eab60 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81228> ; data: <fault>)\n)}";

    }.

    2016-01-04 11:12:28.486 AM Notes[11245]: Core Data: warning: validation recovery attempt FAILED with Error Domain=NSCocoaErrorDomain Code=1550 "mediaAttachments is not valid." UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'mediaAttachments' on managed object (0x7f7fedf168b0) <ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {

        cloudState = "0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>";

        filename = "cfh-1x1.gif";

        identifier = "FD6329D1-F9FE-489D-9D08-B514C2932F1F";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>";

    }) with objects {(

        <ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)

    )}, NSAffectedObjectsErrorKey=(

        "<ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)"

    ), NSValidationErrorObject=<ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {

        cloudState = "0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>";

        filename = "cfh-1x1.gif";

        identifier = "FD6329D1-F9FE-489D-9D08-B514C2932F1F";

        markedForDeletion = 0;

        mediaAttachments =     (

            "0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>"

        );

        needsInitialFetchFromCloud = 0;

        needsToBeFetchedFromCloud = nil;

        serverRecord = "<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>";

    }), NSLocalizedDescription=mediaAttachments is not valid., NSValidationErrorKey=mediaAttachments, NSValidationErrorShouldAttemptRecoveryKey=true} and {

        "Dangling reference to an invalid object." = "<null>";

        NSAffectedObjectsErrorKey =     (

            "<ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)"

        );

        NSLocalizedDescription = "mediaAttachments is not valid.";

        NSValidationErrorKey = mediaAttachments;

        NSValidationErrorObject = "<ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {\n    cloudState = \"0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>\";\n    filename = \"cfh-1x1.gif\";\n    identifier = \"FD6329D1-F9FE-489D-9D08-B514C2932F1F\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>\";\n})";

        NSValidationErrorShouldAttemptRecoveryKey = 1;

        NSValidationErrorValue = "Relationship 'mediaAttachments' on managed object (0x7f7fedf168b0) <ICMedia: 0x7f7fedf168b0> (entity: ICMedia; id: 0x4a800024b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICMedia/p4768> ; data: {\n    cloudState = \"0x432c0002b <x-coredata://55CF6BB1-BED9-4402-8A9F-B0FB7E56A6BD/ICCloudState/p4299>\";\n    filename = \"cfh-1x1.gif\";\n    identifier = \"FD6329D1-F9FE-489D-9D08-B514C2932F1F\";\n    markedForDeletion = 0;\n    mediaAttachments =     (\n        \"0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218>\"\n    );\n    needsInitialFetchFromCloud = 0;\n    needsToBeFetchedFromCloud = nil;\n    serverRecord = \"<CKRecord: 0x7f7fedf147c0; recordType=Media, recordID=FD6329D1-F9FE-489D-9D08-B514C2932F1F:(Notes:__defaultOwner__), recordChangeTag=d7>\";\n}) with objects {(\n    <ICAttachment: 0x7f7feda6b4e0> (entity: ICAttachment; id: 0x7f7fedacce70 <x-coredata:///ICAttachment/t969C0BD7-5146-4442-8B35-2230AF722A81218> ; data: <fault>)\n)}";

    }.

    2016-01-04 11:12:28.508 AM iconservicesagent[316]: Failed to get the real path for: /var/folders/hd/hf6xjhm56ns802tyhmgxhf8c0000gn/C/com.apple.iconservices

    2016-01-04 11:12:32.996 AM sharingd[264]: 11:12:32.995 : SDConnectionManager:: XPC connection invalidated

     

     

    ====================================================================

  • by venusmagik,

    venusmagik venusmagik Jan 23, 2016 3:27 PM in response to Kelly6401
    Level 1 (0 points)
    Jan 23, 2016 3:27 PM in response to Kelly6401

    Did you get this resolved? I have the same problem.

     

    The console has things like:

    - LaunchServices: Could not store lsd-identifiers file at /private/var/db/lsd/com.apple.lsdschemes.plist

    - SDConnectionManager:: XPC connection invalidated

    - Error saving note context: Error Domain=NSCocoaErrorDomain Code=1550 "attachments is not valid." UserInfo={Dangling reference to an invalid object.=null, NSValidationErrorValue=Relationship 'attachments' on managed object..... (this line goes on forever).


    Many thanks

  • by Kelly6401,

    Kelly6401 Kelly6401 Jan 23, 2016 5:09 PM in response to venusmagik
    Level 1 (0 points)
    Jan 23, 2016 5:09 PM in response to venusmagik

    Unfortunately, Venusmagik, I've had no resolution.  My Notes is still fubar.

     

    I found that even Notes on iCloud via a browser will fail with an exception while looking at my notes.  Not on exit, but usually at some point while I'm scrolling through my notes. 

     

    I've tried going through and deleting notes with attachments, hoping I might accidentally / luckily find the one (or several) that are causing the 'invalid attachments' problem, but no such luck.  I've also clicked on 'report to Apple' every time the error occurs.  For now, I've basically given up on using Notes, which is disappointing as I use it a lot for keeping track of travel plans and the like.

  • by StephanOmaha,

    StephanOmaha StephanOmaha Jan 26, 2016 12:09 PM in response to Kelly6401
    Level 1 (0 points)
    Jan 26, 2016 12:09 PM in response to Kelly6401

    Same problem.

    SDConnectionManager:: XPC connection invalidated


  • by richsadams,Solvedanswer

    richsadams richsadams Jan 27, 2016 11:04 AM in response to Kelly6401
    Level 1 (84 points)
    Jan 27, 2016 11:04 AM in response to Kelly6401

    I ran into the exact same issue on my iMac just this morning. I added one item and deleted another from an existing note and received the "Multiple validation errors occurred" warning followed by the "Could not save changes while quitting. Quit anyway?" message. I clicked on "Quit anyway" then reopened Notes. The item I added was not there but the Item I deleted was gone. Quitting Notes again generated the same two messages (even though I had made no changes).

     

    I use iCloud to sync all of my notes.

     

    My iMac is running El Capitan v10.11.2 (15C50)

     

    I've no idea what caused it, but here's what I did and so far it seems to have resolved things:

     

    • Open System Preferences
    • Click on iCloud
    • Uncheck Notes and close System Preferences
    • Log into iCloud and check Notes - all notes I had made were still there
    • Log out of iCloud
    • Open Notes on iMac - all notes were gone
    • Open System Preferences
    • Click on iCloud
    • Check Notes and close System Preferences
    • Open Notes - iCloud repopulated all of my notes

     

    Closing and opening Notes, adding and deleting items and creating new notes works as expected now.

     

    BTW, I don't know if logging into iCloud and checking Notes there was important or not, but it's what I did.

     

    I don't know if something was corrupted, etc. but as mentioned Notes seems to be working normally now including syncing to my iPhone and iPad. I'll update if anything changes.

     

    Hope that helps!

  • by Kelly6401,

    Kelly6401 Kelly6401 Jan 27, 2016 5:29 PM in response to richsadams
    Level 1 (0 points)
    Jan 27, 2016 5:29 PM in response to richsadams

    Rich, I'm 99% certain that I did exactly what you described 'way back on December 24 after John Galt suggested it.  But this time it worked!

     

    If I did anything different at all, it was to be extremely careful about the sequence.  I exactly followed the steps you listed, including logging in to iCloud after unclicking Notes in System Preferences=> iCloud.  And after doing exactly what you described, I was able to enter and exit Notes several times without errors.

     

    I suppose that sometime since I last tried on December 24,  Apple could have fixed something on the iCloud side.  One point I made above was that even accessing Notes via the iCloud website was 'crashing' for me.  That doesn't seem to be happening any more either. 

     

    Or it could just be that the exact sequence you followed is necessary.  Either way, I'm happy!

  • by richsadams,

    richsadams richsadams Jan 28, 2016 10:21 AM in response to Kelly6401
    Level 1 (84 points)
    Jan 28, 2016 10:21 AM in response to Kelly6401

    Hi Kelly,

     

    Glad to hear that it worked! You're probably right about Apple updating something between then and now, but just glad it's behaving again.

     

    Cheers,

     

    Rich

  • by PanAcorn,

    PanAcorn PanAcorn Feb 10, 2016 10:27 AM in response to richsadams
    Level 1 (0 points)
    Feb 10, 2016 10:27 AM in response to richsadams

    Hello, richsadams!

     

    I had this problem on my three macbooks... And today I've found your to-do list. Thank you! I have no problems any more!!!

     

    BR, Evgueni

  • by richsadams,

    richsadams richsadams Feb 10, 2016 11:01 AM in response to PanAcorn
    Level 1 (84 points)
    Feb 10, 2016 11:01 AM in response to PanAcorn

    Awesome PanAcorn...glad to have helped.

     

    Notes continues to work normally for me as well.

     

    Cheers,

     

    Rich

  • by LaCornista,

    LaCornista LaCornista Mar 25, 2016 9:12 PM in response to richsadams
    Level 1 (9 points)
    Mar 25, 2016 9:12 PM in response to richsadams

    Thank you!! Lately I've been hit by all the weird random Apple bugs (Apple Mail on my Mac stopped coming in after El Capitan update, iOS 9 links in email, safari/Google, and some apps suddenly stopped working, etc). This is the first solution I've found for any of the random issues that have been popping up since September. It feels great to have a resolution for something!!