Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

Error: Server relative urls must start with SPWeb.ServerRelativeUrl

 

making HttpClient request in queryable [400] Bad Request  System.ArgumentException

 

sp.web.getFolderByServerRelativeUrl("/Ergebnisdokumente").files.add(file.namefiletrue).then(x => {

                    console.log("Progress ...");

                    UploadDocument.Me.setState({ waitHidden: true });

                });

 

 

 

Error: Error making HttpClient request in queryable [400] Bad Request ::> {"odata.error":{"code":"-2147024809, System.ArgumentException","message":{"lang":"de-DE","value":"Server relative urls must start with SPWeb.ServerRelativeUrl"}}}

 

Lösung:

Man muss das führende / Frontslash im Pfad entfernen also von /RelativeFolder zu RelativFolder

 

sp.web.getFolderByServerRelativeUrl("Ergebnisdokumente").files.add(file.namefiletrue).then(x => {

                    console.log("Progress ...");

                    UploadDocument.Me.setState({ waitHidden: true });

                });

 

 

Mobile
»
SharePoint setting: Open in the Office app
»
Issues in SharePoint: Service Status
»
Where are the Status Messages from SharePoint Online
»
Error: Server relative urls must start with SPWeb.ServerRelativeUrl

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de