dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #13564
Re: Manual data import failure
Hi Antonio
You need to set up DHIS2 *meta*data so that it can parse your data values
first, so that you can match your data values to data elements in the
system - if there are no data elements, you can not match them and import
them, so starting point would be setting up data elements.
To actually import values, you need to register them it against an
Organisation Unit which you also need to set up as well as probably a
dataset ("input form").
Only then you can import your data values. I would suggest also to start
with reading on documentation about DHIS2 principles and core data
dimensions here:
https://docs.dhis2.org/master/en/implementer/html/dhis2_implementation_guide_full.html#d0e174
https://docs.dhis2.org/master/en/implementer/html/dhis2_implementation_guide_full.html#d0e250
https://docs.dhis2.org/master/en/user/html/dhis2_user_manual_en_full.html#data_dimensions
(this one is a bit hidden down in the user guide)
Best regards,
David
On Wed, Jun 28, 2017 at 5:52 PM, Jesus Solano-Roman <
asolano@xxxxxxxxxxxxxxxxxx> wrote:
> Hello Timothy.
>
> Thank you for your quick reply. I just saw the video and I've read the
> documentation regarding data import. It's not clear to my how custom IDs
> are converted to Data Element IDs. Do I need to create the dataelement
> codes before uploading the data? In the video they use the API but it's
> clear that those conversions have already been made. For instance, on my
> dataset the "OriginalGnum" column specifies an ID. If I query:
>
> http://localhost:8080/dhis/api/dataElements/query/EM-095-1
>
> I get the response: {"httpStatus":"Not Found","httpStatusCode":404,"
> status":"ERROR","message":"DataElement with id query could not be found."}
>
> Moreover, this would imply that I have to convert every unique ID into a
> Data Element ID, which for large datasets would be very hard. I'm sure I am
> missing something or getting something wrong.
>
>
> Thanks again for the help,
>
>
>
> On Wed, Jun 28, 2017 at 11:04 AM, Timothy Kiyemba <tkiyemba@xxxxxxxxx>
> wrote:
>
>> Dear Antonio,
>>
>> Check out this video on importing data into DHIS2 using CSV. Its very
>> easy. However, you will need to ensure you have your data in the format
>> that DHIS2 accepts.
>>
>> https://youtu.be/CGSDuA-gOWk.
>>
>> Also check out the developers mannual on the recommended formats to
>> import data into DHIS2. Check out the chapter on importing.
>>
>> Kind regards
>>
>> Timothy
>>
>> On Wed, Jun 28, 2017 at 5:41 PM, Jesus Solano-Roman <
>> asolano@xxxxxxxxxxxxxxxxxx> wrote:
>>
>>> Hello all.
>>>
>>> I am very new to DHIS2 and I've been reading tutorials and the user
>>> manual, but I can't seem to manually import a dataset (all my rows are
>>> ignored). I searched through the mailing list and couldn't find answers, so
>>> I hope this question hasn't been asked before.
>>>
>>> I am working with part of the Ebola Kenema dataset:
>>> https://dataverse.harvard.edu/dataverse/ebola?q=&ty
>>> pes=files&sort=dateSort&order=desc&page=1
>>>
>>> The file called: MasterDataListandEBOVResults.csv has the following
>>> structure:
>>>
>>> OriginalGnum,GID,AKA,Series,EBOVPCRResults,EbolaRunDate,IDFr
>>> omMetadata,SAMPLEID,EBOVCopies_mL_plasma,EbolaResult,Group
>>> EM-095-1,EM-095,,1,Positive,2014-05-27,EM095,EM-095,149693.0
>>> 57143,Positive,Epos
>>> EM-95B,EM-95B,,1,,,,EM-095B,1332008.74286,Positive,Epos
>>> ...
>>>
>>> When I import it, all my rows are ignored and I get the following
>>> message after the dry run: *Data element not found or not accessible.*
>>>
>>> I am aware that the file structure does not comply to the structure
>>> expected by DHIS, but I am very confused as to how to fix it. Am I supposed
>>> to create Orgunits and parent groups-before importing-?, or do I need to
>>> change the headers of my csv to comply with some predefined structure? I
>>> think I just need guidance on the steps to make a manual import successful,
>>> as I haven't been able to find any online.
>>>
>>>
>>> Thanks in advance,
>>>
>>>
>>> *Antonio Solano-Roman*
>>>
>>> Data Visualization & User Experience Design
>>> Sabeti Lab - Broad Institute
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
--
*David Huser*
DHIS2 Support Specialist
dhuser@xxxxxxxxxxxxxx | https://baosystems.com | Skype: dafhus | 2900 K
Street, Suite 406, Washington D.C. 20007
Follow ups
References