Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

CRM Order to GP Sales Order error

Posted on by 40

Hi,

We are having a strange issue with the Order to GP Sales Order integration. The follow is what occurs in our environment.

  1. Created an Order and filled out as many fields as possible
  2. Added two products to the order
  3. 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) 
  4. Order goes into Read Only, Status = Submitted, Status Reason = In Progress. I get an error in CRM (marked as error 1 below).
  5. 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.
  6. 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

  • Suggested answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans