我正在尝试在两个 Azure DevOps 组织之间迁移工作项。我收到以下错误。它在验证验证后立即出现。这似乎与“迁移所有节点”有关。有人对如何解决这个问题有任何想法吗?
22:22:31.794 -05:00 [INF] 在处理器运行之前迁移所有节点。2021-06-06 22:22:32.076 -05:00 [DBG] NodeStructureEnricher.MigrateAllNodeStructures(false, []) 2021-06-06 22:22:32.079 -05:00 [DBG] NodeStructureEnricher.ProcessCommonStructure(Area, Area ) 2021-06-06 22:22:32.120 -05:00 [FTL] 运行 WorkItemMigration System.InvalidOperationException 时出错:序列在 MigrationTools 的 System.Linq.Enumerable.First[TSource](IEnumerable`1 源) 中不包含任何元素。 D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\ProcessorEnrichers\TfsNodeStructure.cs: MigrationTools.Enrichers 中的 Enrichers.TfsNodeStructure.ProcessCommonStructure(String treeTypeSource, String sourceTarget, String treeTypeTarget, String projectTarget) D:\a\1\s\src\MigrationTools.Clients 中的 .TfsNodeStructure.MigrateAllNodeStructures()。
我的配置文件如下:
{ "Version": "11.9", "LogLevel": "Verbose", "TelemetryEnableTrace": true, "ChangeSetMappingFile": null, "Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/source/",
"Project": "project",
"PersonalAccessToken": "patsource",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
} }, "Target": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/target/",
"Project": "project",
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
"PersonalAccessToken": "pattarget",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
} }, "FieldMaps": [], "MappingTools": [], "GitRepoMapping": null, "Endpoints": {
}, "Processors": [
{
"$type": "WorkItemMigrationConfig",
"Enabled": true,
"ReplayRevisions": false,
"PrefixProjectToNodes": false,
"UpdateCreatedDate": true,
"UpdateCreatedBy": true,
"BuildFieldTable": false,
"AppendMigrationToolSignatureFooter": false,
"WIQLQueryBit": "",
"WIQLOrderBit": "[System.ChangedDate] desc",
"LinkMigration": true,
"AttachmentMigration": true,
"AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
"FixHtmlAttachmentLinks": false,
"SkipToFinalRevisedWorkItemType": true,
"WorkItemCreateRetryLimit": 5,
"FilterWorkItemsThatAlreadyExistInTarget": false,
"PauseAfterEachWorkItem": false,
"AttachmentMaxSize": 480000000,
"CollapseRevisions": false,
"LinkMigrationSaveEachAsAdded": false,
"GenerateMigrationComment": false,
"NodeBasePaths": [],
"WorkItemIDs": null
} ] }