Skip to content

[Bug]: TfsWorkItemMigrationProcessor - "Could not save migrated work item" - TF26194 #3240

Open

Description

@JohannesDrexler

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Service

Target Version

Azure DevOps Service

Relevant configuration

"Processors": [
            {
                "ProcessorType": "TfsWorkItemMigrationProcessor",
                "Enabled": true,
                "WIQLQuery": "SELECT [System.Id] FROM WorkItems WHERE [System.TeamProject] = @TeamProject AND [System.WorkItemType] NOT IN ('Test Suite', 'Test Plan','Shared Steps','Shared Parameter','Feedback Request', 'Test Case') ORDER BY [System.ChangedDate] desc",
                "FixHtmlAttachmentLinks": true,
                "WorkItemCreateRetryLimit": 5,
                "FilterWorkItemsThatAlreadyExistInTarget": true,
                "GenerateMigrationComment": false,
                "SourceName": "Source",
                "TargetName": "Target"
            }
        ]

Relevant log output

[08:46:45 ERR] [16.3.4-Preview.37] Could not save migrated work item 5952, an exception occurred.
System.AggregateException: Mindestens ein Fehler ist aufgetreten. ---> MigrationTools.Processors.TfsWorkItemMigrationProcessor+StateStampedDateFixUpException: Unable to apply fix-up save for state-stamped dates on target #24810 ---> Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: TF26194: Der Wert für das Feld "Activated Date" kann nicht geändert werden.
   bei Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.SetFieldValueExternal(FieldDefinition fd, Object value)
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.SetStateStampedDatesFromSource(WorkItem source, WorkItem target, String when) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 1400.
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.EnsureStateStampedDatesAfterSave(WorkItemData sourceRevision, WorkItemData targetWorkItem, List`1 revisionsToMigrate, RevisionItem revision, String savedChangedBy) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 1343.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.<ProcessWorkItemAsync>d__45.MoveNext() in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 919.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   bei System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   bei System.Threading.Tasks.Task.Wait()
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.InternalExecute() in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 210.
---> (Interne Ausnahme #0) MigrationTools.Processors.TfsWorkItemMigrationProcessor+StateStampedDateFixUpException: Unable to apply fix-up save for state-stamped dates on target #24810 ---> Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: TF26194: Der Wert für das Feld "Activated Date" kann nicht geändert werden.
   bei Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.SetFieldValueExternal(FieldDefinition fd, Object value)
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.SetStateStampedDatesFromSource(WorkItem source, WorkItem target, String when) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 1400.
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.EnsureStateStampedDatesAfterSave(WorkItemData sourceRevision, WorkItemData targetWorkItem, List`1 revisionsToMigrate, RevisionItem revision, String savedChangedBy) in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 1343.
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei MigrationTools.Processors.TfsWorkItemMigrationProcessor.<ProcessWorkItemAsync>d__45.MoveNext() in D:\a\azure-devops-migration-tools\azure-devops-migration-tools\src\MigrationTools.Clients.TfsObjectModel\Processors\TfsWorkItemMigrationProcessor.cs:Zeile 919.<---

What happened?

I am trying to migrate one project from one organization to the other but while writing the workitem revisions i get the error seen in the log and wrting the workitem stops. i have the exact same error for both "activated date" and "closed date".

Debug in Visual Studio

  • Visual Studio Debug

Activity

  1. changed the title [-][Bug]: "Could not save migrated work item" - TF26194[/-] [+][Bug]: TfsWorkItemMigrationProcessor - "Could not save migrated work item" - TF26194[/+] on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions