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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

'Update' step is failing in plugin -throwing 'System.NullReferenceException: Object not set to an instance of an object' error

(0) ShareShare
ReportReport
Posted on by 13

Hello guys,

Thanks in advance.

We have plugin for custom entity where we are restricting record based on condition.That plugin is working fine when we registered 'Create' step on entity.

But when i registered  'update' step in plugin registration tool, it is throwing error when i perform same operation.

Error code:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): FIL_PaymentTerms.DefaultPT: System.NullReferenceException: Object reference not set to an instance of an object.Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>6c082f76-bfb8-4770-8146-549fe40626a0</ActivityId>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink>go.microsoft.com/.../
<Message>An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): FIL_PaymentTerms.DefaultPT: System.NullReferenceException: Object reference not set to an instance of an object.</Message>
<Timestamp>2020-06-02T07:04:02.4747067Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[FIL PaymentTerms: FIL_PaymentTerms.DefaultPT]
[8aabe65f-9ea4-ea11-a812-000d3af2f5fa: FIL_PaymentTerms.DefaultPT: Update of new_filpaymentterms]


</TraceText>
</OrganizationServiceFault>

I have the same question (0)
  • Dhara dharsandia Profile Picture
    13 on at

    Thanks for your suggestion

  • Suggested answer
    THE Italian Profile Picture
    on at

    This is Dynamics 365 Business Central blog.

    I think you have to submit your inquiry to Dynamics 365 (formerly CRM) blog here

    community.dynamics.com/.../sales

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

News and Announcements

Season of Giving Solutions is Here!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,472

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 684 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans