--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/8ef69e34-aef7-49cb-9b09-a515dcf0f13b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey Michael, happy to help! Would you be willing to post your job expression on the forum?Taylor
On Thu, Sep 7, 2017 at 8:48 PM, <mic...@medicmobile.org> wrote:
Just doing some prototyping to familiarize myself with OpenFn + DHIS2. I set up a job where I submit a hard coded data value set to the DHIS2 demo server. I'm able to successfully curl the same payload directly to DHIS2, but when I set up the job in OpenFn, it says the job failed (see screenshot). Any advice on what may be the issue or how to troubleshoot?curl -d @datavalueset.json "https://play.dhis2.org/dev/api/dataValueSets" -H "Content-Type:application/json" -u admin:district | json_pp{"dataSet": "pBOMPrpg1QX","completeData": "2014-03-03","period": "201402","orgUnit": "DiszpKrYNg8","dataValues": [{ "dataElement": "f7n9E0hX8qk", "value": "10" },{ "dataElement": "Ix2HsbDMLea", "value": "20" },{ "dataElement": "eY5ehpbEsB7", "value": "30" }]}
--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/8ef69e34-aef7-49cb-9b09-a515dcf0f13b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/c4f44641-8418-4016-b3bc-bd80660db9b1%40googlegroups.com.
Very cool. Also, make sure you're using the latest version of the dhis2 adaptor so you've got access to the helpers. Should look like this:
On Fri, Sep 8, 2017 at 1:03 PM, <mic...@medicmobile.org> wrote:
Thanks Taylor! That worked. The issue I had was with the second parameter I provided to dataElement... I sent the string "10" instead of the number 10. Rookie mistake !
On Thursday, September 7, 2017 at 4:48:27 PM UTC-7, mic...@medicmobile.org wrote:Just doing some prototyping to familiarize myself with OpenFn + DHIS2. I set up a job where I submit a hard coded data value set to the DHIS2 demo server. I'm able to successfully curl the same payload directly to DHIS2, but when I set up the job in OpenFn, it says the job failed (see screenshot). Any advice on what may be the issue or how to troubleshoot?curl -d @datavalueset.json "https://play.dhis2.org/dev/api/dataValueSets" -H "Content-Type:application/json" -u admin:district | json_pp{"dataSet": "pBOMPrpg1QX","completeData": "2014-03-03","period": "201402","orgUnit": "DiszpKrYNg8","dataValues": [{ "dataElement": "f7n9E0hX8qk", "value": "10" },{ "dataElement": "Ix2HsbDMLea", "value": "20" },{ "dataElement": "eY5ehpbEsB7", "value": "30" }]}
--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/c4f44641-8418-4016-b3bc-bd80660db9b1%40googlegroups.com.
One more thought... The documentation for dhis2 is pretty new. Can you try a hard-refresh on the page to clear your cache? On Chrome it's cntrl-shift-r, or command-shift-r.
Taylor
You received this message because you are subscribed to a topic in the Google Groups "OpenFn Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openfn/k_rSAjc2Qgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openfn+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/4301bf49-264c-46d8-b815-8c3147956f39%40googlegroups.com.