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

Announcements

No record found.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans