"WorkItemTypeDefinition" do not working
See original GitHub issueHi.
In configuration I set “WorkItemTypeDefinition”: { “Bug”: “Bug”, “Code Review Request”: “Code Review Request”, “Code Review Response”: “Code Review Response”, “Epic”: “Epic”, “Feature”: “Feature”, “Feedback Request”: “Feedback Request”, “Feedback Response”: “Feedback Response”, “Shared Parameter”: “Shared Parameter”, “Shared Steps”: “Shared Steps”, “Task”: “Task”, “Test Case”: “Test Case”, “Test Plan”: “Test Plan”, “Test Suite”: “Test Suite”, “User Story”: “Product Backlog Item”, “Issue”: “Impediment” },
But when I start migration, I get an exception
[ User Story][Complete:1/4][sid:2 |Rev:3 ][tid:null | …FAILED to Save [ User Story][Complete:1/4][sid:2 |Rev:3 ][tid:null | System.Exception: WARNING: Unable to find ‘User Story’ in the target project. Most likley this is due to a typo in the .json configuration under WorkItemTypeDefinition! at VstsSyncMigrator.Engine.WorkItemMigrationContext.CreateWorkItem_Shell(Project destProject, WorkItem currentRevisionWorkItem, String destType) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContex\WorkItemMigrationContext.cs :line 477 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 335 [ User Story][Complete:1/4][sid:2 |Rev:3 ][tid:null | System.NullReferenceException: Object reference no t set to an instance of an object. at VstsSyncMigrator.Engine.WorkItemMigrationContext.ProcessWorkItem(WorkItemStoreContext sourceStore, WorkItemStoreContext targetStore, Project destProject, WorkItem sourceWorkItem, Int32 retryLimit, Int32 retrys) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 195 migration.exe Warning: 0 : [EXCEPTION] System.NullReferenceException: Object reference not set to an instance of an object. at VstsSyncMigrator.Engine.WorkItemMigrationContext.ProcessWorkItem(WorkItemStoreContext sourceStore, WorkItemStoreContext targetStore, Project destProject, WorkItem sourceWorkItem, Int32 retryLimit, Int32 retrys) in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 238 at VstsSyncMigrator.Engine.WorkItemMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 124 at VstsSyncMigrator.Engine.MigrationContextBase.Execute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationCo ntext\MigrationContextBase.cs:line 35 MigrationEngine: The Processor WorkItemMigration entered the failed state…stopping run
I have User Story WI in the source project and Product Backlog Item WI in the target project. Am I doing something wrong?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5

Top Related StackOverflow Question
I encountered same issue, and tried older version v8.8.0 and it worked.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days