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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

Retail request server error

(0) ShareShare
ReportReport
Posted on by 635

I am getting this error. Has anyone faced this? Or can point out where I am going wrong?

An error occurred during the Retail Server Request. RequestUri: XXXXXX-devret.cloud.retail.dynamics.com/.../GetTaxCodeByItem. RequestId: abd43faa-5ae8-cee7-3a07-2dd424904548. Exception: Microsoft.Dynamics.Retail.RetailServerLibrary.BadRequestException: The request URI is not valid. Since the segment 'Carts' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource.

pastedimage1605594520428v1.png

My retail server code looks like this:

Controller:

pastedimage1605594593606v2.png

EDMModelExtender

pastedimage1605594651096v3.png

CustomizedEDMModelFactory

pastedimage1605594714861v4.png

I have the same question (0)
  • Xusheng Profile Picture
    Microsoft Employee on at

    Hi,

    What is your D365 version?

    In some scenarios, requests to RetailServer, like ScanResults, that contain a '/' character as part of the parameter query string may fail with an error.

    Retail Server has been corrected to correctly parse requests containing '/' on the request parameters.

    Fix can be found in latest 10.0.10 build under KB 4565356

  • Verified answer
    Shahil Profile Picture
    635 on at

    There was an issue with the Data Service Request in POS which was returning a collection of Cart rather than a string. I regenerated the Data Service Request class using the commerceproxygenerator to get the issue resolved.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 164 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 105 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans