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

DA2009 - A connection to headquarters could not be established. This may due to Retail Real-time Service is not running properly...

(0) ShareShare
ReportReport
Posted on by 20

I have an L1 environment, everything works fine, except the MPOS, the installation is fine, when I try to access it throws an error.

DA2009 - A connection to headquarters could not be established. This may due to Retail Real-time Service is not running properly or the trusted certificate used by Real-time Service is missing or expired"

attached screen

pastedimage1656615493055v1.png

I did the review with the ping
healthcheck?testname=ping

And actually the service is not running

pastedimage1656615662421v2.png

I checked the user according to the following post

(+) Real time service check failed - Dynamics 365 Finance Community

And this did not solve it, could someone tell me how to enable this service or restart it?

I tried restarting IIS and the VM and that didn't work either.

I have the same question (0)
  • Suggested answer
    Mando Profile Picture
    on at

    Right after doing the health-check test, go to the Event Logs  (eventvwr) and look under "Application and Services Logs -->Microsoft --> Dynamics --> Commerce-RetailServer --> Operational".     You might see some "Error" logs there which will provide you more information about what's going on -- either unable to resolve dns, invalid cert, authorization issues.

  • Grisel Doniz Profile Picture
    20 on at

    I have done it, and it has not been clearer, I attach the message

    ------------

    Error 7/1/2022 6:30:49 PM Microsoft-Dynamics-Commerce-RetailServer 1001 None "An exception occurred while executing request. CorrelationId: '{96b23fff-a8ca-47a9-95ad-7149fb355640}'. Ex: 'System.ServiceModel.FaultException: Internal Server Error

    Server stack trace:

      at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      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.GetResponseFromMethod(TransactionServiceInvoker transactionServiceInvoker, String methodName, String apiName, Int32 parameterCount)

      at Microsoft.Dynamics.Retail.Cdx.RealtimeServiceClientLibrary.RealtimeServiceClient.IsAlive()

      at Microsoft.Dynamics.Commerce.Runtime.Services.HealthCheckTransactionService.RunHealthCheckRequest(RunHealthCheckRealtimeRequest request)

      at Microsoft.Dynamics.Commerce.Runtime.RequestHandlerAsyncAdapter.Execute(Request request)

      at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__42`1.MoveNext()

    --- End of stack trace from previous location where exception was thrown ---

      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

      at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__42`1.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.HealthCheckService.<RunRealtimeServiceHealthCheck>d__3.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.RequestHandlerAdapter.Execute(Request request)

      at Microsoft.Dynamics.Commerce.Runtime.CommerceRuntime.<Execute>d__42`1.MoveNext()'. ExceptionType: 'System.ServiceModel.FaultException'. ErrorResourceId: ''. HandlerTypeName: 'Microsoft.Dynamics.Commerce.Runtime.Services.HealthCheckService'. RequestTypeName: 'Microsoft.Dynamics.Commerce.Runtime.Services.Messages.RunHealthCheckServiceRequest'. HandlerAssemblyName: 'Microsoft.Dynamics.Commerce.Runtime.Services'. HandlerAssemblyPublicKeyToken: '31bf3856ad364e35'. UnscrubbedException: ''."

    I have verified when trying to configure the MPOS and the error message is very similar, as I read in the message there is some authentication, but we have not changed credentials or anything like that.

    Any ideas?

  • Mando Profile Picture
    on at

    This looks like RTS is returning an error.  Looking at the AOS side of the logs would probably yield more information - since those are distributed among multiple source you'd want to use a custom view in the Event Viewer, such as the one in the file below.  Reproduce the issue and you should find the errors/warnings in this view.   If this doesn't yield more information I suggest you open a Support Request case so we can help investigate.

    Import the view in event viewer as follows:

    pastedimage1656721346075v1.png


    [View:/cfs-file/__key/communityserver-discussions-components-files/797/DynErrView.xml]

  • Grisel Doniz Profile Picture
    20 on at

    Solution

    Finally the bug was fixed.

    It is necessary to run the "RetailTenantUpdateTool" tool, this must be found as a direct access on the desktop of the virtual machine.

    pastedimage1661382917575v1.png

    In case you can't find it, the script is in the following path:
    K:\RetailSDK\Tools\RetailTenantUpdateTool.ps1

    must be run from PowerShell as administrator.

    If you want to create the shortcut on the desktop, in "Target" you should put:
    C:\windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -File K:\RetailSDK\Tools\RetailTenantUpdateTool.ps1

    And run it as administrator

    pastedimage1661383242806v2.png

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 266 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... 140 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans