Hi,
I have Dynamics 365 V8.2 on-premise and I have sometimes an error "New transaction is not allowed because there are other threads running in the session" inside an asyn plugin when its calling an action.
1. I have an custom action based on account entity which will call SAP api to send crm account info to SAP
2. I have an async plugin trigged by updating a custom entity and then, it will update the a field on account entity and then call action in step 1 to send updated account infomation to sap. but sometimes , this plugin failed to execute with an error "New transaction is not allowed because there are other threads running in the session", and this error was threw when calling the action. it is very strange for me. this problem happened serveral times daily, abount 15%-30%.
3. I have a workflow which call the action in step 1, when the pluign failed to send info to sap, I will run this workflow manually and this workflows always works well, without any error.
I have searched a lot and this error and I can not found any useful information. I have also add 3 times retry today but it does has 3 times failed with the same error.
Thank you.