To avoid publishing reports that contain errors, Reportal has built-in features to verify that no scripts contain syntax errors.
On preview and compilation of a report, if script errors are found, an error frame will appear showing a list of the errors. The list contains links that lead to the page where the error is located. There is also a Debugging tab in the frame which will contain a list of any debugging errors found during preview.
- To access the Validation functionality without publishing the report, go to the Report > Quality Control > Validate Report menu command or enter an element containing a script and choose Compile from the menu.
- Click the error link to open the erroneous script, in the frame above the error pane.
Reportal will start to run through the script(s) checking the code. A new pane opens in the lower-right part of the window, displaying the message “Please wait, loading list…”. Once the checking process is finished, any errors discovered will be displayed in the pane.
The Question ID column displays the question ID or the script ID where the error is located. The Error column provides a short summary of the error type.
Any errors are stored from when a report is published to the next time it is published, and from preview to preview. This applies to both Runtime and Validation errors.
You can at any time view a list of any errors that may have been discovered. Go to the Report > Quality Control menu command and select Validation Errors, Runtime Errors or Debug Errors as appropriate. Note that these are three tabs on the same page, so you can easily switch from one to the other.