1

We are getting below error when trying to migrate the test plan and suites. [19:57:05 FTL] Error while running TestPlansAndSuitesMigrationContext System.ArgumentNullException: Value cannot be null. Parameter name: name at Microsoft.TeamFoundation.WorkItemTracking.Client.FieldCollection.get_Item(String name) at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.AssignReflectedWorkItemId(Int32 sourceWIId, Int32 targetWIId) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 361 at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.ProcessTestSuite(ITestSuiteBase sourceSuite, ITestSuiteBase targetParent, ITestPlan targetPlan) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 929 at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.ProcessTestSuite(ITestSuiteBase sourceSuite, ITestSuiteBase targetParent, ITestPlan targetPlan) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 952 at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.ProcessTestSuite(ITestSuiteBase sourceSuite, ITestSuiteBase targetParent, ITestPlan targetPlan) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 952 at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.ProcessTestPlan(ITestPlan sourcePlan) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 821 at VstsSyncMigrator.Engine.TestPlandsAndSuitesMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\TestPlansAndSuitesMigrationContext.cs:line 83 at MigrationTools._EngineV1.Processors.MigrationProcessorBase.Execute() in D:\a\1\s\src\MigrationTools_EngineV1\Processors\MigrationProcessorBase.cs:line 47 [19:57:05 ERR] TestPlansAndSuitesMigrationContext The Processor MigrationEngine entered the failed state...stopping run

Sudheesh
  • 11
  • 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 09 '21 at 13:42

1 Answers1

0

The error occurs in the "AssignReflectedWorkItemId".

  1. You need to check if this property has been set correctly in the "Source" and "Target" section of your config file. e.g. : "ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",

  2. The property value (Custom.ReflectedWorkItemId) should be either a real custom field in the target project or just any existing field with type of 'string' (as workaround - not sure about correctness).

Rachel
  • 81
  • 1
  • 9