This question is locked. New answers and comments are not allowed.
Hello,
we have the following problem: At rare times one record (out of 120) which is part of a change set is not transferred to the ObjectContainer, the error happens sporadically.
The code snippet below demostrates what is happening: We add a change set to the ObjectContainer (wrapped a class instance called ObjRepository). Then we extract all the records from the change set and the repository and compare the count of elements.
...
we have the following problem: At rare times one record (out of 120) which is part of a change set is not transferred to the ObjectContainer, the error happens sporadically.
The code snippet below demostrates what is happening: We add a change set to the ObjectContainer (wrapped a class instance called ObjRepository). Then we extract all the records from the change set and the repository and compare the count of elements.
var changeSet = ServiceCall(serviceCallIfNotInCache);
ObjRepository.AddChangeSet(changeSet);
elements = GetAllFromObjectRepository<TItem>().Where(filter);
...
int recordsInChangeSet = changeSet.ExtractAllOfType<TItem>().Count();
if(recordsInChangeSet != elements.Count())
{
LRCFLogManager.GetLogger<LRCFClientLogging>(TierType.DataAccess).WriteFormat(TraceEventType.Warning, "Changeset contains {0} CfDataStandard records, element count : {1}", recordsInChangeSet, elements.Count());
}
We got an event log showing that the error really happend:
"Changeset contains 120 CfDataStandard records, element count : 119"
We use OpenAccess version 2011.2.713.3 because to our knowledge that is the latest version which supports the old Objectcontainer API.
My question is if such an error has already been reported and if there is a workaround or fix for that.
Thanks Thomas