Metadata Import error on version 2.41.3

Hi everyone,

I was trying to import metadata from online instance into localhost but return error like “File content could not be stored”.

Both version are 2.41.3.

I’ve done this on previous version 2.38.5 and successful before.

Best,

1 Like

Hi @Wut_Yee

Glad to see you again in the community! :slight_smile:

Sorry to hear you’re facing an issue that used to work. I don’t know which method you used to export/import; however, here are some additional tips for testing:

  1. If you use the simplest and most basic export (such as export OU level… or one from the list that you’re selecting).
  2. Using that simple export, import to your local instance, does the issue appear?
  3. Another step is to try another set of metadata. For instance, from the play.dhis2.org instance version 41 …

I hope we’ll be able to figure out what’s going on. Thanks!

1 Like

Hi @Wut_Yee
We had similar issue recently after installing DHIS2 locally. Trying to import org unit we had the same error.
We found a way to resolve by going through the following steps:

  1. Stop the Apache tomcat from service.
  2. Remove the DHIS2 warfile from the webapp folder
  3. Delete the folder of the DHIS2 folder in the webapp associated to the warfile.
  4. Download a new dhis2 warfile and place it into the webapp folder again
  5. Re-run the first apache-tomchat.exe as administrator so it can read the warfile again
  6. Run the second apache-tomcat.exe as administrator to start the server
  7. Try to import the metadata again and it should now be able to import.
    Hope this helps :crossed_fingers:
2 Likes

Hello! Thanks for the reply, I’ll check it out.

Best,

Thank you @cnwosu

I’ll try with these steps and will get back if this could solve the problem.
Hopefully it’s work!

Thanks again.