DHIS MD Import Issue - 2.40.4.1

Hi Everyone,

I am trying to Import one of the MD file from version 2.37.9.1 to 2.40.4.1 and I have noticed one thing.

I have few Datasets where I have custom Attributes, whose value is false in MD file. When I try to import the file in version 2.37.9.1, i get no error but when I import the file on 2.40.4.1 I get “AttributeValue false is an invalid true value”. Is this expected? In version 2.40.4.1 are we only allowed to import where Attribute value is true? Is this an expected behaviour or an issue?

Sample json as below:

        "dimensionItem": "ZWxi2IIo89GO",
        "displayShortName": "XYZ",
        "displayDescription": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
        "displayFormName": "XYZ",
        "id": "ZWxi2IIo89GO",
        "attributeValues": [
            {
                "attribute": {
                    "id": "c0ABCDElWTn"
                },
                "value" : "false"
            }
        ],

@Gassim @DHIS2-Community

1 Like

Hi @Vishwanideep_Kumar

What is the MD file you’re trying to import? I’m sorry it’s not it’s not clear, would you please share the docs/instructions that you are following to do this process?

Thank you!

Hi @Gassim

Greetings of the Day and thanks for your response.

Apologies for causing a confusion. By MD i meant MetaData Import. Also, somehow this seems to be related to reported bug. (Just an assumption, could possibly be incorrect)

Also, this happens, when I try to unselect any Attribute from UI

Hi @Gassim

Can you please help me with the above question

1 Like

Hi again!

May I understand how you are trying to import the Metadata file? I see that you are using JSON so are you importing using the Import/Export app?

May you share the configuration in your import settings?

Additionally, you might want to export the JSON from the version you are importing to make sure that the JSONs from both instances are aligned.

Thanks!