WebPartPagesWebService.GetWebPartPage method throwing server was unable to process request

Anders Nielsen 31 Reputation points
2024-04-24T10:52:51.15+00:00

We're migrating from SharePoint 2013 to SharePoint Online, but we encountered an error with the WebPartPagesWebService.GetWebPartPage method on the following SOAP endpoint:

WebPartPagesWebService.GetWebPartPage(String documentName, SPWebServiceBehavior behavior)

To verify that the issue is related to SharePoint and on the server-side, we tried calling the endpoint through PowerShell and managed to get the same error saying: "Unable to process request". We've been unable to reproduce this error in other SharePoint environments and also tried updating the farm to the latest CU before SharePoint 2013 was deprecated but the error still exists.

We've analyzed the ULS log related to this request, but there's no further details to be found there.

Can someone help us to understand the reason behind the method being unable to process the request?

Below you can find the script we run to reproduce the error on our SharePoint farm:

# Variables
$WebSvcUrl = "" # Example: https://domain.dk/_vti_bin/WebPartPages.asmx
$PageRelativeUrl = "" # Example: sider/default.aspx
 
# Create webservice proxy
$webserviceProxy = New-WebServiceProxy -Uri $WebSvcUrl -UseDefaultCredential
 
# Get namespace and spwebservicebehavior
$autoGeneratedNamespace = $webserviceProxy.GetType().namespace
$SPWebServiceBehavior = New-Object ($autoGeneratedNamespace + ".SPwebServiceBehavior")
 
# Call endpoint
$webserviceProxy.getWebPartPage($pageRelativeUrl, $SPWebServiceBehavior)

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,227 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,575 questions
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 21,611 Reputation points Microsoft Vendor
    2024-04-25T05:46:17.3233333+00:00

    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

    https://sharegate.com/blog/migrate-sharepoint-2013-to-sharepoint-online#h-how-to-migrate-to-sharepoint-online-using-the-microsoft-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.


0 additional answers

Sort by: Most helpful