Skip to main content
spoorthyn0001
Participating Frequently
Jul 12, 2021 1:23 PM UTC
Question

Get Document Metadata - Server relative urls must start with SPWeb.ServerRelativeUrl

Hi ,

I am using Get Document Metadata Operation to Retrieves metadata for a document on SharePoint . But i am facing below error.

"SharePoint returned a 400 HTTP error

error-result-guidance

SharePoint returned the following error code: -2147024809, System.ArgumentException Server relative urls must start with SPWeb.ServerRelativeUrl"

PFB Screenshot . Any solution to below issue?

Thank you.

    5 replies

    Participating Frequently
    Jul 12, 2021 3:59 PM UTC
    spoorthyn0001
    Participating Frequently
    Jul 13, 2021 9:39 AM UTC

    yea [mention:6b89e01f11884b02b74bb1e171598bc7:e9ed411860ed4f2ba0265705b8793d05] . Incorrect path was causing issue. Thanks much

    aishwaryae
    New Participant
    Aug 2, 2021 6:11 PM UTC

    Can you please tell me what change in the path yielded the right result?

    raulg0005
    New Participant
    Nov 4, 2021 10:51 AM UTC

    Hello! did you manage to get the metadata of a document in SharePoint at the end?
    I have the same problem as you, and I can't get the integration to work.

    400 HTTP error

    Server relative urls must start with SPWeb.ServerRelativeUrl