TFS 2012 RC - TF237165: Team Foundation was unable to update the work item due to a validation error on the server. This may happen because

So, we are using TFS 2012 RC and have slightly changed the workflow for a regular task item, adding a few custom transition states.

When updating tasks, although Visual Studio 2012 RC, everything works fine. I can easily navigate through all the states. However, when updating a task through the TFS Portal, dragging an item on the board or opening a form and changing the state using the drop-down list, I get the following error: "TF237165: Team Foundation was unable to update the work item due to a validation error on the server. This can happen from "because the work item type has been changed or destroyed, or you do not have permission to update the work item."

This ONLY happens, however, when you switch to the "Ready" state and nothing else. All other conditions work fine.

So I'm not sure what that means, since it works great in Visual Studio. Which would be useful if I could see an exception or more information somewhere, but I don't know where these validation errors are stored.

Any help would be greatly appreciated!

+7
source share
3 answers

The problem was the work flow. The transition was the setting of a field that was contrary to the state, also changing the same field.

+2
source

In my case, there was another problem. The problem was that the field had the final \ r \ n in the data sent by the server. I believe the javascript OM client removes this, which makes the field dirty even though it is read-only. The workaround was to make the read and write field instead of read. Then I return it read-only - and now it works. Micrsoft has promised that they can fix this in a future release.

0
source

In my case, on TFS 2013 U5, I changed my TFS profile display name to not match my DisplayDirectory ActiveDirectory. I could not edit or create anything until I changed DisplayName.

0
source

All Articles