web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

Error - You do not have permission to sell non-assorted products

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Hanjia Profile Picture
    60 on at

    Hi Vikky,

    According to the error message Microsoft_Dynamics_Commerce_Runtime_WorkerDoesNotHaveAllowSaleOutsideAssortmentPermission, you may try enable 'Sell non-assorted products' in POS position permissions. This document https://docs.microsoft.com/en-us/dynamics365/commerce/sell-return-outside-assortments explain this functionality.

    pastedimage1602743778466v1.png

  • VRD Profile Picture
    on at

    Hi Hanjia,

    Thanks for your reply. I verified and it was already set there.

    We came to know that it was happening as Dynamics Business events was taking a time to update Middleware after 0 invetory is reached. Hence Middleware kept allowing orders to come. We have agreed with Tech team that they will monitor the business events for now and make sure it fires immediately after inventory goes down to 0.

    Thanks

    ~ Vikky

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 298 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 118 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans