Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unexpected Error when opening Opportunities

Posted on by 1,320

We are getting an Unexpected Error with no error log when trying to open certain Opportunity records. I am system admin. I am able to search for these opps in global and advanced find, but I get this error when trying to open them. I also cannot open records related to the opportunity ie Orders. This started to happen while I was debugging a new plugin on the Order entity, so that might be related. Looking through tracing I don't see any specific causes for this error, but I've included some excerpts below. 

6567.Capture6.PNG

Excerpts from trace logs:

at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B
>exit: ConvertMessageAndErrorCode: errorCode: 0x80040216; message: System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #029AE6A6
[2018-03-20 22:21:11.649] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 27 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 8d03ac40-3d2c-4f12-b2bf-ed7028ec9db5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2B

>Message (29): An unexpected error occurred.
>StackTrace <null>
>no PluginTrace
>>>>>> FAULT: 0
>ErrorCode: 0x80040216: ErrorCodes.UnExpected
>Message (29): An unexpected error occurred.
>Timestamp: present
>TraceText <null> 
>CallStack <null>
>>>>>> FAULT: 1
>ErrorCode: 0x80040216: ErrorCodes.UnExpected
>Message (137): System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #029AE6A6
>Timestamp: present
>TraceText <null> 
>CallStack <null>
>InnerFault <null>
><<<<< FAULT: 1
>InnerException <null>
><<<<< EXCEPTION: 0

*This post is locked for comments

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Unexpected Error when opening Opportunities

    Hi, I first changed the UOM on the product to match whatever was on the opp product that I couldn't open (You need to do this because you won't even be able to delete the opp product if the UOMs don't match). Then I deleted the opp product, changed the UOM back on the product, then recreated the opp product which should default to the correct UOM on the product.

    Instead of deleting the opp product, you can also use a Level Up Chrome extension to enable God Mode so you can edit the Default UOM field, which is locked. Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unexpected Error when opening Opportunities

    HI,

    Can you tell me how did you debugged the issue? I am having same error while creating a new opportunity

  • Verified answer
    epark06 Profile Picture
    epark06 1,320 on at
    RE: Unexpected Error when opening Opportunities

    I was able to determine the cause of the issue. The UoM on a particular product was changed to a different value (FEE) than the Unit that was on the associated opportunity product (EACH). CRM was trying to pass the ID of EACH to the product, therefore throwing the null exception because the unit did not match. This was causing opportunities and their related order products to throw the Unexpected Error.

    Key piece of info: Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Unexpected Error when opening Opportunities

    Hi,

    Can you try disable the plugins, javascript related to this entity/ form and see if it works?

    community.dynamics.com/.../213891

    Hope this helps.

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Unexpected Error when opening Opportunities

    Found in Event Viewer:

    Log Name:      Application

    Source:        MSCRMWebService

    Date:          3/21/2018 4:00:55 PM

    Event ID:      18176

    Task Category: None

    Level:         Error

    Keywords:      Classic

    User:          N/A

    Computer:      VABCRM.absnt.local

    Description:

    The Web Service plug-in failed in OrganizationId: 9105fbc5-cb41-e511-80c5-0050569110f8; SdkMessageProcessingStepId: bdcbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: opportunity; Stage: 30; MessageName: Retrieve; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

      at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

      at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

      at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

    Inner Exception: System.NullReferenceException: Object reference not set to an instance of an object.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Unexpected Error when opening Opportunities

    Hi,

    I have noticed this issue also comes when you have multiple role based forms or business process flow with enable  security role in that entity.

    So you can check security role whether its assigned to the form or business process flow.

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Unexpected Error when opening Opportunities

    I have also tried un-registering the recently created plugin and re-opening records, but same issue.

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Unexpected Error when opening Opportunities

    [quote user="Clement"]

    Hi,

    Have you tried an IISReset ?

    Clément

    [/quote]

    Yes, we just reset all our services, including IIS, async, and sandbox. I cleared my browser cache and still same issue in Chrome and IE.

  • epark06 Profile Picture
    epark06 1,320 on at
    RE: Unexpected Error when opening Opportunities

    I've noticed there are a few system jobs waiting on these opps with the following error msg:

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.Detail:
    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>An unexpected error occurred.</Message>
    <Timestamp>2018-03-21T01:47:44.3127398Z</Timestamp>
    <InnerFault>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #B0A2A6A7</Message>
    <Timestamp>2018-03-21T01:47:44.3127398Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
    </InnerFault>
    <TraceText i:nil="true" />
    </OrganizationServiceFault>
    at Microsoft.Crm.Workflow.WorkflowContextBase.RetrievePrimaryEntity(EntityDependencyBase entityDependency)
    at Microsoft.Crm.Workflow.WorkflowContextBase.RetrieveEntityInstances()
    at Microsoft.Crm.Workflow.ActivityHost.StartWorkflowExecution(Activity workflow, ICommonWorkflowContext context)
    at Microsoft.Crm.Workflow.ActivityHostBase.StartWorkflow(ICommonWorkflowContext context, Activity preLoadedActivity)

  • Suggested answer
    Clem Profile Picture
    Clem 2,541 on at
    RE: Unexpected Error when opening Opportunities

    Hi,

    Have you tried an IISReset ?

    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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans