microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
54 stars 26 forks source link

Issue with proxy manager in offline #62

Closed vishnuvardhanreddy-kunduru closed 1 year ago

vishnuvardhanreddy-kunduru commented 1 year ago

When we are trying to use store commerce offline mode, we are getting the below error from one of our custom controller.

**Commerce SDK version: 9.40**

our custom entity:

image

our controller:

image

please find the below error:

Retail proxy client offline request failed. RequestUri: crt://offline/SalesChannelManager/UpdateEmployeeLastUsedOrderType?personnelNumber=SCRUBBED&orderTypeRecId=SCRUBBED&%24locale=SCRUBBED. Exception: System.InvalidOperationException: Can't find manager (SalesChannelManager) with method (UpdateEmployeeLastUsedOrderType) with parameter count (2) at Microsoft.Dynamics.Commerce.RetailProxy.Adapters.AdaptorCaller.d29.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Dynamics.Commerce.RetailProxy.Adapters.AdaptorCaller.d26.MoveNext().

madyke commented 1 year ago

Hello @vishnuvardhanreddy-kunduru - if Retail Proxy failed to find the manager/method combo, then most likely, the adaptor failed to set up properly.

There should be more logs and errors in the Event Viewer if this is the case, which will help point you to what is actually going wrong with the setup. You can check to see if there is an error such as GenerateProxyManagerAdapterFailure, which will have exception details about what went wrong with the adapter setup.

Pikhulya commented 1 year ago

@vishnuvardhanreddy-kunduru , can you please confirm you are unblocked by the recommendation Matt gave you?