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

This widget could not be displayed.
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.

This widget could not be displayed.

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
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

55 views 0 1
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