Unable to export metadata with dependecies

Hello Team,
I am getting the following error while using metadata dependencies export to export programs metadata:

{
"httpStatus": "Internal Server Error",
"httpStatusCode": 500,
"status": "ERROR",
"message": "could not initialize proxy [org.hisp.dhis.option.OptionSet#4200] - no Session"
}

I am using dhis2 version 2.36.
@jaime.bosque , @Gassim

Mohammed

Are you trying to export via the web interface or the API call?

I am exporting via the web interface.

Uhmmm, not sure then. Is everything working well? Maybe there is a configuration issue… have not seen that before personally although there are several posts in the CoP with the same issue. Maybe you can check those and see if that fixes it.

In any case. Have you consider exporting via the API call to see if that works?
https://dhis2instance.example.org/api/programs/PROGRAM_UID/metadata.json

1 Like

In addition to @jaime.bosque’s recommendation, I would say to please check the access rights for the optionsets.

If that’s the Import/Export app then please choose the Import report mode to be debug and see if you get more details about the error. It’d also help to share the Catalina.out log (without sensitive info) and see if there are related errors which explain why there is an ‘internal server error’.

Thank you!