← Back to team overview

dhis2-users team mailing list archive

Web API Not Allowing Bulk Data Values Transfer on Demo Site

 

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="
https://apps.dhis2.org/demo/api/dataValueSets";>here</a>.</p>
</body></html>


Hi,

I was trying to use the DHIS Web API to transfer a bulk of data values to
the demo site but it returned an error. This is the XML file I was trying
to process:

<dataValueSet xmlns="http://dhis2.org/schema/dxf/2.0";>
  <dataValue dataElement="f7n9E0hX8qk" period="201501"
orgUnit="DiszpKrYNg8" value="12"/>
  <dataValue dataElement="f7n9E0hX8qk" period="201501"
orgUnit="FNnj3jKGS7i" value="14"/>
  <dataValue dataElement="f7n9E0hX8qk" period="201502"
orgUnit="DiszpKrYNg8" value="16"/>
  <dataValue dataElement="f7n9E0hX8qk" period="201502"
orgUnit="FNnj3jKGS7i" value="18"/>
</dataValueSet>

Below is the result I get (I have also attached a screenshot of what is
fully returned):

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="
https://apps.dhis2.org/demo/api/dataValueSets";>here</a>.</p>
</body></html>

Any help to get this working will be highly appreciated.

Regards,

Edwin


[image: Inline image 1]

PNG image


Follow ups