Skip to main content

Notifications

Announcements

No record found.

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 399

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. 

  • 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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Holly Huffman Profile Picture

Holly Huffman 103

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 96 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 51 Most Valuable Professional

Product updates

Dynamics 365 release plans