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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error when creating an opportunity

(0) ShareShare
ReportReport
Posted on by 6

Hi,

When I create and opportunity and try to save the record I receive the following error message/code:

pastedimage1618996050499v2.png

An unexpected error occurred.

Error code: 0x80040216Session Id: d3d374d2-11a6-4b05-8670-2a85c493439eActivity Id: 865fb773-d2f0-4366-afc1-6ee6a386a99aTime: Wed Apr 21 2021 11:03:34 GMT+0200 (Central European Summer Time)
What could be the reason for this?
I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Hi,

    Seems like you have a JavaScript function registered on the Save which is failing.

    Can you download the log file? It should have more details. 

    You can also use Dev Tools and keep an eye on the console to see the error.

  • l.oliver Profile Picture
    6 on at

    Hi Wahaj Rashid,

    Thank you very much for your reply.

    I have downloaded the log file:

    Exception Message: An unexpected error occurred.

    ErrorCode: -2147220970
    HexErrorCode: 0x80040216

    ErrorDetails:
    ApiExceptionSourceKey: Plugin/Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin
    ApiStepKey: ac528ab4-6e86-eb11-b1ad-000d3a3a1b5d
    ApiDepthKey: 1
    ApiActivityIdKey: f0e642d6-f872-4552-8230-22561910b3f6
    ApiPluginSolutionNameKey: System
    ApiStepSolutionNameKey: System
    ApiExceptionCategory: SystemFailure
    ApiExceptionMesageName: UnExpected
    ApiExceptionHttpStatusCode: 400

    HelpLink: go.microsoft.com/.../

    TraceText:
    [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
    [ac528ab4-6e86-eb11-b1ad-000d3a3a1b5d: ]

    Activity Id: 2b8e95cf-bc3e-4c4c-9e36-1407391c03f8

    And this is what I found in DevTools:

    pastedimage1619039472748v1.png

    Do you have any suggestions based on the log file or screenshot of dev tools for what I should do?

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans