under 2.35, import error: Event.program does not point to a valid program: iiPGRJV6Wg4",
but the program is valid .
I can import before using api.
…api/events?idScheme=NAME
Its because of idScheme, with
…api/events?iidScheme=NAME , can work with update event, all id using name. but with insert event, it can’t work, but with:
…api/events?idScheme=NAME&programIdScheme=UID&programStageIdScheme=UID , the prog id with uid can work with insert event.
I think its a bug. when with …api/events?idScheme=NAME, all id should use name.but now it’s only work with DE, org, but not prog,progstage(but all imported DE value are empty!)
with https://play.dhis2.org/2.34.3/api/events?dataElementIdScheme=NAME&programStageIdScheme=UID&programIdScheme=NAME&orgUnitIdScheme=NAME can import successful, with DE name and uid mixed
{“event”:“ohAH6BXIMae”,“status”:“ACTIVE”,“program”:“lxAQ7Zs9VYR”,“programStage”:“dBwrot7S420”,“enrollment”:“RHyovvxGd2F”,“enrollmentStatus”:“ACTIVE”,
“orgUnit”:“DiszpKrYNg8”,“orgUnitName”:“Ngelehun CHC”,“eventDate”:“2021-04-07T00:00:00.000”,
“dataValues”:[{“value”:“229”,“dataElement”:“WHOMCH Hemoglobin value”},
{“value”:“true”,“dataElement”:“sWoqcoByYmD”}
]}