Failed to create new metadata version

While creating a new metadata version I’m getting a error creation failed. In the network call [api/37/metadata/version/create?type=ATOMIC] is failing with error “Unable to create version in system. Exception occurred while exporting metadata for capturing a metadata versionjava.lang.reflect.InvocationTargetException”. How can this be fixed.
Thanks in advance

This has to do with the metadata configuration in both systems. What happens if you use the “best effort” option? If that works then it seems the “atomic” option is failing because of missing references in your metadata.

What version of DHIS2 are you using? Thanks!

Hello @Gassim
Even for the best effort same network call was failing. My instance is on DHIS2@2.37.9.