Could not find column '<column_name>' in previously parsed query!

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

When navigating to a branch of a repository in Bitbucket Server a Server Error is displayed, or when trying to clone a repository the following error is returned on the console:

1 2 remote: Repository hook com.atlassian.bitbucket.server.bitbucket-ref-restriction:restrictionEnforcerHook failed remote: bundle [com.atlassian.bitbucket.server.bitbucket-ref-restriction]

The following appears in the atlassian-bitbucket.log:

1 Caused by: java.lang.IllegalStateException: Could not find column '<column_name>' in previously parsed query!

Diagnosis

Bitbucket Server is using Oracle as its backend database.

Cause

The Oracle user that Bitbucket Server is configured to connect to the database with has too many permissions.

Solution

Resolution

To resolve this problem, revoke extraneous permissions from the Oracle user that Bitbucket Server uses to connect to the database by running the following queries:

1 2 3 REVOKE SELECT ANY TABLE FROM <db_user>; REVOKE DBA FROM <db_user>; REVOKE EXP_FULL_DATABASE FROM <db_user>;

where <db_user> is the Oracle username that Bitbucket Server uses to connect to the database.

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.