Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to create a Plan in Portfolio Edited


I need help installing portfolio. Once it is installed, I can't create a plan with portfolio. 

portfolio jira.JPG

I also can't assign permissions to persons or groups within portfolio. 

Once I try to add permissions to my users, i get the following error

com.atlassian.activeobjects.internal.ActiveObjectsSqlException :There was a SQL exception thrown by the Active Objects library: Database: - name:MySQL - version:5.6.42 - minor version:6 - major version:5 Driver: - name:MySQL Connector Java - version:mysql-connector-java-5.1.47 ( Revision: fe1903b1ecb4a96a917f7ed3190d80c049b1de29 ) com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '0' for key 'PRIMARY'


 I tried reinstalling portfolio for JIRA, but I keep getting the same errors.

 I think the problem lies in the AOPERMISSION table which inserts a row with all null values except the ID_OTHER field which is initialized in 0.

I appreciate the help



1 answer

1 accepted

0 votes
Answer accepted

The problem was due to a bad MySQL configuration. 

We had the variable sql_mode = NO_AUTO_VALUE_ON_ZERO set.

Removing this variable was able to fix the problem.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

848 views 2 22
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you