Dear all,
I have been facing a weird issue while importing details to dhis2 system. I have a data element with value type Yes/No. I did create a program with numbers of data element including these dE. Now i am trying to import details to this program. Values for all others dE get migrated except this dE. Please find the import xml below:
I’m a bit unsure what is the issue (or where this bug is). For me, it looks like a bug in Tracker Capture? When you imported this event, you should have gotten a import summary back with a reference ID (the ID of the imported event), could you use that and go to /api/events/ID and see if the value is true or not there? (or even have a look at the trackedentitydatavalue table and see if the data is correct for your data element).
If its not a repeatable stage, you could also use our event query API to get the data for that stage using something like:
Dear all,
I have been facing a weird issue while importing details to dhis2 system. I have a data element with value type Yes/No. I did create a program with numbers of data element including these dE. Now i am trying to import details to this program. Values for all others dE get migrated except this dE. Please find the import xml below:
<?xml version='1.0' encoding='UTF-8'?>
<dataValues>
<dataValue value="Shrestha Medical Sewa" dataElement="Na8N2yMKLYP" providedElsewhere="false" storedBy="admin"/>
It seems you have a value other than true and false. Can you share what you got from api/events/ZEAd3dSU7nB.json?
···
On Mon, Oct 19, 2015 at 8:20 AM, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi Asiz
I’m a bit unsure what is the issue (or where this bug is). For me, it looks like a bug in Tracker Capture? When you imported this event, you should have gotten a import summary back with a reference ID (the ID of the imported event), could you use that and go to /api/events/ID and see if the value is true or not there? (or even have a look at the trackedentitydatavalue table and see if the data is correct for your data element).
If its not a repeatable stage, you could also use our event query API to get the data for that stage using something like:
Dear all,
I have been facing a weird issue while importing details to dhis2 system. I have a data element with value type Yes/No. I did create a program with numbers of data element including these dE. Now i am trying to import details to this program. Values for all others dE get migrated except this dE. Please find the import xml below:
<?xml version='1.0' encoding='UTF-8'?>
<dataValues>
<dataValue value="Shrestha Medical Sewa" dataElement="Na8N2yMKLYP" providedElsewhere="false" storedBy="admin"/>