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.


 

No comments:

How to run batch tasks using the SysOperation framework

Overview As you may know, the system has batch tasks functionality . It can be used to create a chain of operations if you want to set an or...