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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin Exception Code -2147220956 "An unexpected error occurred from ISV code"

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a plugin registered against a custom entity in CRM to set the stageid of an incident via the regarding Entity . This is done using this snippet of code(I have stripped out the code for "Some ID").

 regardingEntity.Attributes.Add(
                    "stageid",
                    "Some ID");

                service.Update(regardingEntity);


I have profiled the code and the parameters I am passing in to the Arributes.Add() are correct. I have also changed the field I am updating on the regarding entity to a simple text field to ensure that the plugin code has access to the regarding entity and all seems to work ok. It appears that something else is happening behind the scenes in CRM and all I am getting back from the exception logs is this generic error code

-2147220956 "An unexpected error occurred from ISV code"

I was wondering if anyone has any insight into what this error code could mean. I have ruled out a number of potential problems around Security roles, Owning Users of the entities etc..


 Regards,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi Colm,

    Can you check if you have any other process, business rule [Entity], plugins etc which could trigger after this plugin?

    There is a possibility that the error is occuring from some other place. Best way is to enable/ disable and see where it starts working.

    Hope this helps.

  • ashlega Profile Picture
    34,477 on at

    If you have process entities there, you might just want to set stage id differently:

    blogs.msdn.microsoft.com/.../best-practices-for-automating-business-process-stage-progression-in-dynamics-365

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans