I’m trying to upload CSV data to DHIS2 to update Tracked Entity Instances. I’m using the upsertTEI(...) helper function from the OpenFn DHIS2 adaptor to upsert TEIs via a unique identifier (check if existing, update/insert accordingly).
Checking if a record exists that matches this filter: e[32mattribute{ id: SgQW3vpnhuL, value: undefined }e[0m ...
URLSearchParams { 'ou' => 'undefined', 'filter' => 'SgQW3vpnhuL:EQ:undefined' }
undefined
undefined
Usinge[33m lateste[0m version of DHIS2 api.
@chaiwa any ideas? Am I maybe missing something in my job expression? I
It looks like language-dhis2 does not error out on empty arrays, which can be confusing but is important for longer, chained job expression. In this case, since the array provided for upsertTEI was empty and no other operations were performed, the run finished in something like 300ms! Given array items in there, you’ll see the expected logs.