azure-devops-migration-tools: ValidationException: TF237124: Work Item is not ready to save

The errors are getting too obscure for me to debug simply by reading and applying common sense.

I have checked that both source and destination accounts have a project using TFVC and custom CMMI. I have checked that the work items in the custom CMMIs are identical with no missing fields. I have checked the area paths are similar (given differences in project name). I have checked the default and custom teams are present and that the custom team has project default area as default area including sub-areas (same as source). I have deleted the destination project and started from scratch, twice.

These lines seem pertinent: WorkItemMigrationContext: 1 - Invalid: 801-Task-System.AreaPath WorkItemMigrationContext: 1 - Invalid: 801-Task-System.IterationPath WorkItemMigrationContext: …FAILED to Save

There is a date used that doesn’t exist: Revised Date: 01/01/9999 00:00:00

Error: WorkItemMigrationContext: Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: TF237124: Work Item is not ready to save at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.Save(SaveFlags saveFlags) at VstsSyncMigrator.Engine.WorkItemMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 125

Excerpt from output:

λ vstssyncmigrator.exe execute -c vstsbulkeditor.json [Info]: vstssyncmigrator [Info]: Running version detected as 7.5.37.0 [Info]: Telemitery Enabled: True [Info]: SessionID: 2e1c3173-1be5-40d1-b82b-77cdeba7cb8e

