It's all about the answers!

Ask a question

Removing a Custom Attribute


John Steele (27112) | asked Jan 16 '18, 8:59 a.m.

I added a Custom Attribute to the Epic work item type, then removed it. 


I am now trying to add a similar attribute back, but Eclipse reports, "An attribute with the same ID already exists".

What's going on?

There is no other attribute in this PA with the same ID, but there is another PA on the same server where the same attribute ID is used.

Is the old attribute's ID not really removed? Is there a way to fully remove it?

Many thanks in advance.


Accepted answer


permanent link
Alex Akilov (1211724) | answered Jan 16 '18, 11:43 a.m.

You can try and run a query that lists that ID in the columns and see if any of the work items already have a value assigned.  If you can change the value of those attributes in all of those work items to unassigned, and make sure all other references to this ID in the process specification and in editor presentations is removed, perhaps RTC will try and reclaim the attribute but I believe that as long as there are work items that have a "slot" for that ID already, that it's probably not possible to delete it since the column was already allocated for it in the DB.

You can use a slightly different ID for your new attribute and make sure that the other one is no longer used by any other item in this project area (what other project areas use shouldn't matter).

John Steele selected this answer as the correct answer

Comments
John Steele commented Jan 16 '18, 11:59 a.m.

 Alex,


I think this must be what's going on and I'll try to confirm it later. 

Many thanks for taking the time to answer - it really helps having a sounding board.

 - John

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.