# Error: Process failed: StatementCallback; SQL \[create table if not exists analytics\_event ERROR: tables can have at most 1600 columns

**URL:** <https://community.dhis2.org/t/error-process-failed-statementcallback-sql-create-table-if-not-exists-analytics-event-error-tables-can-have-at-most-1600-columns/50658>\
**Category:** Support - Assistance technique\
**Tags:** tracker, analytics\
**Created:** [17 November 2022 10:34 UTC](https://community.dhis2.org/t/error-process-failed-statementcallback-sql-create-table-if-not-exists-analytics-event-error-tables-can-have-at-most-1600-columns/50658 "2022-11-17T10:34:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drlappies](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/d/73ab20/32.png) [@drlappies](https://community.dhis2.org/u/drlappies)\
**Post date:** [17 November 2022 10:34 UTC](https://community.dhis2.org/t/error-process-failed-statementcallback-sql-create-table-if-not-exists-analytics-event-error-tables-can-have-at-most-1600-columns/50658/1 "2022-11-17T10:34:40Z")

</div>

Getting the above error when trying to Run Analytics table in the System Admin module, is there a work around this?

ERROR: tables can have at most 1600 columns; nested exception is org.postgresql.util.PSQLException: ERROR: tables can have at most 1600 columns

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [21 November 2022 12:32 UTC](https://community.dhis2.org/t/error-process-failed-statementcallback-sql-create-table-if-not-exists-analytics-event-error-tables-can-have-at-most-1600-columns/50658/2 "2022-11-21T12:32:50Z")

</div>

@drlappies

Thank you for your post! This issue happens when the number of data elements that are being run in analytics table export exceed the number 1600 (1600 is the number of columns limit in Postgresql tables, [source](https://www.postgresql.org/docs/current/limits.html#:~:text=columns%20per%20table,1600))

A feature request had been created to fix this: [[DHIS2-11720] - Jira](https://dhis2.atlassian.net/browse/DHIS2-11720)
