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)

Unexpected Error when opening Opportunities

(0) ShareShare
ReportReport
Posted on by 1,328

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

I have the same question (0)
  • Suggested answer
    Clem Profile Picture
    2,541 on at

    Hi,

    Have you tried an IISReset ?

    Clément

  • epark06 Profile Picture
    1,328 on at

    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)

  • epark06 Profile Picture
    1,328 on at

    [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
    1,328 on at

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

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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
    1,328 on at

    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.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Verified answer
    epark06 Profile Picture
    1,328 on at

    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.

  • Community Member Profile Picture
    on at

    HI,

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

  • epark06 Profile Picture
    1,328 on at

    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.

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