-
Notifications
You must be signed in to change notification settings - Fork 735
[Bug]: SharePointReader fails to load file directory #901
Comments
@jamiesun could you check if the permissions are set as mentioned here - https://llamahub.ai/l/microsoft_sharepoint?from=loaders |
Same issue. Permissions are set up correctly in Azure/SharePoint |
@jamiesun or @brandon-vidoori could you confirm whether you were trying to access only folders present in the |
Yes, I am only trying to access folders/documents present in the documents folder. It seems to fail on the graph search for SharePoint site specifically the query for the site name returns nothing.
|
I am also getting the same error: An error occurred while accessing SharePoint: {'code': 'itemNotFound', 'message': 'The resource could not be found.'} for doc in documents: |
I changed a site without changing any code, and the code executed successfully; I changed other sites again, and it worked. I feel a little strange, this failed site name is GPT, I don't know if it has something to do with this name, I used a mixture of English and Chinese sentences when I created the site again, the system automatically generates GPT as the site name. The sites that I succeeded in executing were all single English word site names without exception. I'm not sure if it's a problem with sharepoint itself |
The site I have been testing with is like “Data Science” so that might be causing the issue. Will try with a site named “Data” to see if that succeeds. The documentation for the Graph REST API search sites is not clear on expected behavior for a partial match and would seem to suggest a search for “Data” would return sites named “Data Science” and “Data Management”. GetSite seems more appropriate for requiring exact match so the inflexibility we are noticing is bizarre to say the least. |
I too faced this issue. I am reading through the msft documentations for the fixes. The current loader is only application based but we also need user based loader, which is well I am working on it. Will post the updates here post fix. |
Can we store indexes in the SharePoint document library itself for persistence? That was the data will be secure within the same domain. |
SharePointReader returned the same with a single word English named site like "Data" from my previous example. I know have set up permissions correctly because I can debug SharePointReader locally, set breakpoint and step through code until the access_token is generated, then use that same access_token in postman with |
@brandon-vidoori Thanks for pointing out the exact problem. Will look to fix this up. |
I eventually got it working. This seems like less of a bug and more so the documentation on config variables could be more clear. Provided permissions are set up correctly consider the following:
|
Bug Description
Version
main
Steps to Reproduce
sharepoint config
Relevant Logs/Tracbacks
No response
The text was updated successfully, but these errors were encountered: