TFS Integration – TF237124 – Work Item is not ready to save

With this post, I want start a new category: TFS Integration…

For a project I had to create some TFS Work Items programmatically using the TFS API. However saving the work item resulted in the following error message:

TF237124: Work Item is not ready to save

This error message doesn’t give any useful information. What’s important to know is that you can configure a lot of rules before a work item is valid. It’s important to validate the WorkItem prior to save. The validate() method will return an arraylist of invalid fields.

This will give you all the information you need to know why this workitem cannot be saved (In this case I have 3 invalid fields; in the following image, for example, U have the “Backlog Priority” field with an invalid value).

validate

One thought on “TFS Integration – TF237124 – Work Item is not ready to save

  1. In my case there was nothing in the Validate results. I was able to write to other fields, so upon closer inspection my field in question had a list associated with it, and the value I tried to set was not in the list.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...