`WorkItemMigrationContext: 1 - Migrating: 801-Task WorkItemMigrationContext: … BuildingWorkItemMigrationContext: Dependancy: TeamService - NewWorkItem - 18/06/2018 15:16:54 - 00:00:00 - True WorkItemMigrationContext: FieldMapOnNewWorkItem: 18/06/2018 15:16:54 - 00:00:00 Runnin Field Map: MultiValueConditionalMap [SKIPPED] Not all source and target fields exist Runnin Field Map: FieldBlankMap Runnin Field Map: FieldValueMap [UPDATE] field set to default value 801:System.State to 0:System.State Runnin Field Map: FieldToFieldMap Runnin Field Map: FieldToTagFieldMap [UPDATE] field tagged 801:System.State to 0:Tag with foramt of ScrumState:{0} Runnin Field Map: FieldMergeMap [UPDATE] field merged 801:System.Description+Microsoft.VSTS.Common.AcceptanceCriteria to 0:System.Description Runnin Field Map: RegexFieldMap Runnin Field Map: FieldValuetoTagMap Runnin Field Map: TreeToTagFieldMap WorkItemMigrationContext: 1 - Invalid: 801-Task-System.AreaPath WorkItemMigrationContext: 1 - Invalid: 801-Task-System.IterationPath WorkItemMigrationContext: …FAILED to Save WorkItemMigrationContext: agileIoNswAgile.ReflectedWorkItemId | https://tindall.visualstudio.com/NetScribe/_workitems/edit/801 WorkItemMigrationContext: Microsoft.VSTS.CMMI.RequiresTest | No WorkItemMigrationContext: Microsoft.VSTS.CMMI.RequiresReview | No WorkItemMigrationContext: Microsoft.VSTS.CMMI.TaskType | Planned WorkItemMigrationContext: Microsoft.VSTS.CMMI.Blocked | No WorkItemMigrationContext: Microsoft.VSTS.Common.Discipline | WorkItemMigrationContext: Microsoft.VSTS.Common.Triage | Pending WorkItemMigrationContext: Microsoft.VSTS.Common.AcceptanceCriteria | WorkItemMigrationContext: Microsoft.VSTS.Scheduling.FinishDate | WorkItemMigrationContext: Microsoft.VSTS.Scheduling.StartDate | WorkItemMigrationContext: Microsoft.VSTS.Build.IntegrationBuild | WorkItemMigrationContext: Microsoft.VSTS.Common.StackRank | 1000000000 WorkItemMigrationContext: Microsoft.VSTS.Common.Priority | 2 WorkItemMigrationContext: Microsoft.VSTS.Common.ClosedBy | WorkItemMigrationContext: Microsoft.VSTS.Common.ClosedDate | WorkItemMigrationContext: Microsoft.VSTS.Common.ResolvedReason | Investigate WorkItemMigrationContext: Microsoft.VSTS.Common.ResolvedBy | Ayman Moukhtar WorkItemMigrationContext: Microsoft.VSTS.Common.ResolvedDate | WorkItemMigrationContext: Microsoft.VSTS.Common.ActivatedBy | Ayman Moukhtar WorkItemMigrationContext: Microsoft.VSTS.Common.ActivatedDate | WorkItemMigrationContext: Microsoft.VSTS.Common.StateChangeDate | WorkItemMigrationContext: Microsoft.VSTS.Scheduling.CompletedWork | WorkItemMigrationContext: Microsoft.VSTS.Scheduling.OriginalEstimate | 1 WorkItemMigrationContext: Microsoft.VSTS.Scheduling.RemainingWork | 1 WorkItemMigrationContext: System.BoardLane | WorkItemMigrationContext: System.BoardColumnDone | WorkItemMigrationContext: System.BoardColumn | WorkItemMigrationContext: System.Tags | ;ScrumState:Resolved WorkItemMigrationContext: System.RelatedLinkCount | 0 WorkItemMigrationContext: System.History |

Comments from previous work item:

 

Fields from previous Work Item:

ReflectedWorkItemId:
Requires Test: No
Requires Review: No
Task Type: Planned
Blocked: No
Discipline:
Triage: Pending
Acceptance Criteria:
Finish Date: null
Start Date: null
Completed Work: null
Original Estimate: 1
Resolved Reason: Investigate
Resolved By: Ayman Moukhtar
Resolved Date: 24/02/2017 17:16:44
Activated By: Ayman Moukhtar
Activated Date: 24/02/2017 17:16:39
State Change Date: 24/02/2017 17:16:44
Stack Rank: 1000000000
Priority: 2
Closed By:
Closed Date: null
Remaining Work: 1
Integration Build:
Board Lane:
Board Column Done: null
Board Column:
Tags:
Related Link Count: 1
History:
Description:
Created By: karim mostafa
Created Date: 27/12/2016 17:34:49
Work Item Type: Task
Assigned To: Ayman Moukhtar
Reason: Complete and Requires Review/Test
Changed By: Ayman Moukhtar
Rev: 10
Watermark: 6613
Authorized Date: 24/02/2017 17:16:44
State: Resolved
Title: Ensure the system must capture the UTC date and time when an auditable event occurs
Authorized As: Unknown user
Area ID: 81779
ID: 801
Changed Date: 24/02/2017 17:16:44
Revised Date: 01/01/9999 00:00:00
Area Path: NetScribe
Node Name: NetScribe
Attached File Count: 0
Hyperlink Count: 0
Team Project: NetScribe
External Link Count: 0
Iteration ID: 81779
Iteration Path: NetScribe

 

Migrated by VSTS/TFS Sync Migration Tool open source.

WorkItemMigrationContext: System.Description |

Acceptance Criteria

##DONE## WorkItemMigrationContext: System.CreatedBy | karim mostafa WorkItemMigrationContext: System.CreatedDate | 27/12/2016 17:34:49 WorkItemMigrationContext: System.WorkItemType | Task WorkItemMigrationContext: System.AssignedTo | Ayman Moukhtar WorkItemMigrationContext: System.Reason | Complete and Requires Review/Test WorkItemMigrationContext: System.ChangedBy | Ayman Moukhtar WorkItemMigrationContext: System.Rev | WorkItemMigrationContext: System.Watermark | WorkItemMigrationContext: System.AuthorizedDate | WorkItemMigrationContext: System.State | New WorkItemMigrationContext: System.Title | Ensure the system must capture the UTC date and time when an auditable event occurs WorkItemMigrationContext: System.AuthorizedAs | WorkItemMigrationContext: System.AreaId | 288 WorkItemMigrationContext: System.Id | 0 WorkItemMigrationContext: System.ChangedDate | 24/02/2017 17:16:44 WorkItemMigrationContext: System.RevisedDate | WorkItemMigrationContext: System.AreaPath | NetScribeWeb\NetScribe WorkItemMigrationContext: System.NodeName | NetScribeWeb WorkItemMigrationContext: System.AttachedFileCount | 0 WorkItemMigrationContext: System.HyperLinkCount | 0 WorkItemMigrationContext: System.TeamProject | NetScribeWeb WorkItemMigrationContext: System.ExternalLinkCount | 0 WorkItemMigrationContext: System.IterationId | 288 WorkItemMigrationContext: System.IterationPath | NetScribeWeb\NetScribe WorkItemMigrationContext: Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: TF237124: Work Item is not ready to save at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.Save(SaveFlags saveFlags) at VstsSyncMigrator.Engine.WorkItemMigrationContext.InternalExecute() in D:\a\1\s\src\VstsSyncMigrator.Core\Execution\MigrationContext\WorkItemMigrationContext.cs:line 125 WorkItemMigrationContext: Average time of 0:322 seconds per work item and 0 hours 0 minutes 0:000 seconds estimated to completion WorkItemMigrationContext: DONE in 0 hours 4 minutes 39:733 seconds - 858 Items, 0 Imported, 0 Skipped, 858 Failures vstssyncmigrator.exe Information: 0 : Migration Context Complete WorkItemMigrationContext [Info]: Run complete... [Info]: -------------------------------END------------------------------ [Info]: Duration: 00:04:40.2184607 [Info]: End Time: 18/06/2018 15:12:14`

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

this is the one that does areas and iteration paths “VstsSyncMigrator.Engine.Configuration.Processing.NodeStructuresMigrationConfig”,

Hello there, I am seeing a similar issue. I am migrating a project from TFS to VSTS. The source and destination have different projects so when I use the NodeStructureMigrationConfig processor, I set the PrefixProjectToNodes as false.

Then when I move on to migrating the workitems using the WorkItemRevisionReplayMigrationConfig processor I get the above mentioned error on some of my work items. But if I use WorkItemMigrationConfig processor I don’t get any errors with the Area / Iteration paths