Wednesday, May 30, 2007

MS Process Editor Bug !!

Hi All,

This post i will show a bug in MS Process Editor, When you try to customize the Process (Workitems Types,Iteration,.....etc) when you try to create a new project with it,you will get an error,this error will be customized based on the customized portion in yur process:
1) Iteration Error or
2)Tasks Error or
3)Work Type Error.

if you want to produce this error ,Do the following:

1) Open Your process.

2) Delete and modify the existing iterations.

3) Upload your Modified Process.

4) Try to create a project using this Process Template,and you will get this error :

Click on the Log File,The first exception is :

---begin Exception entry---Time: 2007-05-30 11:50:22ZModule: Work Item TrackingEvent Description: TF26214: Cannot save the work item. Fields with errors: Iteration Path,IterationIDException Type: Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationExceptionException Message: TF26202: Validation failed. Field 'Iteration Path' not supported.Stack Trace: at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.PreValidate() at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.PreBatchSave() at Microsoft.TeamFoundation.WorkItemTracking.Client.BatchSaveHelper.BatchSave(WorkItem[] items)--- end Exception entry ---

The Fix for this problem, The Editor doesn't change the other files which use the old values and when the TFS try to create the project it searchs for the old values which is not exist on the updated xml file.

This error usually happens on the "workitems.xml" which conatains a default tasks for each project,if you see the below work item :

Iteration 0"/>

Iteration value is wrong which makes this problem happen when you create new project in the TFS.

You might face the problem with Other customized items on the TFS.

Hope this helps.

Moustafa arafa


Anonymous said...

This is exactly the issue I am encountering, but I do not understand your explanation of how to fix it.

Moustafa El-Zoughby said...

as i mentioned,open and update workitems.xml file and verify that iteration key in the file same as defined in your TFS project.

Hope this helps.

Anonymous said...

Thanks! Since I had removed Iteration 0 from the project template, I removed the \Iteration 0 from the workitems.xml and this seems to have solved the issue. It seems my remaining issue:
Event Description: TF26214: Cannot save the work item. Fields with errors: Discipline
Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException
Exception Message: TF26201: This work item has unsupported fields, or user does not have permissions.
is because I changed the allowed values for Discipline field, so I will create a custom field for that and replace the Microsoft.VSTS field.
Regards from Denver, Colorado

Moustafa El-Zoughby said...

Hi Denver,

it seems that the XML Format for your workitems.xml is not properly formatted that's why the fired this problem,to fix it do the following :
1) just remove the initial setting on workitems.xm file such as the iteration.
2)don't ad any custom field,after creating your project,you can do it using the process editor.

Hope This helps.

Anonymous said...

Nice post as for me. I'd like to read more about this matter. Thanks for posting this info.