You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One work item type I'm having issues with cannot seems to populate fields correctly.
So I thought I would move this type to 'Bug' instead because the type i'm migrating is defunct anyway and its only for history reasons they are copied.
However I'm receiving the following error.
Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinitionNotExistException: TF26027: A field definition Microsoft.VSTS.Common.ClosedDate in the work item type definition file does not exist. Add a definition for this field or remove the reference to the field and try again.
at Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinitionCollection.get_Item(String name)
at Microsoft.TeamFoundation.WorkItemTracking.Client.FieldCollection.get_Item(String name)
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.PopulateWorkItem(WorkItemData oldWorkItemData, WorkItemData newWorkItemData, String destType) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:line 422
at MigrationTools.Processors.TfsWorkItemMigrationProcessor.ReplayRevisions(List`1 revisionsToMigrate, WorkItemData sourceWorkItem, WorkItemData targetWorkItem) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:line 767
If I debug the code I get to PopulateWorkItem and this particual code regarding ClosedDate
The first if statement is true but the second get false.
While (newWorkItem.Fields.Contains("Microsoft.VSTS.Common.ClosedDate") is true newWorkItem.Fields["Microsoft.VSTS.Common.ClosedDate"].IsEditable) is false when running the second time.
The second if statement seems to be redundant at first glance?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have encountered an issue that is puzzling me.
One work item type I'm having issues with cannot seems to populate fields correctly.
So I thought I would move this type to 'Bug' instead because the type i'm migrating is defunct anyway and its only for history reasons they are copied.
However I'm receiving the following error.
If I debug the code I get to PopulateWorkItem and this particual code regarding ClosedDate
The first if statement is true but the second get false.
While
(newWorkItem.Fields.Contains("Microsoft.VSTS.Common.ClosedDate")
is truenewWorkItem.Fields["Microsoft.VSTS.Common.ClosedDate"].IsEditable)
is false when running the second time.The second if statement seems to be redundant at first glance?
Beta Was this translation helpful? Give feedback.
All reactions