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

Error when trying to add item or customer to the cart on Development environment

(0) ShareShare
ReportReport
Posted on by 1,457

I am on V10.0.28 (10.0.1265.49). I am still using RetailSDK.

For some reason I cannot add a product or customer to the cart on my cloud hosted development environment. I run it out of Visual Studio because I am testing changes I made.

I deleted all my changes for th eone ticket I wok on because I thought I must have done something in my custom that it doesn't like.

I even deleted the retailSDK under my C-drive where I work and copied it again from the K-drive under RetailSDK/Updates and rebuild it to make sure all is good there as well.

But when I click on the error to add the product or the customer to my cart, I get an error that it cannot process it at this time, I should try later again.

When looking under the developer tools to see what the real error is, for the product adding to the cart it is:

Failed to load resource: the server responded with a status of 500 ()
The Retail Server Request with request id '...' and request url '/GetById(channelId=)?api-version=7.3' failed.  Error: We cannot process your request at this time. Please try again later., Status code 500.
Diagnostics.TypeScriptCore.js:572 Adding products to the cart on the SearchViewModel finished failed. Errors: We cannot process your request at this time. Please try again later. 
Command with id ProductSearch_addItemsToCartAndNavigateToCartCommand execution failed. Error Code: Microsoft_Dynamics_Internal_Server_Error. Error Details: ["{\"stack\":\"CommerceExceptionError: An error occurred on server while processing this request.\\n    at CommerceExceptionError.CommerceError [as constructor]

Adding a customer to the cart, I get the following error:

Failed to load resource: the server responded with a status of 500 ()
The Retail Server Request with request id '' and request url '/Commerce/Carts?api-version=7.3' failed.  Error: We cannot process your request at this time. Please try again later., Status code 500.
Operation execution failed for operation Customer (600) with error: ["{\"stack\":\"CommerceExceptionError: An error occurred on server while processing this request.\\n    at CommerceExceptionError.CommerceError [as constructor] 

My original custom has nothing to do with the cart. I added an appBar button on the  customer grid view page, not the detail page which called a totally custom view. I removed everything, actually deleted the code, not just excluded it from the project. I restarted my Dev environment. In HQ I ran the initialize commerce scheduler, the Commerce channel schema > Generate queries and did a full DB sync on the channel DB for job 999 in case it has something to do with data.  We stop the cloud hosted environments over weekends and sometimes it just have some issues until I push the data tot he channel DB again.

but none of my attempts were able to get rid of those errors. Any idea what else can cause it and how do I fix it? It is quite difficult to do development when one cannot add products and customers  to a cart to test something. 

I have the same question (0)
  • Retha Profile Picture
    1,457 on at

    I think I found the problem. I finally remembered to look on the retailServer in the eventviewer and discovered an error on a custom CRT that we have on the pricing engine. It looks like Microsoft removed a method that we have custom on. A Method they provided us to be able to add rounding where the standard code didn't apply rounding by design.

    "

    Ex: 'System.MissingMethodException: Method not found:

    Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine.Events.PriceEvents Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine.PricingEngineExtensionRepository.GetPriceEvents()'.

    "

    The reason why we couldn't switched to commerceSDK was because we had custom on the pricing engine and Microsoft limited the extension points but would have fixed that in v10.0.27. I didn't think it would effect us as long as we stayed on RetailSDK until we can get the extension points we needed for our custom. I guess I was wrong.

    I logged a support ticket with Microsoft to find out what the new method is that I need to use.

  • Suggested answer
    Mando Profile Picture
    on at

    I believe these methods were not officially meant to be taken a dependency on them originally, but given some of the use and impact of having them removed some of the contracts were readded and are available.   You'll likely need a newer build of the 10.0.28 RetailSDK and Runtime to get access to them.

    See: fix.lcs.dynamics.com/.../Details

  • Retha Profile Picture
    1,457 on at

    Thank you Mando. I downloaded the next quality update (10.0.1265.79) for v10.0.28 that I have because I found the hotfix 726537

    in the list.

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 284 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans