I’m using version 2.38 and the import by uploading the CSV for option sets is working fine. But there is no way to set the value type or country that uses the metadata in the csv file. Would appreciate if someone can help regarding that.
Hi @Muaz
Thank you for your post. I exported an option set in one of the play.dhis2.org instances using the import/export app in JSON format. The valueType is in the option set file and I was able to import them using the JSON format. Would it be possible to use that format instead of CSV?
Thanks!
Hi Gassim, thank you for your reply. My requirement is a CSV file actually. I’m using these Column Headers. Please check and share if you know anything about this.
Hi @Gassim , can you please share the steps of the JSON import?
So for CSV, I think you might want to test by exporting a CSV file of the data you want to upload and then upload using the same template, see here: https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-master/metadata.html#webapi_metadata_csv_export
If you are using the API, you could follow this guide: https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-master/metadata.html#webapi_metadata_import
If you are using the Import / Export app, you could try to export the JSON file from the instance, make updates, and import it.
Hello @Gassim I’m trying to import optionsets in to DHIS2 PLAY But I’m getting a blank import as shown below
This is the csv templete that I’m using
OptionSet.csv (618 Bytes)
I have followed this documentation