← Back to team overview

dhis2-devs team mailing list archive

[Bug 1521310] [NEW] Event Data Export Giving Errors

 

Public bug reported:

Version 2.21, using the SL demo at: https://apps.dhis2.org/demo/

Using the event data exporter to make some CSV files I am getting myriad errors. I've attached a picture of one of the creation screens called try 1, the result of that one (as admin) is:
{
  "httpStatus": "Conflict",
  "httpStatusCode": 409,
  "status": "ERROR",
  "message": "User has no access to program: IpHINAT79UW"
}
URL:https://apps.dhis2.org/demo/api/events.csv.gz?attachment=events.csv.gz&program=IpHINAT79UW&orgUnit=ImspTQPwCqd&ouMode=DESCENDANTS&startDate=2015-02-01&endDate=2015-11-30&links=false

I tried a different program (no png attached, but the URL is provided here to recreate it):
https://apps.dhis2.org/demo/api/events.csv.gz?attachment=events.csv.gz&program=kla3mAPgvCH&orgUnit=ImspTQPwCqd&ouMode=DESCENDANTS&startDate=2015-04-01&endDate=2015-11-30&links=false

{
  "httpStatus": "Conflict",
  "httpStatusCode": 409,
  "status": "ERROR",
  "message": "Default attribute option combo is specified while program has non-default attribute category combo:  nM3u9s5a52V"
}

I tried another one:
https://apps.dhis2.org/demo/api/events.csv.gz?attachment=events.csv.gz&program=q04UBOqq3rp&orgUnit=ImspTQPwCqd&ouMode=DESCENDANTS&startDate=2015-04-01&endDate=2015-11-30&links=false
and got:
{
  "httpStatus": "Conflict",
  "httpStatusCode": 409,
  "status": "ERROR",
  "message": "User has no access to program: q04UBOqq3rp"
}

The only time I can get an export to work it seems is when there are
zero results.

** Affects: dhis2
     Importance: Undecided
         Status: New

** Attachment added: "Try 1_Access Denied.PNG"
   https://bugs.launchpad.net/bugs/1521310/+attachment/4527721/+files/Try%201_Access%20Denied.PNG

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1521310

Title:
  Event Data Export Giving Errors

Status in DHIS:
  New

Bug description:
  Version 2.21, using the SL demo at: https://apps.dhis2.org/demo/

  Using the event data exporter to make some CSV files I am getting myriad errors. I've attached a picture of one of the creation screens called try 1, the result of that one (as admin) is:
  {
    "httpStatus": "Conflict",
    "httpStatusCode": 409,
    "status": "ERROR",
    "message": "User has no access to program: IpHINAT79UW"
  }
  URL:https://apps.dhis2.org/demo/api/events.csv.gz?attachment=events.csv.gz&program=IpHINAT79UW&orgUnit=ImspTQPwCqd&ouMode=DESCENDANTS&startDate=2015-02-01&endDate=2015-11-30&links=false

  I tried a different program (no png attached, but the URL is provided here to recreate it):
  https://apps.dhis2.org/demo/api/events.csv.gz?attachment=events.csv.gz&program=kla3mAPgvCH&orgUnit=ImspTQPwCqd&ouMode=DESCENDANTS&startDate=2015-04-01&endDate=2015-11-30&links=false

  {
    "httpStatus": "Conflict",
    "httpStatusCode": 409,
    "status": "ERROR",
    "message": "Default attribute option combo is specified while program has non-default attribute category combo:  nM3u9s5a52V"
  }

  I tried another one:
  https://apps.dhis2.org/demo/api/events.csv.gz?attachment=events.csv.gz&program=q04UBOqq3rp&orgUnit=ImspTQPwCqd&ouMode=DESCENDANTS&startDate=2015-04-01&endDate=2015-11-30&links=false
  and got:
  {
    "httpStatus": "Conflict",
    "httpStatusCode": 409,
    "status": "ERROR",
    "message": "User has no access to program: q04UBOqq3rp"
  }

  The only time I can get an export to work it seems is when there are
  zero results.

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1521310/+subscriptions


Follow ups