Skip to content

[Bug]: (FixHtmlAttachmentLinks = true) is not working. #1623

@Raviprakashbd

Description

@Raviprakashbd

Version

  • I confirm that I am using the latest version

Source Version

Azure DevOps Server 2019

Target Version

Azure DevOps Server 2019

Relevant configuration

Processors": [
    {
      "$type": "WorkItemMigrationConfig",
      "Enabled": true,
      "ReplayRevisions": true,
      "PrefixProjectToNodes": false,
      "UpdateCreatedDate": true,
      "UpdateCreatedBy": true,
      //"WIQLQueryBit": "AND [System.WorkItemType] in ('Code Review Request','Code Review Response')",
      "WIQLQueryBit": "AND [System.ID] in (123)",
      "WIQLOrderBit": "[System.ChangedDate] desc",
      "LinkMigration": true,
      "AttachmentMigration": true,
      "AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
      "FixHtmlAttachmentLinks": true,
      "SkipToFinalRevisedWorkItemType": true,
      "WorkItemCreateRetryLimit": 5,
      "FilterWorkItemsThatAlreadyExistInTarget": true,
      "PauseAfterEachWorkItem": false,
      "AttachmentMaxSize": 480000000,
      "AttachRevisionHistory": false,
      "LinkMigrationSaveEachAsAdded": true,
      "GenerateMigrationComment": true,
      "WorkItemIDs": null,
      "MaxRevisions": 0,
      "NodeStructureEnricherEnabled": true,
      "UseCommonNodeStructureEnricherConfig": false,
}
]

Relevant log output

[00:14:42 ERR] EmbededImagesRepairEnricher: Unable to fix HTML field attachments for work item 0 from https://dev.azure.com/Org1/ to https://dev.azure.com/Org2/
Microsoft.TeamFoundation.WorkItemTracking.WebApi.RuleValidationException: TF401320: Rule Error for field Found In. Error code: Required, InvalidEmpty. 3 additional errors occurred during validation of the work item. Please correct all errors and try again.
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__53.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__51.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__47`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<SendAsync>d__28`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MigrationTools.Enrichers.TfsEmbededImagesEnricher.UploadImageToTarget(WorkItem wi, String filePath) in C:\Users\tools\source\repos\azure-devops-migration-tools-master\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 208
   at MigrationTools.Enrichers.TfsEmbededImagesEnricher.UploadedAndRetrieveAttachmentLinkUrl(String matchedSourceUri, String sourceFieldName, WorkItemData targetWorkItem, String sourcePersonalAccessToken) in C:\Users\tools\source\repos\azure-devops-migration-tools-master\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 163
   at MigrationTools.Enrichers.TfsEmbededImagesEnricher.FixEmbededImages(WorkItemData wi, String oldTfsurl, String newTfsurl, String sourcePersonalAccessToken) in C:\Users\tools\source\repos\azure-devops-migration-tools-master\src\MigrationTools.Clients.AzureDevops.ObjectModel\Enrichers\TfsEmbededImagesEnricher.cs:line 98

What happened?

After migration of work item from Org1 to Org2, field and discussion box attchments/images are redirecting to the Org1.
Also I have go through some discussion like - #694
and #1344 but did not get any success.
any idea how I can resolved this.

Note- I am using latest version of tool.

Debug in Visual Studio

  • Visual Studio Debug

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