This is a migrated thread and some comments may be shown as answers.

Missing element in Objectcontainer

1 Answer 39 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thomas
Top achievements
Rank 1
Thomas asked on 19 Apr 2013, 11:00 AM
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.

 

 

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



1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 23 Apr 2013, 04:05 PM
Hello Thomas,

 The ObjectContainer is very much supported as is available in the latest version of the product also. The version you are using is quite old and we have made fixes in that area since that version. Can you update to the latest version and verify whether you still experience the problem?

All the best,
Ady
the Telerik team
Using Encrypted Connection Strings with Telerik OpenAccess ORM. Read our latest blog article >>
Tags
Development (API, general questions)
Asked by
Thomas
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or