Closed aleksa-krolls closed 1 month ago
@mtuchi as discussed, I think the Upsert TEIs
step no longer works...
On old runs the logs used to tell me if the TEI was created or updated. Also would be really helpful to log the DHIS2 importSummary
or at least the trackedEntityInstance
id if a record was found.
Preparing upsert via 'get' then 'create' OR 'update'...
ADA Preparing get operation...
ADA Using latest available version of the DHIS2 api on this server.
ADA Sending get request to https://dhis2-uat.ocg.msf.org/api/trackedEntityInstances
ADA with params: {"filter":["AYbfTPYMNJH:Eq:44c50e80-d50a-4ada-ab6c-214d3c8caf83"],"ou":"OPjuJMZFLop","program":"w9MSPn5oSqp"}
ADA Retrieved trackedEntityInstances
I have found the problem and pushed a fix on staging
. The upsert was not working because of the typo in the path. (It was suppose to be patientsUpsert
.
I have updated the workflow and it's working as expected now
Describe the bug and expected behavior
See run where the workflow stops after
Get TEIs
step... not sure if your fix earlier this week broke something.To Reproduce
{ "lastRunDateTime": "2024-09-30T00:00:00.000Z"}
.Input
Same creds as #2
I'm testing on the
staging
branchToggl
MSF 2024