ERROR: column "yearly" does not exist`

We have failing analytics generation, it was nearly empty dhis2 2.43.1, just a program.
We rolled back to 2.42

I suspect the analytics assume that there’s always a yearly column but wasn’t added automatically ? (ex an aggregate dataset yearly ?)

`2026-10-15 11:52:34 WARN RecordingJobProgress:583 - [ANALYTICS_TABLE fTgZi5X1zSP] Process aborted after 14.518s: aborted after error: StatementCallback; bad SQL grammar [create unlogged table "analytics_event_doautss2tjd_2025_temp" (check(yearly = '2025')) inherits ("analytics_event_doautss2tjd_temp");]`
`...`
`Caused by: org.postgresql.util.PSQLException: ERROR: column "yearly" does not exist`

Hi Stephan,

We had a similar issue with 43.x versions. It turned out that yearly which is selected by default for “Period types available in analytics apps” in the System Settings → Analytics is not actually selected! So, to resolve the issue, select some other periods like monthly in addition to yearly and then regenerated the analytical tables in the Maintenance.

I haven’t reported this bug on JIRA yet, as I already have multiple outstanding tickets awaiting a response, and I’m concerned about adding another one to the queue without progress on the existing issues.

Sorry you have had this issue.

After facing it myself I am taking it forward to the team.

Hi
Just an update, Shurajit has created a ticket for this issue which you can watch to receive updates when it’s done: DHIS2-22328 - Yearly analytics disabled by default on new blank v43 instances

Thanks!