Hi,
We have anexternal web sit that collects the sales orders from customers and then we have middleware developed by our team which pushes these orders into Dynamics 365 through Retail (RCSU).
We have items with the limited inventory and our external system should not sell more than this inventory. It takes few seconds for Dynamics to inform middleware about the 0 inventory has been reached. By that time, it would have already accepted few sales orders from the external system and when middleware tries to push them to dynamics, it gets below error.
Failed to process order. An error occurred while processing this request. (An error occurred while processing this request. ({ "TypeName": "DataValidationException", "Exception": "{\r\n \"ValidationResults\": [],\r\n \"ErrorResourceId\": \"Microsoft_Dynamics_Commerce_Runtime_WorkerDoesNotHaveAllowSaleOutsideAssortmentPermission\",\r\n \"LocalizedMessage\": \"You do not have permission to sell non-assorted products. To order the products, change the transaction to a customer order or contact your system administrator.\"\r\n}", "CorrelationId": "59c7e19d-67da-4968-a247-1190da1940f2" }))
Please note that below action occurs in the dynamics when threshold is breached.
1. Dynamics excludes the products from retail assortments. Distribution schedule job sends this info to RCSU. I think these makes RCSU returned the above error.
2. Dynamics sends signal to middleware that it reached to 0 inventory level for a particular product.
All we want is o allow all the sales orders accepted by middleware ( before it gets the signal from Dynamics to stop accepting new sales orders) to be pushed to Dynamics successfully.
Can someone please suggest the solution how to achieve this in the given scenario? Also, Does this error thrown by RCSU itself to middelware as we don't find such error text in any of standard Microsoft Label files?
Thanks
- Vikky