Possible Duplicate:
Coredata Error “data: <fault>”
I try to iterate through a data fetched from SQLite database using Core data. I store all fetched data from CoreData in NSMutableArray. When I iterate using for loop in this array only I can get first element in the array but the rest of element get me this error:
<Task: 0xf18b390> (entity: Task; id: 0xf18a700 <x-coredata://7388F0B7-E583-4BF0-BE64-08AD014EC583 /Task/p104> ; data: <fault>
below the code I’m using:
dispatch_sync(classificationQueue, ^{
NSMutableArray *waitingTasks = [[NSMutableArray alloc]initWithArray:[self getInsepectorTaskByTaskStatus:managedObjectContext :TASKSTATUSWAITING:CLASSIFICATIONFORMTYPE]];
for (Task *cTask in waitingTasks){
//Here when print cTask nsmanagedobject get me fault data
NSLog(@"BBBBBBB %@",cTask);
corporateName = [[NSString alloc]initWithString:(classificationWaitingTask.corporate.corporateTitle?classificationWaitingTask.corporate.corporateTitle:@"-")];
[self performSelector:@selector(sendingClassificationForm:) withObject:classificationWaitingTask];
sleep(0);
}
}
This is resolve occurring data :fault