Thursday, 21 December 2017

Error "Data at the root level is invalid" when opening a report

Recently users reported that they receive an error when opening a particular report. The error is

"Data at the root level is invalid. Line 1, position 1."

The call stack of the error is

Even opening the report in Visual Studio was throwing the same error as shown below.

We exported the report from the AOT and analysed it ina text editor. It turned out that there was a CU/KB applied and the report was part of it. However the report was never upgrade and it had comments from the code upgrade tool. Fixing these comments in text editor, re-importing the report in to AX and deploying it fixed the issue.

This posting is provided "AS IS" with no warranties. Use code at your own risk.

No comments:

Post a Comment