Exception when trying to create a new issue

Since the upgrade to JIRA 7 when trying to create a new issue this exception is displayed:

 

Exception occurred: java.lang.IllegalArgumentException: Multiple entries with same key: customfield_10402=com.atlassian.jira.rest.v2.issue.IssueBeanBuilder2$FieldData@3b7ab06a and customfield_10402=com.atlassian.jira.rest.v2.issue.IssueBeanBuilder2$FieldData@56583aab

Curiously

  1. the issue is created although the message is shown (but the dialog is still open, displaying the error message)
  2. the customfield is neither necessary nor displayed in any screen related to this issuetype or project
  3. the customfield exists only once in the database and its context is highly restricted to another project

Any ideas on this?

 

2 answers

0 votes
Vasiliy Zverev Community Champion Jan 12, 2016

It means that two values for customfield with id 10402 have the same id. 

If you use server version you can try to get doubled customfield values with this SQL:

Select
	customfieldvalue.ID
	, customfieldvalue.CUSTOMFIELD
from
	customfieldvalue
group by
	customfieldvalue.ID
	, customfieldvalue.CUSTOMFIELD
having
	COUNT(customfieldvalue.ID) > 1

I got similar troubles when inserted values into custom field via SQL.

Exactly. Never change a JIRA database with SQL (unless you *fully* understand what you're doing. Which most people don't)

This query returns no results.

0 votes

Is that field a ranking type field?

No, its a rarely used customfield restricted to one project.

Ok, what type of field is it? This error looks like you've got more than one value for a single-select field. You might have to delete one.

you're right, it's a single-select field. I'll have a look into this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,513 views 15 20
Read article

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