Skip to main content

Notifications

Announcements

No record found.

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

Posted on by 379

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
    Leah Ju 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans