Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

problem with service.Update()

$
0
0

I got a problem with my plugin, I'm trying to create a new record. 

I get the following error

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: error creating paymentEntity record Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>7df5f3b7-cc2c-4bd0-94d2-6777576de049</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>error creating paymentEntity record </Message>
<Timestamp>2019-04-10T14:29:00.6115061Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[BulkPayment.Replace: BulkPayment.Replace.Replace]
[6304915d-d75a-e911-a844-000d3ab48443: BulkPayment.Replace.Replace: Update of inn_bulkpayment]

begin of get selected Records
end of get selected Records


</TraceText>
</OrganizationServiceFault>

I tried to debug the code and it throw exception at "service.Create()"

Entity PaymentEntity = new Entity("inn_paymententity");
try
{
service.Create(PaymentEntity);
tracingService.Trace("done createing the new due payment in PaymentEntity with new cheque details");
}
catch (Exception ex)
{
throw new InvalidPluginExecutionException("error creating paymentEntity record ");
}


I commented all the code of attributes, most of them has value, I tried to comment the null once even tried comment the whole thing. any idea?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images