Bug:2.35 API import error: Event.program does not point to a valid program: iiPGRJV6Wg4",but the program exist

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.

“event” : “s2121016780”,
“programStage” : “u57hlorX4HA”,
“program” : “iiPGRJV6Wg4”,
“orgUnit” : “testtest”,
“eventDate” : “2021-02-22”,
“status” : “COMPLETED”,
“completedDate” : “2021-02-22”,
“storedBy” : “xxx”,
“coordinate” : {
“latitude” : 30.68267,
“longitude” : 103.84871
“dataValues” : [

jdk 1.8, tm9, 2.35 compile from github newest code.

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!)

has tested at : https://play.dhis2.org/2.35.1/api/33/events

https://play.dhis2.org/2.35.1/api/33/events?dataElementIdScheme=NAME&idScheme=NAME&programStageIdScheme=UID&programIdScheme=NAME can insert.
https://play.dhis2.org/2.35.1/api/33/events?dataElementIdScheme=NAME&idScheme=NAME&programStageIdScheme=NAME&programIdScheme=NAME can’t insert

all DE insert with empty(null)

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 :slight_smile:
“orgUnit”:“DiszpKrYNg8”,“orgUnitName”:“Ngelehun CHC”,“eventDate”:“2021-04-07T00:00:00.000”,
“dataValues”:[{“value”:“229”,“dataElement”:“WHOMCH Hemoglobin value”},

more: when import on existed event with update, there is no error for unexisted org name.