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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

POS offline mode not working on the .24 VHD OneBox environment

(0) ShareShare
ReportReport
Posted on by 2

I am attempting to test POS offline mode on the .24 VHD OneBox environment. I am working with the Commerce SDK and I seem to have everything working correctly without offline mode configured.

When I install the store commerce app to support offline mode (--InstallOffline --TrustSqlServerCertificate) and attempt to "Sync Data" on the database connection status view, I receive the following error: "Login failed for user 'MININT-57EHFHJ\Administrator'."

Screenshot-from-2022_2D00_06_2D00_15-09_2D00_35_2D00_41.png

Screenshot-from-2022_2D00_06_2D00_15-09_2D00_36_2D00_06.png

Screenshot-from-2022_2D00_06_2D00_15-09_2D00_33_2D00_20.png

Failed to get offline sync session data due to Exception: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'MININT-57EHFHJ\Administrator'.
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.Dynamics.Retail.CommerceDataExchange.AsyncClient.DataManager.DownloadSessionDataManager.GetOfflineSyncStats(String offlineConnectionString, String terminalId)
   at Microsoft.Dynamics.Retail.CommerceDataExchange.AsyncClient.Core.DownloadHelper.<>c__DisplayClass4_0.b__0()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Dynamics.Retail.CommerceDataExchange.AsyncClient.Core.DownloadHelper.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Dynamics.Commerce.StoreCommerce.Tasks.AsyncClient.GetOfflineSyncStatisticsIncomingTask.d__3.MoveNext()
ClientConnectionId:db8b2ad6-14e9-486e-928b-a4c34274ae9c
Error Number:18456,State:1,Class:14

I looked at the created database, RetailOfflineDatabase, and noticed that it didn't have users "MININT-57EHFHJ\RetailChannelUsers" and "MININT-57EHFHJ\RetailDataSyncUsers" added to it like the Scale Unit/Retail Server's database, RetailChannelDatabase. Adding those two users with the same permissions did not have any impact though. The error remained the same.

I would appreciate any suggestions that anyone might have.

I have the same question (0)
  • Verified answer
    Shafeeque P. Profile Picture
    6,533 Moderator on at

    I assume system will be using the Windows account you used to open Store Commerce App to access the offline DB. Can you check if that user has access to Offline DB ? You can start troubleshoot by giving Sysadmin access on the DB.

  • xorlogic Profile Picture
    2 on at

    Yes, it was just user setup. It should have been obvious to me, but thanks for the answer anyway.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 138 Super User 2026 Season 1

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 91 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans