Versions Compared
Version | Old Version 9 | New Version Current |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
Excerpt |
---|
Use the document queue to inspect the XML data being sent to and from the Mobile devices. |
Benefits
During development it can be very useful to inspect the XML to know:
- Have you code taken effect?
- Which values are available in the request you are reading
Flow
Image Removed
Due to the nature for Webservices the flow is as follows:
- Request = Data from mobile device → BC.
- Response = Data from BC to → mobile device.
How to use it
Go to to the "Mobile Document Queue"-page
- Select Document
- Select Show Request XML
- Select Show Response XML
Image Removed
For examples, a request will give you an overview of which values are available to you.
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
You can use the Mobile Document Queue List to handle and inspect failed mobile documents. |
Finding the right mobile document
Isolate for the right entry, using columns like Document Type, Registration Type or Status Filters
View Error Message and Call Stack
The Response XML contains both the Error message and Error call stack.
Image AddedHow to interpret the Error Call Stack
The beginning of the error call stack is where the process failed. This allows you to:
Isolate the source of the erroneous code
Identify where to set breakpoints for debugging, see Debugging
Third-party applications can be the cause of the error
The call stack can point to non-MobileWMS extensions. Look for "ExtensionName by Publisher".
This points to an issue outside of Mobile WMS. In Example, the Error Call Stack points to the Extension ShipIT 365 by IDYN B.V.
Image AddedShare the Error and Call Stack with Tasklet
Tip |
---|
You can copy these files to the ticket if you have an ongoing Service Desk ticket and have trouble pinpointing the root cause of the Error. |
Download the XML
Image AddedSelect Document > Show Request XML
Save the file
Select Document > Show Response XML
Save the file
How to Reprocess Mobile Documents
You can reprocess failed mobile documents from the Mobile Document Queue List in Business Central.
This will show the error message on your screen.
Note: The code is executed in the context of the current user
Select Process > Process Document
Use “Copy Details” to view more additional information
When reprocessing fails, you will see the error on the screen.
More information is available in Copy details.
Image AddedSelect "Copy Details"
Paste the text to a text editor or an ongoing Service Desk ticket if you have trouble pinpointing the root cause of the Error.
How to interpret Request XML
The mobile app request is likely the most interesting for development. The request shows the values available.
Here are fields "MyDate", "MyText" available in a request for an Unplanned Function named "MyUnplanned".
|