FilterWorkItemsThatAlreadyExistInTarget - not replacing the proj name in the target query #2293
NormanGarciaV
started this conversation in
General
Replies: 1 comment 3 replies
-
I only changed the target project name, and the source project name in the query of the config file. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I successfully use v15.1.7 to migrate work-items using an area path in the query. Now traying a new area path... and the error seems to be back...
it seems when starts the FilterExistingWorkItems, the project name does not get replace in the target query. (Full log file attached below).
[12:47:54 INF] [15.1.7] Found target project as NGScrumTemplateTest
[12:47:54 INF] [15.1.7] [FilterWorkItemsThatAlreadyExistInTarget] is enabled. Searching for work items that have already been migrated to the target...
[12:47:54 DBG] [15.1.7] NodeStructureEnricher.GetNewNodeName(Teck\HRIS Global Support - FRO Hourly, Area)
[12:47:54 DBG] [15.1.7] NodeStructureEnricher.GetNewNodeName::Mappers
[12:47:54 INF] [15.1.7] [FilterWorkItemsThatAlreadyExistInTarget] is enabled. Source project Teck is replaced with target project NGScrumTemplateTest on the WIQLQuery which resulted into this target WIQLQueryBit "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = 'Teck' AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') AND [System.AreaPath] UNDER 'NGScrumTemplateTest\HRIS Global Support - FRO Hourly' ORDER BY [System.ChangedDate] desc" .
The target query still has the source project name above.
[12:47:54 DBG] [15.1.7] FilterExistingWorkItems: START |
[12:47:54 DBG] [15.1.7] FilterByTarget: Query Execute...
[12:47:54 DBG] [15.1.7] WorkItemQuery: ===========GetWorkItems=============
[12:47:54 DBG] [15.1.7] WorkItemQuery: TeamProjectCollection: https://dev.azure.com/elkvalleyresources/
[12:47:54 DBG] [15.1.7] WorkItemQuery: Query: SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = 'Teck' AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') AND [System.AreaPath] UNDER 'NGScrumTemplateTest\HRIS Global Support - FRO Hourly' ORDER BY [System.ChangedDate] desc
[12:47:54 DBG] [15.1.7] WorkItemQuery: Parameters: {"TeamProject": "NGScrumTemplateTest", "ReflectedWorkItemIdFieldName": "Custom.ReflectedWorkItemId"}
[12:47:54 DBG] [15.1.7] WorkItemQuery: TeamProject: NGScrumTemplateTest
[12:47:54 DBG] [15.1.7] WorkItemQuery: ReflectedWorkItemIdFieldName: Custom.ReflectedWorkItemId
[12:47:54 DBG] [15.1.7] Query sent
[12:47:54 ERR] [15.1.7] Error running query
Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: The project specified is not found in hierarchy. The error is caused by «'Teck'».
at Microsoft.TeamFoundation.WorkItemTracking.Client.Query.Initialize(WorkItemStore store, String wiql, IDictionary context, Int32[] ids, Int32[] revs, Boolean dayPrecision)
at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Query(String wiql, IDictionary context)
at MigrationTools._EngineV1.Clients.TfsWorkItemQuery.GetWorkItemsFromQuery(TfsWorkItemMigrationClient wiClient) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.AzureDevops.ObjectModel_EngineV1\Clients\TfsWorkItemQuery.cs:line 53
QueryError_migration-3.log
any help would be appreciated.
Thanks
Norman.
Beta Was this translation helpful? Give feedback.
All reactions