← Back to team overview

dhis2-devs team mailing list archive

Re: Web API Not Allowing Bulk Data Values Transfer on Demo Site

 

Hi Morten,

I tried that but I got the following error:

[image: Inline image 1]

On Mon, Jun 1, 2015 at 12:20 PM, Morten Olav Hansen <mortenoh@xxxxxxxxx>
wrote:

> Hi
>
> You need to use https when you are using cURL, it doesn't forward
> automatically.
>
> --
> Morten
>
> On Mon, Jun 1, 2015 at 4:03 PM, Edwin Mulwa <eddiemu@xxxxxxxxx> wrote:
>
>> <!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]
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

PNG image

PNG image


Follow ups

References