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>