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

Announcements

News and Announcements icon
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,323 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 77 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 43

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans