Showing posts with label Reports. Show all posts
Showing posts with label Reports. Show all posts

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.

Sunday, 22 December 2013

Error while printing a report in Dynamics AX

Last week some of the users reported that they are printing invoices directly to the printer but nothing is being printed. We tried printing the invoice to the screen and got the following error.

An item with the same key has already been added.

The error was only on one of our report servers. Restarting the report server service fixed the issue.

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

Wednesday, 11 July 2012

Too many forms open error

Today I imported a report from AX2009 to AX2012. Its a X++ report for customer ageing. The report required a few tweaks and it worked fine afterwards. However once I closed the report after printing it to the screen I got a strange error message when I clicked on any of the forms in client. The error message is


There were no other forms open as suggested by the message. The only way to get rid of it was to close the client and open it again.

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