Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Error: Server relative urls must start with SPWeb.ServerRelativeUrl

21.11.2019 (👁171)

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 });

                });