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
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
    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

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
Siv Sagar Profile Picture

Siv Sagar 283 Super User 2025 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 213 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans