Hi,
We are having a strange issue with the Order to GP Sales Order integration. The follow is what occurs in our environment.
- Created an Order and filled out as many fields as possible
- Added two products to the order
- Clicked Submit Order, this updates the Integration key to the same value as the Order Num, something like: ORD-01109-G1K6Z6. I did notice with an Order that came FROM GP (using the GP Sales Order to Order map) that the integration key is the GP order number (ORD0016)
- Order goes into Read Only, Status = Submitted, Status Reason = In Progress. I get an error in CRM (marked as error 1 below).
- The Connector tries to copy the record across but has a validation error (Error 2 below). The error details doesn't actually show much info.
- On a whim I then clicked the Cancel Order button, checked the Connector logs and it shows as 1 successful integration to GP! Maybe the failure has something to do with the Status.
I have no access to the GP server (I work for a CRM consulting firm and know CRM very well).
Any assistance would be greatly appreciated. I'm totally stuck and hoping for some help!
Thanks
Error 1 (CRM Plugin Error in form)
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The entity cannot be updated because it is read-only.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220946</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>The entity cannot be updated because it is read-only.</Message>
<Timestamp>2016-05-22T11:49:54.5015688Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Error 2 (from GP Web Services Console)
at Microsoft.Dynamics.GP.EConnectAdapter.ExecuteWrite(String xml, String typeName, Context context, BusinessEvent eventType, BusinessObjectEventArgs args, EventLocation eventLocation)
at Microsoft.Dynamics.GP.EConnectAdapter.Create(BusinessObject businessObject, Context context, Policy policy)
at Microsoft.Dynamics.GP.GreatPlainsBusinessService.PersistForCreate(BusinessObject businessObject, Context context, Policy policy)
at Microsoft.Dynamics.Common.BusinessService.Create(BusinessObject businessObject, Context context, Policy policy)
*This post is locked for comments