+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / No Transaction for DynamicModuleManager

No Transaction for DynamicModuleManager

4 posts, 0 answered
  1. Lev Rosenblit
    Lev Rosenblit avatar
    37 posts
    Registered:
    14 May 2008
    01 Sep 2012
    Link to this post
    Hello,
    In SF5.0.2800, i used transactions to commit changes done using DynamicModuleManager and other managers.
    After upgrade to SF5.1.3270, i can no longer do this. I always get the scope error when using transactions with DynamicModuleManager now:

    Object references between two different object scopes are not allowed. The object 'Telerik.Sitefinity.DynamicTypes.Model.SomeModule.SomeContentItem' is already managed by 'ObjectScopeImpl 0x19 OpenAccessRuntime.EnlistableObjectScope' and was tried to be managed again by 'ObjectScopeImpl 0x1b OpenAccessRuntime.EnlistableObjectScope'.

    The steps to reproduce the error:
    1) make a new project
    2) create a dynamic module
    3) use the Create Item code reference - but instead of GetManager() use GetManager(someTransactionName)
    4) instead of SaveChanges use TransactionManager.CommitTransaction()

    When the code finishes the data is persisted to the DB but the exception is thrown.
    Am i missing something?

    Lev.
  2. Stoimen Stoimenov
    Stoimen Stoimenov avatar
    60 posts
    Registered:
    11 Jul 2016
    05 Sep 2012
    Link to this post
    Hi Lev,

    I have answered to your question in the support ticket you have posted. You can find my answer there.

    All the best,
    Stoimen Stoimenov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Diyan
    Diyan avatar
    3 posts
    Registered:
    23 Oct 2012
    24 Sep 2012
    Link to this post
    Hi Stoimen,
    Can you provide the solution here because I have the same problem? 
  4. Stoimen Stoimenov
    Stoimen Stoimenov avatar
    60 posts
    Registered:
    11 Jul 2016
    27 Sep 2012
    Link to this post
    Hi Diyan,

    Unfortunately there isn't a workaround for now. You can vote for the PITS issue and track its progress. However we are going to try to fix this for the 5.2 release.

    Kind regards,
    Stoimen Stoimenov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered