Projekt-Anfragen: Tel: 07022/9319004 info@CodeDocu.de Software Entwicklung 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
»
Error: Server relative urls must start with SPWeb.ServerRelativeUrl
»
Fehlermeldung Sharepoint Online aktivieren der Communitywebsite
»
Offen: Sharepoint upload File Error

.

Jobs, Projekte, Angebote für Freiberufler, Selbstständig an Info@CodeDocu.de