Skip to main content
All CollectionsMigrateHelp me solve thisMigration Errors
Cannot perform this operation because the item you try to replace is currently checked out
Cannot perform this operation because the item you try to replace is currently checked out
Updated this week

Symptoms

When attempting to copy or edit a document, ShareGate Migrate displays the following message:

Cannot perform this operation because the item you try to replace is currently checked out.

Error code

  • IN-020-009

Details

When copying or editing a document in a list configured to require a checkout to edit, ShareGate Migrate needs to check out the document before editing or copying it. If a file is checked out during a migration tool operation, ShareGate Migrate cannot check the document back in, and you will see this error.

The most common cause for a file being checked out during a migration tool operation is a workflow that runs automatically when a new document is added or when a document is updated. The workflow can check out the file, and this would cause the error.

Solution

There are three possible solutions to this issue:

  1. Turn off your workflows and event handlers that cause documents to be checked out while using ShareGate's migration tool.

  2. If no workflow is set to run automatically, discard the checkout on the target document and try to rerun the operation. It might have happened because someone checked out the document while you ran the operation in ShareGate's migration tool.

  3. Check-in all checked-out documents by following this path in the New Report feature in Reporting:

    1. Click Reporting

    2. Select New Report

    3. Select Object Type Document

    4. Select Checked Out Status Is Checked Out

    5. Continue either with or without saving

    6. Select your target

    7. Click Run

    8. Click Edit selected result(s)

    9. Select Transformation Check In As [required version]. Note: You can also Discard Checked Out to achieve the same result, but this transformation is not recommended as it will delete any changes a user made to the checked-out document.

    10. Click Apply

    11. Click Continue

    12. All your selected documents will now be checked in.

Did this answer your question?