<div dir="ltr">It looks like core data is trying to delete something that (doesn't exist|can't be deleted). Does one of the entities have a property that is a file with a nil default value? I don't really see how what you described would trigger this problem but… that's my best guess.<div>
TJ</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 8:17 AM, Susan Cudmore <span dir="ltr"><<a href="mailto:susan.cudmore@gmail.com" target="_blank">susan.cudmore@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div>Hi All,<div><br></div><div>I’m getting desperate here, and wondering if you all can suggest some other places for me to look or things to try. I’ve been Googling for the errors listed below, but without any luck. I am able to save records to Entity1 where the relationship field is nil. But when I try to save any number of Entity2 objects connected by the relationship, I get the save error listed below. </div>
<div><br></div><div> I think my paths are correct when it comes to setting up the persistent store and the moc.</div><div><br></div><div>Thanks for any thoughts you might have!</div><div><br></div><div>/Sue</div><div><br>
</div><div><br></div><div><br></div><div>My core data entities look like (with better names of course): </div><div><br></div><div>Entity1 </div><div><br></div><div>value1</div><div>value1</div><div>relationshipToEntity2 (one to many, optional)</div>
<div><br></div><div><br></div><div>Entity2</div><div><br></div><div>value1<span style="white-space:pre-wrap"> </span></div><div>value2</div><div>relationshipToEntity1 (one to one)<br><div><br><div><br></div><br><blockquote type="cite">
<div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> Error saving event: Error Domain=NSCocoaErrorDomain Code=134030 "The operation couldn’t be completed. (Cocoa error 134030.)" UserInfo=0xc96b990 {NSAffectedStoresErrorKey=(</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> "<NSSQLCore: 0x2a5fd90> (URL:<a>file:///Users/scudmore/Library/Application%20Support/iPhone%20Simulator/7.1/Library/Documentation/qfactor/QFDataPlatform.sqlite</a>)"</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b>), NSUnderlyingError=0xc9661c0 "The operation couldn’t be completed. (Cocoa error 4.)", NSFilePath=/Users/scudmore/Library/Application Support/iPhone Simulator/7.1/Library/Documentation/qfactor/QFDataPlatform.sqlite} </b></div>
<div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b>{</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> NSAffectedStoresErrorKey = (</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> "<NSSQLCore: 0x2a5fd90> (URL:<a>file:///Users/scudmore/Library/Application%20Support/iPhone%20Simulator/7.1/Library/Documentation/qfactor/QFDataPlatform.sqlite</a>)"</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> );</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> NSFilePath = "/Users/scudmore/Library/Application Support/iPhone Simulator/7.1/Library/Documentation/qfactor/QFDataPlatform.sqlite";</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b> NSUnderlyingError = "Error Domain=NSCocoaErrorDomain Code=4 \"The operation couldn\U2019t be completed. (Cocoa error 4.)\" UserInfo=0xc9682b0 {NSUnderlyingError=0xc968290 \"The operation couldn\U2019t be completed. No such file or directory\"}";</b></div>
<div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b>}</b></div><div style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px;font-size:11px;font-family:Menlo">
<b>2014-06-18 08:00:03.605 xctest[89344:303] Error reporting event session.start</b></div></blockquote></div><br></div></div><br>_______________________________________________<br>
MacTechGroup-discuss mailing list<br>
<a href="mailto:MacTechGroup-discuss@lists.mactechgroup.org">MacTechGroup-discuss@lists.mactechgroup.org</a><br>
<a href="http://lists.mactechgroup.org/mailman/listinfo/mactechgroup-discuss" target="_blank">http://lists.mactechgroup.org/mailman/listinfo/mactechgroup-discuss</a><br>
<br></blockquote></div><br></div>