Missing element in Objectcontainer

Thread is closed for posting
2 posts, 0 answers
  1. Thomas
    Thomas avatar
    2 posts
    Member since:
    Sep 2008

    Posted 19 Apr 2013 Link to this post


    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);



    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

  2. Ady
    Ady avatar
    589 posts

    Posted 23 Apr 2013 Link to this post

    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,
    the Telerik team
    Using Encrypted Connection Strings with Telerik OpenAccess ORM. Read our latest blog article >>
Back to Top