Skip to content

ValidationException: Empty identifier is not allowed. The error is caused by «[]». #1493

@getswift-focusedlabs

Description

@getswift-focusedlabs

Describe your issue:

I'm attempting to migrate data—just work items at the moment but later pipelines and everything else—from a project in one ADO org to one in a different ADO org. I have set up ReflectedWorkItemId as a field on all issue types for both the target and source project.

When running, WorkItemQuery seems to be trying to SELECT []. This seems similar to part of #1278 but unlike in that issue, I have set up ReflectedWorkItemId as a field on all issue types for both the target and source project.

Describe any Exceptions:

[18:27:23 DBG] WorkItemQuery: ===========GetWorkItems=============
[18:27:23 DBG] WorkItemQuery: TeamProjectCollection: https://dev.azure.com/OrgRedacted/
[18:27:23 DBG] WorkItemQuery: Query: SELECT [System.Id], [] FROM WorkItems WHERE [System.TeamProject] = 'Test' AND  [Microsoft.VSTS.Common.ClosedDate] = '' AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request') ORDER BY [System.ChangedDate] desc
[18:27:23 DBG] WorkItemQuery: Parameters: {"TeamProject": "Test"}
[18:27:23 DBG] WorkItemQuery: TeamProject: Test
[18:27:23 DBG] Query sent
[18:27:23 ERR]  Error running query
Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: Empty identifier is not allowed. The error is caused by «[]».
   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\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\_EngineV1\Clients\TfsWorkItemQuery.cs:line 51
[18:27:23 INF] DONE in 00:00:28.3031543
[18:27:23 FTL] Error while running WorkItemMigration
Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: Empty identifier is not allowed. The error is caused by «[]».
   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\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\_EngineV1\Clients\TfsWorkItemQuery.cs:line 84
   at MigrationTools._EngineV1.Clients.TfsWorkItemQuery.GetInternalWorkItems() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\_EngineV1\Clients\TfsWorkItemQuery.cs:line 41
   at MigrationTools._EngineV1.Clients.TfsWorkItemQuery.GetWorkItems() in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\_EngineV1\Clients\TfsWorkItemQuery.cs:line 26
   at MigrationTools._EngineV1.Clients.TfsWorkItemMigrationClient.FilterExistingWorkItems(List`1 sourceWorkItems, TfsWiqlDefinition wiqlDefinition, TfsWorkItemMigrationClient sourceWorkItemMigrationClient) in D:\a\1\s\src\MigrationTools.Clients.AzureDevops.ObjectModel\_EngineV1\Clients\TfsWorkItemMigrationClient.cs:line 48
   at VstsSyncMigrator.Engine.WorkItemMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 184
   at MigrationTools._EngineV1.Processors.MigrationProcessorBase.Execute() in D:\a\1\s\src\MigrationTools\_EngineV1\Processors\MigrationProcessorBase.cs:line 47
[18:27:23 ERR] WorkItemMigration The Processor MigrationEngine entered the failed state...stopping run

Source Details

  • Source Version: Azure DevOps Services
  • Source Language: English

Target Details

  • Target Version: Azure DevOps Services
  • Target Language: English

I have completed the following:

  • Enable Debug in the Logfile - You can set "LogLevel": "Debug" in the configuration file which will output more information to the log.
  • Please specify the Source and Target environments above - Which versions are you migrating from/to Azure DevOps Server 2019, Azure DevOps Services, TFS 20xx.
  • Attach the full Logfile from your last run - You can obtuse any of the data that you want, but it's really helpful to have the full log to see what lead up to the issue. Do not copy and paste the entire log in here! Attach the file to the issue!
  • Attach the full Configuration file - You can obtuse any of the data that you want, but it's really helpful to have the full config. Do not copy and paste the entire log in here! Attach the file to the issue!

Many issues are due to edge cases and will need debugging in Visual Studio; we cant do that for you on your environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions