Hi @Anders Nielsen ,
What tool did you use for migration? Is it Microsoft's official SPMT?
Did the error occur during the migration process? Because SharePoint 2013 is different from SharePoint Online, not all web parts are supported in SharePoint online. And this method is part of the legacy SharePoint SOAP web services and is not supported in SharePoint online.
There are some articles about migration for your references:
https://learn.microsoft.com/en-us/sharepointmigration/introducing-the-sharepoint-migration-tool
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.