迁移历史记录中不再存在“团队项目”引用的工作项失败

时间:2020-07-30 09:05:15

标签: azure-devops-migration-tools

在具有以下处理器配置的两个不同的Azure DevOps组织之间迁移项目时:

{
  "ObjectType": "VstsSyncMigrator.Engine.Configuration.Processing.WorkItemMigrationConfig",
  "Enabled": true,
  "PrefixProjectToNodes": false,
  "UpdateCreatedDate": true,
  "UpdateCreatedBy": true,
  "AppendMigrationToolSignatureFooter": false,
  "LinkMigration": true,
  "AttachmentMigration": true,
  "AttachmentMazSize": 480000000,
  "AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",      
  "FixHtmlAttachmentLinks": true,
  "SkipToFinalRevisedWorkItemType": false,
  "WorkItemCreateRetryLimit": 5,
  "PauseAfterEachWorkItem": false,
  "FilterWorkItemsThatAlreadyExistInTarget": false,
  "BuildFieldTable": false,
  "QueryBit": "AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan') ",
  "OrderBit": "[System.ChangedDate] desc",
  "ReplayRevisions": true,
  "CollapseRevisions": false
}

该过程失败,因为在任何修订中的项目都引用了不再存在的团队项目-这些项目过去在同一组织内的各个项目之间移动,而原始项目在此期间被删除。 / p>

[          User Story][Complete:  18/3284][sid:1471  |Rev:64 ][tid:null   | Microsoft.TeamFoundation.WorkItemTracking.Client.DeniedOrNotExistException: TF26192: The team project specified by the ID 129 does not exist. Check the team project ID and try again.
   at Microsoft.TeamFoundation.WorkItemTracking.Client.ProjectCollection.GetById(Int32 projectId)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.CheckUpdateCachedData(Boolean projectChanged, Boolean typeChanged)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.get_Type()
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemFieldData.Microsoft.TeamFoundation.WorkItemTracking.Internals.IWorkItemOpenFieldDataHelper.SetLatestData(Dictionary`2 latestData)
   at Microsoft.TeamFoundation.WorkItemTracking.Internals.WorkItemHelper.LoadWorkItemFieldData(IRowSetCollectionHelper tables, IWorkItemOpenFieldDataHelper helper)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.LoadWorkItemFromRowSetInternal(Int32 rev, Nullable`1 asof, IWorkItemRowSets witem)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem..ctor(WorkItemStore store, Int32 id, Int32 revision)
   at VstsSyncMigrator.Engine.WorkItemStoreContext.GetRevision(WorkItem workItem, Int32 revision) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\ComponentContext\WorkItemStoreContext.cs:line 202
   at VstsSyncMigrator.Engine.WorkItemMigrationContext.ReplayRevisions(List`1 revisionsToMigrate, WorkItem sourceWorkItem, WorkItem targetWorkItem, Project destProject, WorkItemStoreContext sourceStore, Int32 current, WorkItemStoreContext targetStore) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 361

在保留完整修订历史记录的同时,有什么方法可以克服此问题? 如果我仅迁移最新修订版,则可以解决此问题。

0 个答案:

没有答案