D365 SCM Warehouse mobile app error: Unexpected difference between request and session data. Warehouse Mobile Devices XML protocol violated.

D365 SCM Warehouse mobile app error: Unexpected difference between request and session data. Warehouse Mobile Devices XML protocol violated.

Recently I was asked to investigate an issue with the WHS mobile application.
My colleagues reported that the application showed the error "Unexpected difference between request and session data. Warehouse Mobile Devices XML protocol violated" when they clicked "OK", "Cancel" or another button, the application screen looked like this :

After investigation, the problem was found. It was because of using buildControl method with the following parameters:

buildControl(#RFText, 'Number', "@Label", 1, data, extendedTypeNum(Dymmy), ' ', 0, false));

After changing the code as below the WHS mobile application works without errors:

buildControl(#RFText, 'Text', "@Label", 1, data, extendedTypeNum(Dymmy), ' ', 0, false));

The interesting thing is that the modification was working without errors when the developer tested modification via mobile emulator web reference. (like: https://YourEnvironment.dynamics.com/?mi=SysClassRunner&cls=WHSWorkExecuteForm)
So if developers do not perform feature tests with WHS mobile app, it may bring the issue as described above.

I would be glad if this information can help someone.


 

Ax 2012 data upgrade on the self-service environment. The error "There is no row at position 0."

During the Ax 2012 data upgrade, after providing connection details to Ax2012 SQL Server, the migration tool closed and I received the follo...