Metadata Import -

Hi,

I’m new in DHIS2, I would like to try to import the WHO package as example for me to learn, e.g. NUTR00_1.0.0_DHIS2.37. I click ‘dry run’ ok with total of created and updated. But when I click ‘Start Import’ it said

‘Something went wrong’
Refresh to try again
Show technical details

The technical details shown below:
An error occurred in the DHIS2 application.
The following information may be requested by technical support.

TypeError: Cannot read properties of undefined (reading ‘imported’)
at mt (http://10.10.1.5:8888/dhis-web-import-export/static/js/app.9905d4d6.chunk.js:1:478623)
at Qi (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:547683)
at ks (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:593913)
at yl (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:586640)
at ml (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:586565)
at sl (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:583574)
at http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:534945
at t.unstable_runWithPriority (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:610344)
at Yr (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:534654)
at Zr (http://10.10.1.5:8888/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:534890)

in mt
in div
in yt
in div
in vt
in div
in Wn
in div
in Vt
in pi
in n
in n
in Xl
in Pl
in main
in div
in n
in n
in Unknown
in Suspense
in div
in T
in div
in I
in Z
in U
in DHIS2RuntimeProvider
in R
in C
in M
in c

Please advise how to fix this issue.

Thank you.

Hi @nuttapol
Thank you for your post! I would like to ask what is version of the DHIS2 instance you are trying to install the package in?

Hi @Gassim,

DHIS2 version 2.37.

Thank you!

Hi @nuttapol,
Thank you for your patience! I see from your other posts that you are now able to install packages, but were you able to install this package successfully or are you still facing the same issue?

Have you seen the Nutrition package installation instructions here: Installation - DHIS2 Documentation?

Thank you!

Hi guys, having the same issue with another of our packages. Also works in Dry run but not when attempting real import. We suspect it is due to a metadata type

An error occurred in the DHIS2 application.
The following information may be requested by technical support.
TypeError: Cannot read properties of undefined (reading 'imported')
at mt (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/app.9905d4d6.chunk.js:1:478623)
at Qi (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:547683)
at ks (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:593913)
at yl (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:586640)
at ml (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:586565)
at sl (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:583574)
at https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:534945
at t.unstable_runWithPriority (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:610344)
at Yr (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:534654)
at Zr (https://who.sandbox.dhis2.org/test_yr/dhis-web-import-export/static/js/138.8b7719f2.chunk.js:2:534890)
---
in mt
in div
in yt
in div
in vt
in div
in Wn
in div
in Vt
in pi
in n
in n
in Xl
in Pl
in main
in div
in n
in n
in Unknown
in Suspense
in div
in T
in div
in I
in Z
in U
in DHIS2RuntimeProvider
in R
in C
in M
in c
1 Like

@stratosilva - did you ever find a solution for this? I’m seeing the same error - unrelated ot the WHO metadata package, though.

Chase

1 Like

Hi @chase.freeman . Unfortunately not. We raised it to the platform team and no news for now.
We created a Jira ticket: [DHIS2-13019] - Jira
Could you please upload the file you are trying to import there? I might help with the investigation. We suspect there is a concrete piece of metadata which makes everything break, so identifying that would be already a good start

2 Likes

2 posts were split to a new topic: Export empty file in 2.29

Hi, is this resolved? We’re having the same issue with Version 2.37.7.1
Build revision a6a7a34. @Gassim

1 Like

Hello,
After looking the logs, I realized that the errors was due to the server cache. In my case after cleaning the server cache using the App Data Administration/ Clear application cache it’s worked again.

Thanks


3 Likes

Thank you for sharing @diallotafsir52! Glad it worked :slight_smile:

Hi @nuttapol, I got the same error and solved it by removing duplicates in the UID column, after checking catalina.out log

Regards
Isaac

3 Likes

Thank you for sharing @imwota, and welcome back to the community!

1 Like

Thanks for sharing. issue solved using this method.