web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing

(0) ShareShare
ReportReport
Posted on by 421

Hi,

I have a custom entity "Meeting Tracker", and in this entity I have grid of contacts (name is External Attendees). As I am adding the contacts in this grid then a plugin is executing which is updating a single line of text field in this same entity.

pastedimage1679563293973v1.png

Then my plugin is giving an error 

pastedimage1679563416371v2.png

And this error is coming with specific role and only sometime I am getting this error but with admin role it's working fine.

pastedimage1679564876652v5.png

In the Above attached code, till line number 89 "External attendees: " my code is working fine after that code is giving error at line 94 service.Update(trackerToUpdate); 

I don't understand why this error is coming only few cases, if It is the security role error then it should come every time. 

I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    RE: ISV code reduced the open transaction count. Custom plug-ins should not catch exceptions from OrganizationService calls and continue processing

    Hi Himanshu,

    The reason is that an IOrganizationService.Update was wrapped inside a try catch block:

    Please refer to the following links: 

        

    https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-apps/dataverse/dataverse-plug-ins-errors#transaction-errors 

    https://helpfulbit.com/handling-exceptions-in-plugins/ 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 182

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 125 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans