relation "public.AO_60DB71_LEXORANK_ID_seq" does not exist

I upgrade JIRA from 6.1.4 to 6.4.9 on postgres and I don't know how I can solve this problem:

There was a SQL exception thrown by the Active Objects library: Database: - name:PostgreSQL - version:9.5.1 - minor version:5 - major version:9 Driver: - name:PostgreSQL Native Driver - version:PostgreSQL 9.0 JDBC4 (build 801) org.postgresql.util.PSQLException: ERROR: relation "public.AO_60DB71_LEXORANK_ID_seq" does not exist Position: 16

I googled it a lot and raise a support ticket to Atlassian, But I need to fix it soon.
Here there is a KB but it didn't work.

I test this with Oracle DB also and getting an error like postgres:

There was a SQL exception thrown by the Active Objects library: Database: - name:Oracle - version:Oracle Database 11g Enterprise Edition Release - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options - minor version:2 - major version:11 Driver: - name:Oracle JDBC driver - version: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("DBJIRA"."AO_60DB71_LEXORANK"."ID")

Thanks in advance for your help.

3 answers

1 accepted

This widget could not be displayed.

Thanks to Atlassian support this problem has been solved by this workaround:

What you do is open the activeobjects.xml file, and find and replace primaryKey="true" autoIncrement="false" to primaryKey="true" autoIncrement="true".

Please assure you have a copy of the file in case something goes wrong.

This widget could not be displayed.
Vasiliy Zverev Community Champion Mar 13, 2016

Tables with names starts with AO_ are for plugins. It seems that on your JIRA instance you have same trouble with plugin. It could be incompatible version of a plugin or requred plugin was deleted.

This table belongs to JIRA Agile and I install a compatible version of it on my JIRA Instance.

This widget could not be displayed.

Maybe this will help You. There is also a specific problem with LEXORANK field on JIRA 6.4+

Thanks for Comment. I try it and it didn't work sad

Can You please give some more information when this problem appears? On JIRA start, On dragging issue from one status to another, etc...?

I see this problem in following situation:

1- Drag and Drop (Re-rank) issue in Agile backlog

2- Create Sprint

3- Delete Issue

I see it in this cases

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

281 views 5 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you