Tag Archives: Configuration file

How to use multiple stores in Dynamics AX 2012 R2 VM?

When trying the Point-of-Sale (POS) scenario’s from Microsoft I noticed that multiple stores are created in Dynamics AX 2012 R2 VM and some of these stores are connected to a stand-alone Dynamic AX 2012 POS. The relations are created with the stores:

  • Seattle, POS register 1 and 2
  • New York, POS register 1
  • Boston, POS register 1

When user “Emma Harris” logs in to the VM, she will find 4 shortcuts available on her desktop.

Using these shortcuts will end-up to the login to the specific POS register.

We are using the VM where we setup scenario’s to multiple POS registers in multiple stores. In real life the POS is installed on a dedicated desktop, or launched via Citrix or Remote Desktop. This means that each instance has its preconfigured settings available. In this VM Microsoft is using a trick for that. The POS is installed on the C-drive of server AX2012R2A and is started by using its configuration file. Therefore open path: c:\Program Files (x86)\Microsoft Dynamics AX\60\Retail POS. Select the file POS.exe (configuration file) and open this file with edit.

In this folder also a few configuration files are created for Boston-1, NewYork-1, Seattle-1 and Seattle-2. These files are copies from the master file and only the storeId, terminalId and DataareaId are different.

Furthermore you can notice that there are several windows batch files created.

These batch files are copying the content of the separate configuration files to the Pos.exe configuration file and start the POS register immediately.

So it is no surprise that the shortcuts on the desktop of “Emma Harris” are shortcuts to these windows batch files and each time she starts the POS terminal the configuration file is overwritten with the settings of the specific terminal. Be aware that if you are not login in with user “Emma Harris” the POS can be started from the start menu and this shortcut will use the latest selected configuration of the POS selected by one of its users.

Best way to solve this for other users is to copy the desktop shortcuts from user Emma to your personal desktop. If you want to add multiple store’s to the desktop its easily to create copies of the configuration file and the windows batch jobs. Be noticed that the distribution schedule in Dynamics AX 2012 R2 can be used to the locations Seattle, NewYork and Boston!

How to enable the Retail Transaction Service in Dynamics AX 2012 R2 VM?

This week I walked through the processes between Dynamics AX 2012 R2 and the Dynamics AX 2012 POS (Point of Sale). One of the scenario’s was to retrieve on-line information about item stock in different warehouses or stores. When I started the Inventory lookup service at the POS I received the error message “Error number: 13010 Could not connect to the Transaction Service” what means that there is no realtime connection between Dynamics AX 2012 R2 and the Dynamics AX 2012 POS.

This blog explains the steps I took to enable the Retail Transaction Service on the Virtual Machine Dynamics AX 2012 R2 Drop 1, where the transaction service is already installed and configured.

Step 1: verify the Real time service profile settings in Dynamics AX 2012 R2

Start Dynamics AX 2012 (partition initial) and open company USRT (US Retail). Select the option: Retail > Setup > Retail Scheduler > Channel Integration > Real-time service profiles. Verify the settings for Real-time Service profile JBB.

Step 2: verify the used Real-time service profile for your POS

Start the option: Retail > Setup > POS > POS registers and select the Seattle-1 store. Double click and verify if the used Real-time service -JBB- profile is used for this POS Register.

Step 3: push the POS register batch job through the POS systems

Start the option: Retail > Periodic > Data distribution > Distribution schedule. Select job N-1090 and run this job directly. This job pushes the “RetailTransactionServiceProfile” to the POS database.

Step 4: verify the configuration file for the Retail Transaction Service

Open path “C:\Program Files (x86)\Microsoft Dynamics AX\60\Commerce Data Exchange\Real-time Services\6.1\Bin” and select the configuration file “RetailTransactionService.exe”. Open this file with edit and change the value of the object server key to “<add key=”ObjectServer” value=”MicrosoftDynamicsAX@AX2012R2A:2712” />”. Save the file.

Step 5: restart the Real-time service 6.1

Open the services for the “AX2012R2A” server and select service “Microsoft Dynamics AX Commerce Data Exchange: Real-time Service 6.1″. Restart the service. This service can be set to “start automatically” and it start the “RetailTransactionService executable” from the path above, with the usage of the changed configuration file from step 4.

Step 6: verify the settings of the Commerce Data exchange webservice

Open Internet Information Services (IIS) for the “AX2012R2A” server and select the site “CommerceDataExchangeRealtimeServiceWebsite”. Restart this webservice via the option “Manage Web Site”.

Step 7: test the Retail Transaction Service

Open the Dynamics AX 2012 POS for store “Seattle 1″ with user “Emma Harris (000137)”. Select the option Sales > Tasks > Inventory >  Inventory lookup. Select option “”Search”, select item “0051″ and push the button “OK”. The inventory for all store is now displayed by using this Retail Transaction Service.

Have fun with the other realtime scenario’s.