When attempting to copy a page, the ShareGate migration tool displays the following error message:
The Page Layout 'My Page Layout' could not be found.
- Any error code ending with -112
This error happens because the page layout used by the source page cannot be found at the destination, so the ShareGate migration tool cannot create the destination page using the same page layout.
There are 2 possible solutions to this issue:
- Ensure that the page layout exists at the destination with the same name as the source page layout. To create the page layout at the destination, follow the steps in this Microsoft article. To copy page layouts using the ShareGate migration tool, test the workaround in the Master pages and page layouts article.
- Set a default page layout in the ShareGate migration tool to use when the source page layout cannot be found at the destination. This can be done by modifying the metadata to specify Set mapped value or default.
- When performing your Copy content only migration, select Options from the top-right of the Copy content screen. Select Metadata from the menu, then use the dropdown menu to specify Set mapped value or default for the layout you want to use.