Exporting and Importing a Web Report give a JSON error

Hello,

I have been able in the past to Export and Import a Web Report, using the method of running “WR.PrintReportXML()” in Firebug.
But since we upgraded to 9.5.4, I am constantly getting the error:

[JavaScript Error] File: https://xxx.xxx.xxx.xxx/JavaScript/Util/History-min.js?modified=3563495618; Line Number: 1; Type: SyntaxError; Message: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 333 of the JSON data;

Is there a way to find in teh XML file that the beswrpt file to find this NON-WHITESPACE character.

1 Like

Can you explain a bit more of your use case?

Are you using this to automate the export of Web Reports?

Hi,

Yes very simply I am following the steps in the Web Reporting guide to make a portable Web Report, that I can add to other BigFix Web Report Servers.

To create the Portable Web Reports in the XML format, I used Firefox and FireBug and followed the steps in the guide --> https://www.ibm.com/support/knowledgecenter/SS6MCG_9.5.0/com.ibm.bigfix.doc/Platform/Web_Reports/c_creating_a_portable_report_for.html

I have also created a PMR to the BigFix product team and am waiting for a reply on this.

1 Like

I would try running the same javascript in the Google Chrome Developer Tools Console or the native FireFox Developer Tools Console. You don’t need to use Firebug specifically for this and Firebug is very outdated.

What report are you trying to do this on? The issue could be highly specific to the report you are trying to export.

You should be able to view the contents of the web report that is in HTML form directly in web reports.