It's all about the answers!

Ask a question

Error with enumeration while saving Work Item


Tim Hundley (155) | asked Sep 09 '14, 4:48 p.m.

I have a custom enumeration that will potentially have several hundred values.  So, I add a value set provider and assigned that to the value set for the enumerated type.  When I select the values and try to save I get the following message:

"The requested literal exists in the value set but not in the enumeration set.  Value Set providers are not allowed to create enumerations outside of the enumeration set."

The added the value to the value set provider js and to the enumeration set.

1.  How can I resolve this error?

2.  Is there any way to get a long list of enumerations in the tool without having to do each one manually?


Comments
Donald Nong commented Sep 10 '14, 3:08 a.m. | edited Sep 10 '14, 3:15 a.m.

I guess you are using a Script Based Value Set, correct? In this case, what exactly is the script? Based on the error message, it seems to you try to add values that are not defined in the enumeration. If true, I don't think you can do it.
Actually, if you can do without enumeration, you can try something like this
https://jazz.net/library/article/1257

Be the first one to answer this question!


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.