Share via

Error 500 - listdata.svc web request

C Bennett 1 Reputation point
2020-11-27T17:32:44.62+00:00

Trying to create a document set using the listdata.svc in SharePoint online using REST service, following the pointers here
https://powerusers.microsoft.com/t5/Building-Flows/Need-help-making-Sharepoint-Document-Set-with-Power-Automate/m-p/452906#M53992

The server gives 500 internal error every time. Is it a way to find a more specific error in some logs anywhere?

I have recreated the request on a sharepoint on-prem farm, and it works without issues here.

The parameters (library URL, name, content type ID) are correct.

Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,346 Reputation points
    2020-11-30T01:50:04.59+00:00

    Hello @C Bennett ,

    ListData.svc is Lists Data Service. So, when you executing the "HTTP CreateDocumentSet" steps, you need to make sure that the entered uri is correct :

    • _vti_bin/listdata.svc/[yourDocumentLibraryName]

    Note [yourDocumentLibraryName]:

    1.When the display name of the Document Library is different from the internal name. Please enter the internal name of the Document Library.
    43561-1.png

    2.When the display name of the Document Library contains spaces or other strange characters we need to set a varDocLibNameClean variable:

    @{replace(replace(variables('varDocLibName'),' ',''),'_','')}  
    

    Please refer to the following article to get more information:

    Thanks,
    Echo Du

    ================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.