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:

Ax 2012 data upgrade in Tier-1 development environments(CHE). A parameter cannot be found that matches parameter name “TrustServerCertificate”.

When I ran data upgrade using Data Upgrade 10.0.41 package, I faced an issue: Executing step: 3 GlobalUpdate script for service model: AOSSe...