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)

On Opportunity Form load - System.Reflection.TargetInvocationException thrown by the target of an invocation

(1) ShareShare
ReportReport
Posted on by 2

Dear Experts,

Suddenly for some opportunity records, When user trying to open an opportunity, below exception is coming. Also see attached screen shot. 

InternalOperationPlugin.png

Log message from Event Logger.

The Web Service plug-in failed in OrganizationId: 48e247c0-141f-4753-9f2f-07642e9b6f64; SdkMessageProcessingStepId: bdcbbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: opportunity; Stage: 30; MessageName: Retrieve; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.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.
at Microsoft.Crm.ObjectModel.PriceService.CalculateNumerOfUnitsPerDefaultUnit(Guid defaultUomScheduleId, Guid defaultUomId, Guid uomId, ExecutionContext context)
at Microsoft.Crm.ObjectModel.PriceService.CalculatePrice(BusinessEntity entity, Guid lineItemId, Boolean skipQOIDetailPricing, Boolean overridePricePerUnitLock, Boolean overrideDiscountLock, ExecutionContext context)
at Microsoft.Crm.ObjectModel.QOIPriceService.CalculatePrice(Guid qoiId, Guid lineItemId, Boolean skipLineItemPricing, Boolean overridePricePerUnitLock, Boolean overrideDiscountLock, Boolean isModifiedBySystem, ExecutionContext context)
at Microsoft.Crm.ObjectModel.OpportunityService.CalculatePrice(Guid opportunityId, Guid opportunityProductId, Boolean skipOpportunityProductPricing, Boolean overridePricePerUnitLock, Boolean overrideDiscountLock, Boolean isModifiedBySystem, ExecutionContext context)
at Microsoft.Crm.ObjectModel.QOIService.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Boolean isModifiedBySystem, Boolean calculatePrice, Int32 state)
at Microsoft.Crm.ObjectModel.OpportunityService.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    21 on at

    Have you made any changes directly to the CRM database such as deleting price list items or price lists? It looks like the Calculate Price system step is failing when it tries to get price list data.

  • Verified answer
    Jitendra Sahu Profile Picture
    2 on at

    Thanks Scott.

    Got the issue. Actually user added some products with no pricing list. Form is working fine after removing/modify those products.

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