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

Announcements

No record found.

News and Announcements icon
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 440

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

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 101 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 72

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans