DHIS version: 2.37
Endpoint: /api/tracker
Parameters: async=false&importMode=VALIDATE&atomicMode=OBJECT&importStrategy=CREATE_AND_UPDATE&reportMode=FULL
Number of events: 10
Hi all, I am hoping someone can help me with this head scratcher:
I am experiencing some behavior I would like to understand better when validating data I am pushing for an event program.
For the purpose of the example, assume the usual event payload and one of the data values is a data element with an option set.
When I have unvalid options, the response has status code 200, status OK and errorReports as I would expect. There are stats for the import.
200 {'status': 'OK', 'validationReport': {'errorReports': [{'message': 'Value force_error is not a valid option for ABC123DEF DataElement in option set A,B,C,D,E,F ... ]}, 'stats': {'created': 0, 'updated': 0, 'deleted': 0, 'ignored': 10, 'total': 10}, ... }
I fixed these with valid options, the response now has status code 409, status Error and no errorReports. The message is Exception:null.
409 {'status': 'ERROR', 'validationReport': {'errorReports': [], 'warningReports': []}, 'timingsStats': {'timers': {'preheat': '0.107719 sec.', 'preprocess': '0.000121 sec.', 'validation': '0.011811 sec.', 'programrule': '0.045140 sec.', 'totalImport': '0.260019 sec.'}}, 'message': 'Exception:null'}
What does this mean? The fact that both error and warning reports are empty ('errorReports': [], 'warningReports': []
) is particularly puzzling. To me it implies that the conflict is not directly related to the data payload.
Any thoughts? Thank you!