Broken links in migrated documents within SharePoint library

Pradeep Raman 1 Reputation point
2024-01-02T08:05:12.22+00:00

Hello, We are about to migrate documents from one SPO tenant to another, however the source site has many documents with embedded links pointing to another document within another library. For example a document might contain an embedded like (https://xyz.com/sites/test/Shared%20Documents/test.docx?d=we5bd2c83f34440fb9992223c8402aec4). Now once migrated, the destination sites document id would change.

For the first part of the URL, we could set up a local redirect, however the ID will be different and will end up as a broken link. We have numerous such cases and manual fix might not be a solution.

Do we have any solutions for this problem?

Thanks

Pradeep

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,846 Reputation points Microsoft External Staff
    2024-01-03T09:24:38.76+00:00

    Document ID is automatically generated by system in each tenant when the document is uploaded. It is unique and cannot be changed by users.

    So, I suggest you use embedded link, such as https://xyz.com/sites/test/Shared%20Documents/test.docx in the document.

    To bulk edit embedded link in the document, you could try to use VBA.

    Please start a new discussion with Office Development so that you can get dedicated support on this issue.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.