Table of Contents | ||
---|---|---|
|
It is possible to download a report of the errors from the user interface, as well as set up a scheduled job for the system to send these reports via email.
Error Report
A report of all the data validation errors can be downloaded from the collection protocol overview page > ‘More’ > ‘Export Errors’
Expand | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
Clicking on ‘Export Errors’ redirects to a page as shown below: Report Interval: You can define the date range for which the report is to be downloaded. User: This is used to define the user for which the report is to be downloaded. The report is downloaded when clicked on ‘Export’. In case no value is entered for these fields, an entire report is downloaded, including all errors shown for all users. The downloaded zip has a CSV file with the below columns:
|
Error: ‘Cannot index into a null value’
While adding multiple edit checks on non-mandatory fields/forms, it is necessary to have a null check on all the fields involved in the edit check before accessing it. This can be done by checking whether the form/field is not equal to ‘null’ in the when part of the edit check.
Refer to ‘How to solve ‘Cannot index into a null value’ error’ for more details.
Setup error report scheduled job
The following configuration requires ‘os-data-qc’ JAR present in the $OS_PLUGINS directory.
It is also possible to setup a scheduled job to get the error reports on a regular interval via email.
The os-data-qc plugin will create a new job (“Edit checks error report”) upon bootstrapping.
By default, the ‘Fixed Parameters’ are null. These should be comma-separated collection protocol IDs (Ex: 1,8,21). The output error-report would be generated for these collection protocols.
The generated report would be sent to the users under the 'Notify Users' list.
...
Expand | ||
---|---|---|
| ||
Error: ‘Cannot index into a null value’
While adding multiple edit checks on non-mandatory fields/forms, it is necessary to have a null check on all the fields involved in the edit check before accessing it. This can be done by checking whether the form/field is not equal to ‘null’ in the when part of the edit check.
Refer to ‘How to solve ‘Cannot index into a null value’ error’ for more details.