Metadata import

Hi,
Has anyone got an error like below while trying to do metadata import.
“Process failed: Cannot construct instance of org.hisp.dhis.organisationunit.OrganisationUnitLevel (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (4) at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.hisp.dhis.predictor.Predictor[“organisationUnitLevels”]->java.util.HashSet[0])”

Thnaks.

when importing metadata you should make sure you only import what you really need or import metadata that matches what already exist in the dhis2 you are importing in.

From the message, you import a Predictor that references organisationUnitLevel
Does organisationUnitLevels have the same uid on both dhis2 ?

1 Like