One program import from import and export menu

Dear All,

I am exporting the one particular program while using the Metadata dependency export from one Dhis system into other dhis system with same version.

while importing the metadata of that program we are getting the below error

Thanks in Advance.

Ravikumar

Thanks @Ravikumar for the post! Please check the [trackedentityattributeid] column, if there are null values in the exported file? If not, would you please share the template that you are using to import as well as mention the version of dhis2 instance that you are using
Thanks!

Dear Gassim,

Thanks for your reply, If we used Blank Database and imported metadata then it will work and if we have some already program in Dhis2 systems and imported those metadata which have data of some other program then its give error.

Please find the attachment of Metadata and I am using the version of Dhis2 is 2.37.9.

Thanks & Regards,
Ravikumar

(Attachment metadata.json(9).zip is missing)

Thanks for this info! My first suggestion is to check if there are trackedentityattributeids that are the same in the other instance that you are importing to because this will probably cause an issue since id is unique.

Dear Gassim,

While importing the Metadata of specific program, we getting error in program_attributes table syaing that trackedentityattributeid cannot be null.

But One trackedentityattributeid can be mapped to multiple program in the Mapping table like
program_attributes.

Please provide the some suggestion on these.

Thanks & Regards,
Ravikumar