Exception when trying to create a new issue

Johannes Seyfried January 12, 2016

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2016

Is that field a ranking type field?

Johannes Seyfried January 12, 2016

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2016

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.

Johannes Seyfried January 12, 2016

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

0 votes
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 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.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 12, 2016

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

Johannes Seyfried January 12, 2016

This query returns no results.

Suggest an answer

Log in or Sign up to answer