Error from 'Resolved' or 'Closed' to 'Active' state in bug form
Hi there,
I have customized bug form and applying that process template to team project, when I make bug 'Active' from 'Resolved' or 'Closed' State, I get the below error. What do I need to do to fix this problem?
Thanks,
Anu
Microsoft Visual Studio
Error
This work item has invalid fields, or user has invalid permission.
OK
Anu,
You can try to do the following through the Currituck OM:
try
{
// Initialization is done
workitem.Open();
workitem.State = "Active";
workitem.Save();
}
catch(Exception e)
{
// Save the exception details
}
You can then look at the stack trace of the exception which might give us some more info on the problem.
Thanks,
Avanti
Anu,
You can also run trace monitor tools like dbgview.exe (from sysinternals.com) to view detailed error messages. When you get the error, you can check for each field's validity by looping through each field and checking IsValid to find which field is invalid.
Thanks
Naren