Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Unexpected exception from the plugin .

Posted on by

Hello All Experts,

What could be the reason the plugin throws an error intermittently.

Is it because user who are working on it are frequent or something else.

System.Aggregateexception:one or more errors occurred

 


this is happening on update event.

*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Unexpected exception from the plugin .

    You may want to use the sample code here:

    msdn.microsoft.com/.../system.aggregateexception(v=vs.110).aspx

    To parse those individual errors in the aggregateexception and to send error messages to the tracing service:

    community.dynamics.com/.../implementing-tracing-in-your-crm-plug-ins

  • EmployeeOcta Profile Picture
    EmployeeOcta on at
    RE: Unexpected exception from the plugin .

    Hello All Experts.

    You are correct to suggest me to debug the plugin, but I don't know how to debug MERGED dll.

    Also this error is intermittent and non reproducable on other instance ,except for coming in prod instance.

  • Suggested answer
    Jan Gracelin Jeno Profile Picture
    Jan Gracelin Jeno 150 on at
    RE: Unexpected exception from the plugin .

    I think you are updating the same field on which the plugin is triggered.

  • Clem Profile Picture
    Clem 2,541 on at
    RE: Unexpected exception from the plugin .

    Hello,

    Can you give more details about the exception ? Here you seem to have multiple exceptions and all of them are "merged" in one Aggregated one. But you should be able to have a look on each one via a debug.

    This should lead to the root cause of the error.

    Clément

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans