Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / ISV code reduced the o...
Sales forum
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 354

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. 

Categories:
  • 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/ 

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,986 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,588 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans