The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix a failed project automation rule because of the duplicated key?

Vera Valshonok
Contributor
September 8, 2020

I am trying to fix a failed project automation rule: when the issue of specific issue type is created 2 fileds should change to (...set by me). The rule fails sometimes: Unexpected error executing rule:Duplicate key and shows this key.

Are there ways to fix it?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Guilhem Dupuy
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 Champions.
September 9, 2020

Hello,

Have you checked that you don't have a duplicated field, ie a field that is appearing more than once on a defined Screen ?

You can check this by running the following query to your database :

select f.name, i.fieldidentifier, count(*)
from fieldscreen f, fieldscreenlayoutitem i, fieldscreentab t
where f.id = t.fieldscreen
and i.fieldscreentab = t.id
group by f.name, i.fieldidentifier having count(*) > 1;

If you do have a duplicate, the query will return the Screen where a duplicate exists and the concerned field

You can find extra explanations about this process on the following article :

Duplicate Key Error 

Hoping it will help you,

Guilhem