Skip to content

SharePointReader Error: sharepoint_site_name or sharepoint_site_id must be provided #16043

Discussion options

You must be logged in to vote

I had to put my site name and folder path on the reader params for it to work:

loader = SharePointReader(
    client_id="",
    client_secret="",
    tenant_id="",
    sharepoint_site_name="SiteDaMari",
    sharepoint_folder_path="Test",
    recursive=True,
)
documents = loader.load_data()
print(loader)

returns:

is_remote=False client_id='' client_secret='' tenant_id='' sharepoint_site_name='SiteDaMari' sharepoint_site_id=None sharepoint_folder_path='Test' sharepoint_folder_id=None file_extractor=None attach_permission_metadata=True drive_name=None drive_id=None

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarianaMendanha
Comment options

Answer selected by MarianaMendanha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant