November Happy Hour will be moved to Thursday December 5th.

Transaction over ContentRepository calls

Vote:
 

Hi,

We are working on an automatic migration system, which creates many pages automatically. It would be great if all these IContentRepository calls could be done in a single transaction, but if I open a TransactionScope over all the operations, I get the following error on the second API call:

System.Transactions.TransactionException: 'The operation is not valid for the state of the transaction.'

CMS ConnectionContext seems to be an internal API, so I cannot use that one.

Is it possible to use transactions over the Content API?

Regards,

Zsolt

#255461
May 25, 2021 10:30
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.