[SOLVED] System.Exception: You cannot start a transaction with a different isolation level than is already set on the current transaction.

Introduction

I faced an error while publishing customisation of an entity using plugin which is “System.Exception: You cannot start a transaction with a different isolation level than is already set on the current transaction“. I tried to search about it, and I found that most people encountered this issue while creating custom entity and custom attribute in it.

Solution

As you can see the error details says that we cannot start a two transaction with different isolation level at time. So, I decided to change plugin execution mode from synchronous to asynchronous so we can avoid starting two transaction at a time.

I hope this will help some of you.

Thank you.

View Comments