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:

Tier-1(CHE) and Unified Developer Experience (UDE) environments build error: Another build is in progress.

In some cases you may face an issue with a model or project build in a Tier-1 environment.The error can be "another x++ build is curren...