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 :
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 23

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)
  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee 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

  • Dhara dharsandia Profile Picture
    23 on at

    Thanks for your suggestion

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans