2
votes

I have created a Work Item Definition for TFS 2010 called "KB Item" and imported it to TFS server. After some KB Items were created in TFS, I needed to update the work item definition. I made some changes and imported new KB Item definition to TFS. Now I can reate new KB Items but can't update and save KB Items created prior to definition change.

I get the following error:

TF26212: Team Foundation Server could not save your changes. There may be problems with the work item type definition. Try again or contact your Team Foundation Server administrator.

I did google it but nothing worked.

3
Finally I got it working! One of the things I updated was GLOBALLIST which was used by KB Item type. I added new values to the existing GLOBALLIST and imported to TFS server and that broke my older work items, so what I have done was I set the value in each old KB Item to some other value in the list saved it, than set the value back to what it was and save again. Because I didn't have a lot of KB Items in TFS, I just did it one-by-one manually. Hope, this helps you or point in the right direction for resolving your issue!Vic

3 Answers

0
votes

Glad it's working.

If you haven't already done so, you should add the ALLOWEXISTINGVALUE rule to the field that references the global list. That way if the global list drops a value that existing work items use then those work items will still be editable.

0
votes

Just for information if others are searching for this: In my case, the problem was a field set to REQUIRED WHEN (otherField="x") and the otherField was automatically set to "x" on a state transition.

The required field is not marked as required in the work item editor, but when trying to save, the above error occurs. Solution in this case is oviously entering some text into the field.

0
votes

One other item: TFS cache needs to be cleared, if working on more than one TFS server going back and forth will cause cache issues. PowerShell to clear cache. remove-item "C:\Users\$env:username\AppData\Local\Microsoft\Team Foundation\4.0\Cache*" -Force -Confirm:$false -WarningAction:SilentlyContinue -Recurse