
we define interface in Dynamic 365 to provide service for other vendor, when the interface is triggered, it returns the error message below, I can't find reason for this.
"ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing."
I'm having the exact same issue since today. The context is a on saving an entity, a workflow is triggered ('My workflow 1') which in turn calls an assembly function. We indeed catch an OrganizationServiceFault as reported in the exception. Was there an update on MS's end saying we shouldn't anymore?
Here is the stacktrace :
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing.Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>ebfd0bc1-ebf3-4e7f-ba5a-c147cfefac51</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<HelpLink>http%3a%2f%2fgo.microsoft.com%2ffwlink%2f%3fLinkID%3d398563%26lcid%3d1033%26error%3dMicrosoft.Crm.CrmException%26client%3dplatform%26sv%3d9.0.42.787%26de%3dLive%26opsys%3dMicrosoft+Windows+NT+10.0.14393.0%26errorCode%3d-2147220891</HelpLink>
<Message>ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing.</Message>
<Timestamp>2019-09-18T13:54:51.0495073Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[e43f9a0b-942f-e911-a964-000d3ab5a3d0: ]
Starting sync workflow 'My workflow 1', Id: d33f9a0b-942f-e911-a964-000d3ab5a3d0
Entering UpdateStep1_step:
Entering ConditionStep2_step:
Entering ConditionStep4_step:
Entering SetStateStep14_step:
Sync workflow 'My workflow 1' terminated with error 'ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing.'
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[61829f47-942f-e911-a964-000d3ab5a3d0: ]
Starting sync workflow 'My workflow 2', Id: 13795dcf-932f-e911-a964-000d3ab5a3d0
Entering ConditionStep1_step:
Sync workflow 'My workflow 2' completed successfully
Starting sync workflow 'My workflow 3', Id: 1b3f9a0b-942f-e911-a964-000d3ab5a3d0
Entering CreateStep3_step: Trace - INFO
Entering CreateStep5_step: Trace - DEBUG
Entering ConditionStep6_step:
Entering CustomActivityStep1_step:
Entering RetrieveEntity_step:
Entering CustomActivityStep2_step:
Entering CreateStep4_step: Trace - INFO
Sync workflow 'My workflow 3' completed successfully
Starting sync workflow 'My workflow 2', Id: 58829f47-942f-e911-a964-000d3ab5a3d0
Entering ConditionStep1_step:
Entering UpdateStep6_step:
Entering CustomActivityStep3_step: Get ASSET GUID
Sync workflow 'My workflow 2' terminated with error 'ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing.'
</TraceText>
</OrganizationServiceFault>