volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Transaction over ContentRepository calls

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.