I'm facing a problem: I need to transfer (copy) a couple of pages from Sharepoint 2019 to Sharepoint Online. I tried doing this with the help of Sharegate. It manage to copy my pages to SPO, but when I try to open these pages in SPO, I get an "Unexpected error".
I might have a clue why this happens. There is some custom code on the pages I copy, and I believe SPO can't open these pages properly because of this.
I've also tried doing this with the help of PnP, using the Export-PnpClientSidePage - but it seems this is not supported in Sharepoint 2019?
My question is - is it possible to maybe strip custom code with the help of Sharegate? If the Export-PnpClientSidePage would work I could strip code in the XML... any other ideas or thoughts?