Leave a comment at the end of this page or email contact@krishagni.com
Data Validation Errors and Report
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’
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.
Only newer errors, which happened since the job’s last run-time, are sent.
Screenshots
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.
Leave a comment at the end of this page or email contact@krishagni.com