Developer forum

Forum » Integration » Update has been canceled

Update has been canceled

Martin Moen
Reply

We sometimes see this error when creating orders in D365 F&O.

09-19-2023 01:21:37.255 : ConnectionError: Error CalculateOrder Order Id:'ORDERXXXX' CreateOrder:'True' Message:'The remote server returned an error: (500) Internal Server Error. Response: Fault was thrown by the service for request 937870f7-368a-4bd6-9b6b-xxxxxxxxx. Exception details:
Type: Microsoft.Dynamics.Ax.Xpp.ErrorException
Message: Update has been canceled.'.


Anyone seen this before? Often when we try to place the same order again later it is fine.
If anyone has some information about this error, please share :)


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
 
Carolee Schuck Dynamicweb Employee
Carolee Schuck
Reply
This post has been marked as an answer

Hi Martin,

Nicolai's right. 

The error can be thrown for the same number of reasons you'd get a validation error when entering an order in F&O manually.  Maybe the customer is on hold or over their credit limit, maybe an item on the order is not eligible for purchase.

It's unusual for the order to successfully create later, though.  Is the client being informed that there's a problem and they're fixing it?

To narrow the problem to the header vs line, you can throw an error if the validate method for either is unsuccessful, or similarly when checking for the existence of the customer or item.

Carolee

Votes for this answer: 1

 

You must be logged in to post in the forum