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.