web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

The headquarter Real-time Service call failed due to security reason

(0) ShareShare
ReportReport
Posted on by 126

Getting the following error:

pastedimage1653242681385v1.png

1. Commerce scheduler is initialized.

2. 9999 job is completed and downloaded.

3. Retail re-provisioning tool has run successfully.

what else is missing?

This is a fresh environment version updated to 10.0.26 with no customization, downloaded vhd with Contoso USRT data.

I have the same question (0)
  • Suggested answer
    WillWU Profile Picture
    22,361 on at
    RE: The headquarter Real-time Service call failed due to security reason

    Hi partner,

    Please try to re/apply the latest service package, ensure that the DB is on the same version and RetailSDK is up to date.

    Refer to the old thread:

    community.dynamics.com/.../creating-device-token-failed-error-on-cpos-activation

    community.dynamics.com/.../creating-device-token-failed-for-cloud-pos-hybrid-android-app-but-its-working-fine-in-mobile-chrome-browser

  • Shafeeque P. Profile Picture
    6,527 Moderator on at
    RE: The headquarter Real-time Service call failed due to security reason

    Could you please check the event viewer and see if there is more detailed information ?

  • AR01 Profile Picture
    126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    Hello Shafeeque, I couldn't find anything in event viewer. Are there any logs somewhere else?

    Will Wu, I did the service update again but no luck.

  • Shafeeque P. Profile Picture
    6,527 Moderator on at
    RE: The headquarter Real-time Service call failed due to security reason

    Can you try opening the Dynamics 365 FnO (back office) using internet explorer on the POS  and see if you are able to access it without any security errors or warnings ? 

    Also check if the operating system has all the latest updates installed to make sure that all the root CA certificates are there.

  • AR01 Profile Picture
    126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    I am getting following decryption error on POS hardware profile page in FO: Decryption error on secure merchant properties encountered on the selected record. You may encounter errors when saving the record. Contact your administrator with the following message: No certificate found for id '####'

    pastedimage1653463980490v3.png

  • AR01 Profile Picture
    126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    I found this error in EventViewer:

    pastedimage1653489130218v1.png

    An error occurred during the Retail Server Request. RequestUri: usnconeboxax1ret.cloud.onebox.dynamics.com/.../ActivateDevice. RequestId: 9a02f780-a954-9e0b-1abf-93ce0c4fbbc4. Exception: Microsoft.Dynamics.Commerce.Runtime.CommunicationException: Real-time Service call for method 'RetailServerStaffLogOn' failed due to security reason such as misconfigured, or expired Real-time Service certificate. Please also verify if the Real-time Service certificate is being properly configured in the headquarters. ---> System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: At least one security token in the message could not be validated.
    --- End of inner exception stack trace ---
    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__103.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__92.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.<RetailServerStaffLogOn>d__639.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.UserAuthenticationTransactionService.<LogOnUser>d__10.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.UserAuthenticationTransactionService.<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__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.UserAuthenticationService.<GetEmployeeCommerceIdentity>d__21.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.UserAuthenticationService.<GetEmployeeCommerceIdentity>d__22.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.UserAuthenticationService.<GetCommerceIdentityByExternalIdentity>d__23.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__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.Client.SecurityManager.<GetCommerceIdentityForIssuerAsync>d__13.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.RetailServerLibrary.Middlewares.Authentication.ExternalIdentityAuthenticationMiddleware.<TryResolveExternalIdentity>d__18.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.RetailServerLibrary.Middlewares.Authentication.ExternalIdentityAuthenticationMiddleware.<Invoke>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.Retail.RetailServerLibrary.Middlewares.Authentication.OperatingUnitAuthenticationMiddleware.<Invoke>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.Retail.RetailServerLibrary.Middlewares.Authentication.DeviceTokenAuthenticationMiddleware.<Invoke>d__4.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.RetailServerLibrary.Middlewares.Instrumentation.InstrumentationMiddleware.<Invoke>d__4.MoveNext(). UnscrubbedException: .

  • AR01 Profile Picture
    126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    Shafeeque  WillWU did you guys ever face these errors.

  • Shafeeque P. Profile Picture
    6,527 Moderator on at
    RE: The headquarter Real-time Service call failed due to security reason

    Your FnO environment, are you running it from a self hosted vm host or running on azure ? Are you trying to activate on the dev VM or on a separate machine?  I think, the SSL certificate used in (FnO) expired or there is a time difference the server where FnO is running and the machine where you are trying to activate the POS.

  • AR01 Profile Picture
    126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    . I am running it on a vhd downloaded from LCS deployed to our server on-premise.

    . I am trying to activate on the same DevVM.

    . The SSL certificates are generated via self signed certificate generation script available in VM because there were no certificates already deployed on VM.

    . This is fresh download of version 10.0.24 from LCS updated to 10.0.26 via script.

    . It's same VM for headquarter and POS so no time difference.

  • Suggested answer
    AR01 Profile Picture
    126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    Fix:

    1. Edit the C:\RetailServer\webroot\bin\CommerceRunTime.Config file
    2. Locate this line: <add key="audienceUrn" value="spn:00000015-0000-0000-c000-000000000000" />
    3. Replace the Number values with the same Azure AD Application(Client) ID value that was created at the beginning of the deployment
    4. Save the Change
    5. Restart the Retail Server Website.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 914

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 256 Super User 2025 Season 2

#3
Sagar Suman Profile Picture

Sagar Suman 182 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans