Skip to main content

Notifications

Community site session details

Community site session details

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

The Real-time Service call failed

(0) ShareShare
ReportReport
Posted on by 1,447

I have a problem on my one cloud-hosted Dev box. It suddenly doesn't want to do a realtime call. I can't exactly pinpoint when it started because I don't always create a warehouse pickup or ship/deliver order during testing. I tested lately only cash and carry out cart transactions. So when I wanted to test a warehouse pickup order I suddenly got the following error:

The Real-time Service call failed. This may be because of an unhandled exception or because the headquarters did not recognize the Real-time Service Profile permissions. Contact your system admin.
I am running V10.0.22 on both my Dev boxes and the one Dev box has no problem, just this one. Both run the same custom code as well, I did a get latest numerous times. I did refresh the data from a backup from UAt on the Dev box that has the problem but I have also done  the Initialize scheduler, generate of queries and running of job 9999 multiple times and made sure the download sessions showed that all is applied.
If I look in the EventViewer I see the following error that also doesn't tell me much. If I add a breakpoint to RetailTransactionService.CreatecustomerOrder(), it stops at the method signature for me, but the moment I want to step into the method, thus when it needs to call  RetailTransactionServiceOrders::createCustomerOrder, it fails.
****
An exception occurred while executing request. CorrelationId: '{c82eaa70-2262-44f7-a7fc-596a532028b1}'. Ex: 'Microsoft.Dynamics.Commerce.Runtime.CommunicationException: Real-time Service call for method 'CreateCustomerOrder' failed due to an unhandled exception, or due to invalid user permissions settings in Real-time Service profile. Please refer to the exception details for more information. ---> System.ServiceModel.FaultException`1[Microsoft.Dynamics.Retail.TransactionServices.ClientProxy.Fault]: Fault was thrown by the service for request 69b5a9e4-0d59-4abc-a9eb-1e9675f2ab60. Exception details:
Type: Microsoft.Dynamics.Ax.Xpp.ClrErrorException
Message: CryptoEncryptionException
at Microsoft.Dynamics.Retail.Cdx.RealtimeServiceClientLibrary.RealtimeServiceClient.ProcessInvokeResult(String methodName, String apiName, Int32 parameterCount, RetailTransactionServiceResponse response, Guid correlationId, RetailRealTimeServiceContractChannel channel, Boolean isAsyncCall, Exception& exception, Int32& resultCount, Int64 executionTimeInMs)
at Microsoft.Dynamics.Retail.Cdx.RealtimeServiceClientLibrary.RealtimeServiceClient.<GetResponseFromMethodAsync>d__101.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Retail.Cdx.RealtimeServiceClientLibrary.RealtimeServiceClient.<InvokeMethodAsync>d__90.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.TransactionService.TransactionServiceClient.<GetResponseFromMethodAsync>d__98.MoveNext()
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Commerce.Runtime.TransactionService.TransactionServiceClient.<GetResponseFromMethodAsync>d__98.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.TransactionService.TransactionServiceClient.<GetResponseFromMethodAsync>d__95.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.TransactionService.TransactionServiceClient.<InvokeMethodAsync>d__79.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.TransactionService.TransactionServiceClient.<SaveCustomerOrder>d__332.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.Services.CustomerOrderService.<SaveCustomerOrderInHeadquarter>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.Services.CustomerOrderService.<SaveCustomerOrder>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.Services.CustomerOrderService.<Execute>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__43`1.MoveNext()'. ExceptionType: 'Microsoft.Dynamics.Commerce.Runtime.CommunicationException'. ErrorResourceId: 'Microsoft_Dynamics_Commerce_Runtime_TransactionServiceSenderFault'. HandlerTypeName: 'Microsoft.Dynamics.Commerce.Runtime.Services.CustomerOrderService'. RequestTypeName: 'Microsoft.Dynamics.Commerce.Runtime.RealtimeServices.Messages.SaveCustomerOrderRealtimeRequest'. HandlerAssemblyName: 'Microsoft.Dynamics.Commerce.Runtime.TransactionService'. HandlerAssemblyPublicKeyToken: '31bf3856ad364e35'. UnscrubbedException: ''.
****

I also had to test the self-service hardwarestation package on my Dev box because the v10.0.22 one didn't want to install. It asked for an SSL certificate and of cause I have no idea which one to pick, so I just selected on that said it is a Retail one. The executable installed and I was able to do a ping test. I removed the hardware station again from Ad/Remove programs. I have no idea if this was what messed up my box. If it was. how do I correct it so that the realtime service works again?

I upgraded my Dev box again with the LCS v10.0.22 deployable package that I downloaded which is the same version that is on the box hoping this will fix whatever the realtime service complains about. I also put the RetailSDK in again

Should I apply the Developer's topology and Environment reprovisioning LCS packages to this environment again? 

  • Retha Profile Picture
    1,447 on at
    RE: The Real-time Service call failed

    The issue turned out to be a problem with the ISV partner code.

    My boss just refreshed our UAT environment from production and she ran into the same missing certification error every time any code of this ISV is called

  • Retha Profile Picture
    1,447 on at
    RE: The Real-time Service call failed

    Sorry for the late reply Sergey

    I rotated the secrets on this Dev box using LCS. that didn't fix the issue.

    I then stepped through the code again but with more detailed breakpoints and discovered that it gives the missing certificate error when trying to call ISV code specific to the customer order creation.

    I verified this by also added breakpoints for the  Fulfillment lines view which is also a realtime call. It had no problem retrieving these orders realtime. So it is not the realtime server.

    Looking further into the certificates, I noticed that this Dev box that has the issue are missing a certificate that has a friendly name of:  POSRetailServer

    The Dev box that has no problem with the ISV code has this POSRetailServer friendly name certificate under Trusted root Certification and under Personal for the local computer.

    I refreshed the data on the problem Dev box again from UAT which also has no issues with the ISV code. I also applied the reprovisioning tool package again to the problem Dev box. It didn't create the missing POSretailServer friendly name certificate.

    I would have assumed that it would because the "Issued To" column showed the retail server's URL on the Dev box that has no issues. It was also issued by the retail server.

    So why would the reprovisioning tool not put this certificate back or is it actually not a standard certificate? Nothing in the properties of this certificate indicates that it is an ISV certificate.

    The error in the retail server event logger as well as when I run a function of the ISV complains about the same certificate:

    0876.Capture.PNG

  • Verified answer
    SergeyP Profile Picture
    2,928 on at
    RE: The Real-time Service call failed

    The error indicates the call reached out to your HQ server so I don't think there are issues specific to RTS on HQ either Channel sides, to double check you might execute RS health-check and look into the test verifying RTS connection.

    If there are fundamental issues with the HQ connection you would see something like this:

    PingResult.png

    if you navigate to RS healtcheck endpoint https://<Your Rs Url without Commerce suffix>/healthcheck?testname=ping

    The CryptoEncryptionException (note it comes from HQ, not from Channel) could be due issues with cryptographic operations on AX side, are your HQ certificates expired by any chance? If you rotated the certificates (by using LCS) and the issue is still there - was this HQ instance restored recently?

  • Retha Profile Picture
    1,447 on at
    RE: The Real-time Service call failed

    This is a cloud-hosted development environment.  There is no tools on LCS to restart the realtime service.

    Because it is cloud hosted, I have admin-access on the environment. I did IISReset numerous times using the command prompt running as administrator. But that didn't do anything to my error.

    So how do I start the real-time service on a cloud hosted development environment if it's not done by IISReset?

  • WillWU Profile Picture
    22,357 on at
    RE: The Real-time Service call failed

    Hi partner,

    Did you try restarting IIS and Real time services from LCS ?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans