OpenFn / unicef-cambodia

UNICEF Cambodia - Primero Interoperability
https://openfn.github.io/unicef-cambodia/
1 stars 2 forks source link

Some Primero cases not being sent to Oscar in f1-j2 #109

Closed daissatou2 closed 2 years ago

daissatou2 commented 2 years ago

Bug Report

Background, context, and business value

I created 4 cases in Primero with the case_ids below to test syncing multiple Oscar cases and decisions back to Primero. When I run the f1-j1 job, the run log looks correct and I can see all of the cases and services I created in the initial state of the f1-j2 run. So why is only one case ("case_id": "702ea88a-a27a-464a-aa80-fb15872e8b09") being sent to Oscar at the end of the f1-j2 run? See line 2143 in the log.

Cases I created: case_id: '702ea88a-a27a-464a-aa80-fb15872e8b09' case_id: 'f0a068d7-e45a-4c4d-932c-9434e0948088' case_id: '9daa8f9e-21d8-4aa8-ab05-034107839b1b' case_id: 'fc796dda-4ac2-4040-b46d-b6b99f8a3607'

The job should be sending all 4 cases to Oscar. I can confirm that this was working properly two weeks ago. I created these cases Tuesday afternoon and have updated the f1-j1 cursor to just before they were created.

state.json

f1-j1

{
"configuration": "Primero V2 Cambodia Demo (openfn_cp_user)",
}

f1-j2

{
"configuration": "Oscar Staging (api only user)",
"data": "Data will be generated from f1-j1"
}

adaptor

language-http

expression.js

f1-j2-casesToOscar

daissatou2 commented 2 years ago

See slack thread for previous conversation here

aleksa-krolls commented 2 years ago

@daissatou2 please test today to inform whether further changes are needed.