Thursday, March 9, 2017

"You can't switch to offline mode. Either the offline components are not installed or the logon failed"

I'm back once again with a new issue and possibly a solution on how to fix this problem.
I'm assuming at this point you had offline database installed and you wanted to test whether the offline mode is working or not. You've added "Database connection status" button and this allows you to switch to offline mode. When you tried to hit "Disconnect" you get an error "You can't switch to offline mode. Either the offline components are not installed or the logon failed" okay here are the steps I generally take and seems to works most of the times (I can't guaranteed it will work for you, but it's a good place to start debugging the issue).



Step 1: If you have offline sync service running. Go ahead and stop the service. If the service get stuck in "Stopping" status then you need to execute this command line using command prompt as admin.
Type in:
 sc queryex DynamicsRetailModernPOSOfflineSyncService

what you need to look for is the PID. Once you have locate the PID you want to go ahead and type this command line.
taskkill /f /pid (PID) <---put in your PID, ignore the parentheses. 
So for example if my PID is 12345 then I would type in. taskkill /f /pid 12345.
After you have done that go back into services and refresh to make sure the offline sync service status is blank.



Step 2: Go to Retail Channel Configuration Utility, select Configure Retail Modern POS and fill in the correct information in here.

To make sure you're using the correct DB hit the "Test connection" and it will let you know if you are connected successfully or not. I also "Configure POS User permissions". Once everything is done click "Apply" and you should get a message box saying that it was successful.



























Step 3: Go to Services and hit refresh and make sure the offline sync service status is set to "Running".



Step 4: Go into AX and run the 1070 job and make sure it applied.


Step 5: Log into mPOS and attempt to go offline by clicking "Disconnect". If everything is done correctly you should be able to go offline without getting any error saying you don't have offline component installed.


Step 6: Go grab a beer from the fridge cause you deserve it! ¯\_(ツ)_/¯

No comments:

Post a Comment