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

Public bug reported:

Version 2.21, using the SL demo at: DHIS2 App Hub

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:DHIS2 App Hub

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: DHIS2 App Hub

  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:DHIS2 App Hub

  I tried a different program (no png attached, but the URL is provided here to recreate it):
  DHIS2 App Hub

  {
    "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:
  DHIS2 App Hub
  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

** Changed in: dhis2
    Milestone: None => 2.22

** Changed in: dhis2
     Assignee: (unassigned) => Lars Helge Øverland (larshelge)

** Changed in: dhis2
   Importance: Undecided => Medium

** Changed in: dhis2
       Status: New => Fix Committed

···

--
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:
  Fix Committed

Bug description:
  Version 2.21, using the SL demo at: DHIS2 App Hub

  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:DHIS2 App Hub

  I tried a different program (no png attached, but the URL is provided here to recreate it):
  DHIS2 App Hub

  {
    "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:
  DHIS2 App Hub
  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

** Changed in: dhis2
       Status: Fix Committed => Fix Released

···

--
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:
  Fix Released

Bug description:
  Version 2.21, using the SL demo at: DHIS2 App Hub

  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:DHIS2 App Hub

  I tried a different program (no png attached, but the URL is provided here to recreate it):
  DHIS2 App Hub

  {
    "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:
  DHIS2 App Hub
  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