Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

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

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.

  • Suggested answer
    AR01 Profile Picture
    AR01 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.
  • AR01 Profile Picture
    AR01 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.

  • Shafeeque P. Profile Picture
    Shafeeque P. 6,512 Super User 2024 Season 2 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
    AR01 126 on at
    RE: The headquarter Real-time Service call failed due to security reason

    Shafeeque  WillWU did you guys ever face these errors.

  • AR01 Profile Picture
    AR01 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
    AR01 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

  • Shafeeque P. Profile Picture
    Shafeeque P. 6,512 Super User 2024 Season 2 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
    AR01 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
    Shafeeque P. 6,512 Super User 2024 Season 2 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 ?

  • Suggested answer
    WillWU Profile Picture
    WillWU 22,350 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

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans