microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
58 stars 26 forks source link

Customer recall order Extension Property issue #100

Closed prawind closed 1 year ago

prawind commented 1 year ago

We have a scenario when i try to recall the old order which has been created not today and triggering the custom CRT method where we are saving the Extension property values to Cart & CartLine object and encountered an error at SaveCartRequest

at Microsoft.Dynamics.Commerce.Runtime.Workflow.CartWorkflowHelper.d__23.MoveNext() "Microsoft_Dynamics_Commerce_Runtime_InvalidShippingDate ErrorContext: Invalid delivery date 4/17/2023 11:59:59 PM -07:00 (UTC) for cartline with id 1. Delivery date should be equal or greater than today's date."

Could you please assist on this?

ghost commented 1 year ago

Hi, The failure is because the delivery date in the cart is in the past or about to be in the past: "equal or greater than today's date" To solve this problem either you need to clear the delivery date, if for this scenario it is not needed, or you need to properly update the delivery date for a future date.