On DHIS2 version version 2.33.2. I am facing a challenge on importing an Organisation Units (CSV format) . The error received is “Invalid format: “OpeningDate”. The date format assigned on my CSV is yyyy-mm-dd (i.e. 2017-04-06).
The file columns are:-
name,uid,code,Parentuid,Shortname,Description,OpeningDate,ClosedDate,Comment,Feature type,Coordinates
The structure is the one that i shared above. If you want to use CSV, arrange data in Excel into the format below. And then save it as CSV coma delimited. You can import to DHIS2 by using Export/Import functionality
For example, the minimum you can have is the following
name,uid,code,parent
“West province”,“WESTP”,“ImspTQPwCqd”
“East province”,“EASTP”,“ImspTQPwCqd”
Hi Seleman,
Thank you it worked fine, the error of invalid “openingDate” faced me and what I did to resolve that I opened the CSV file with notepad++ and modified the date format.
CSV removes the custom format after you save the file, so open with notepad++ and modifying the date worked for me.