Hi, I see the similar problem in my simple test project at Github ( at the commit: 23c759d ):
I am trying to save users of a multilanguage app into Core Data by using NSBatchInsertRequest and I am using uid,language as constraints:
and the error (when calling 2nd time) is:
`TopsBatchInsert/TopViewModel.swift:103: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134050 "(null)" UserInfo={NSExceptionOmitCallstacks=true, _NSCoreDataOptimisticLockingFailureConflictsKey=(
)}, ["_NSCoreDataOptimisticLockingFailureConflictsKey": <__NSArray0 0x102b7a9b0>(
)
, "NSExceptionOmitCallstacks": 1]
2021-07-13 16:30:02.944932+0200 TopsBatchInsert[86706:2120693] TopsBatchInsert/TopViewModel.swift:103: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134050 "(null)" UserInfo={NSExceptionOmitCallstacks=true, _NSCoreDataOptimisticLockingFailureConflictsKey=(
)}, ["_NSCoreDataOptimisticLockingFailureConflictsKey": <__NSArray0 0x102b7a9b0>(
)
, "NSExceptionOmitCallstacks": 1]