I hope this message finds you well , I wanted to see the sql query in my dhis2 2.40.1 has given error conflict when I went to check dhis2 demo there is also given error.
Thank you for pointing this out. It appears that this used to be supported in the Event Reports app and is currently not supported in the Line Listing app, and since the app that’s receiving updates and improvements is the Line Listing app, would you like to create a feature request to include the “Raw data SQL” download feature? If you do create a feature request, please share the link to the issue so other community members can watch for updates , comment, and like.
For the time being, you might want to use the SQL View app? You could make use of a software such as pgadmin to explore the tables and values, create a query, and then run it in the SQL View app. Please let me know if this would be helpful?