Cannot download files

Hi dear,

Iam new to DHSI2. I cannot download event report. below is the error log from tomcat. The version that I am using is 2.37.11. Appreciate your support.

org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [select psi.uid as event, psi.created as created, psi.lastupdated as lastUpdated, psi.storedby as storedBy, psi.createdbyuserinfo as createdbyuserinfo, psi.lastupdatedbyuserinfo as lastUpdatedbyuserinfo, psi.completedby as completedBy, psi.completeddate as completedDate, psi.duedate as dueDate, psi.executiondate as eventDate, ou.uid as orgUnit, ou.name as orgUnitName, psi.status as status, pi.uid as enrollment, ps.uid as programStage, p.uid as program, coc.uid as attributeOptionCombo, psi.deleted as deleted, psi.geometry as geometry, psi.eventdatavalues #>> ‘{pJfOInn3mdo, value}’ as pJfOInn3mdo, psi.eventdatavalues #>> ‘{JiFSd9aS0oQ, value}’ as JiFSd9aS0oQ, psi.eventdatavalues #>> ‘{guOVENoeGLE, value}’ as guOVENoeGLE, psi.eventdatavalues #>> ‘{d5cYxhQtqQN, value}’ as d5cYxhQtqQN, psi.eventdatavalues #>> ‘{LQSn73kU3GU, value}’ as LQSn73kU3GU from programstageinstance psi inner join programinstance pi on pi.programinstanceid = psi.programinstanceid inner join program p on p.programid = pi.programid inner join programstage ps on ps.programstageid = psi.programstageid left join users auc on (psi.assigneduserid=auc.userid) left join userinfo au on (auc.userid=au.userinfoid) inner join organisationunit ou on psi.organisationunitid=ou.organisationunitid where ou.organisationunitid = 67 and ps.programstageid = 69 and psi.attributeoptioncomboid = 24 and psi.deleted is false order by eventDate DESC ]; nested exception is org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table “coc”

Regards,

Walid

Hi @walid_irshad

What app are you using? Could you please try to use the Line Listing app? Is it possible to reproduce this issue on any of the play.dhis2.org instances?

Thank you!

Hi Gassim,

Thank you for you quick response. I used the demo environment ( DHIS 2 Demo - Sierra Leone) and was able to replicate the same issue. Here are the steps I used.

  1. capture app
  2. Selected registering unit (Sierra Leone) and program (
    Malaria case registration)
  3. Registered a new event.
  4. Download data (used the 3 dots)
  5. Download as csv
    getting error: Couldn’t download - Something went wrong. Try again or contact your organization.
    screenshot attached below:

Regards,

Walid