“Core Data could not fulfill a fault” for objects that were not deleted
来源:互联网 发布:java框架怎么用 编辑:程序博客网 时间:2024/06/05 07:19
3down voteIt is possible that an object that was not "properly" saved to cause this behaviour.
One way to do that is:
- Insert an object in a child context
- obtain a permanent ID for that object
- save to the parent context
- obtain the object in the parent context
- refresh the object in the parent context
- access the object in the parent context (fulfil a fault for that object)
Edit:
Another way to reach this state in a single context architecture is:
- Insert an object
- obtain a permanent id for the object
- refresh the object
- try and access the object (trigger a fault on the object)
the refresh might be a result of a fetched results controller paging through the data and not necessarily something "visible" in your application.
In addition, there is a CoreData "bug" that not always allows you to catch this exception in a parent-child context architecture, but you can try ...
However, if this is the scenario you encounter, this is not a desired behaviour for your application. you are loosing the new data added to the store.
http://stackoverflow.com/questions/19994482/core-data-could-not-fulfill-a-fault-for-objects-that-were-not-deleted
3down vote
It is possible that an object that was not "properly" saved to cause this behaviour.
One way to do that is:
- Insert an object in a child context
- obtain a permanent ID for that object
- save to the parent context
- obtain the object in the parent context
- refresh the object in the parent context
- access the object in the parent context (fulfil a fault for that object)
Edit:
Another way to reach this state in a single context architecture is:
- Insert an object
- obtain a permanent id for the object
- refresh the object
- try and access the object (trigger a fault on the object)
the refresh might be a result of a fetched results controller paging through the data and not necessarily something "visible" in your application.
In addition, there is a CoreData "bug" that not always allows you to catch this exception in a parent-child context architecture, but you can try ...
However, if this is the scenario you encounter, this is not a desired behaviour for your application. you are loosing the new data added to the store.
0 0
- “Core Data could not fulfill a fault” for objects that were not deleted
- Core Data could not fulfill a fault
- RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
- RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
- [Rman]RMAN-06207 WARNING:2 objects could not be deleted for DISK channel(s) due
- RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due to mismatched status
- org.codehaus.xfire.fault.XFireFault: Not enough message parts were received for the operation.
- org.apache.cxf.interceptor.Fault: Could not initialize class org.springframework.jdbc.core.Statement
- The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not refere
- could not disable core file generation for pid 18102: Operation not permitted
- tomcat进行redeploy时出错:could not be completely deleted
- Could not extract package's data directory. Are you sure that your installed application is debuggab
- that a few good not
- 记录A component required a bean named 'studentService' that could not be found.
- could not find a getter for in class方法解决
- org.hibernate.PropertyNotFoundException: Could not find a getter for XXX
- could not find a getter for ... in class ...
- hibernate 报错:Could not find a getter for ~
- 初窥ElasticSearch
- Less mobile, more everything-重新思考Mobile
- 兔子--html,js,php,ASP,ASP.NET,JSP的关系
- 1: 错误: 非法字符: \65279
- vs2008 C++项目连接mysql数据库详解
- “Core Data could not fulfill a fault” for objects that were not deleted
- android sdk更新hosts修改
- LeetCode || Rotate Array
- adb shell 命令详解
- [学习笔记—算法] 打印1~10整数的阶乘表
- 各大搜索引擎自动提示API
- 1.安装MySQL
- Zend_Form Decorators使用实例
- 提高代码性能效率总结(一)--Java