Skip to main content

Notifications

Announcements

No record found.

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...

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.

  • Grisel Doniz Profile Picture
    Grisel Doniz 20 on at
    RE: DA2009 - A connection to headquarters could not be established. This may due to Retail Real-time Service is not running properly...

    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

  • Mando Profile Picture
    Mando on at
    RE: DA2009 - A connection to headquarters could not be established. This may due to Retail Real-time Service is not running properly...

    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
    Grisel Doniz 20 on at
    RE: DA2009 - A connection to headquarters could not be established. This may due to Retail Real-time Service is not running properly...

    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?

  • Suggested answer
    Mando Profile Picture
    Mando on at
    RE: DA2009 - A connection to headquarters could not be established. This may due to Retail Real-time Service is not running properly...

    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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans