https://discord.gg/botpress logo
Sharepoint integration doesn't work
# 🤝help
g
Hey, I have been trying to connect Botpress KB with Sharepoint documents to sync them and use them in a RAG chatbot, via the plus/sharepoint integration. All the instructions have been followed and checked multiple times, but when I try to Save Configuration in the integration, it returns Registration Failed: Error initializing list ID. The error is most likely tied to the last two fields in the integration - Document library names and Folder KB map. I was thinking that the problem is either in specifying the correct Document library name or in the Sharepoint settings, because the person who owns the Sharepoint saved the KB files in Shared Documents folder. Might there be a problem with this specific folder type? Thanks for any tips or solutions, I have not been able to find any documentation or troubleshooting tips for this.
b
can you show me where & when that registration failed error occurs?
g
Thanks for your answer, what exactly would help to show? Here are two screenshots of the integration and the error itself, plus how the two fields are filled in. Also, I am not sure about the correct input format, but I have tried I think all possible permutations by now. But if there is a specific best format let me know. The error itself occurs when I try to save the configuration, works for a while then finishes and displays this error. Thank you https://cdn.discordapp.com/attachments/1410236707441479680/1410351240239386717/sharepoint_error1.png?ex=68b0b372&is=68af61f2&hm=f7189e5541648d6ab501558d1fd5f4b05ead75178231dae026ca8ebac4817a69& https://cdn.discordapp.com/attachments/1410236707441479680/1410351240591704187/sharepoint_error2.png?ex=68b0b372&is=68af61f2&hm=e0c29c0baf596d0749651eb916049718f4994c15762511a41eb16488f03f4356&
Hey @bumpy-butcher-41910 and anyone else, an update: the Shared Documents really was a folder in the general Documents Library that probably could not be synced, and we created a new Library with the owner and placed a test PDF in it. Now there is no error when saving the configuration, so that's ok, but no files get synced. Any ideas what I can do to solve it?
m
Hi @gorgeous-animal-82790 , the issue comes from SharePoint’s internal library name vs. the displayed “Shared Documents.” In most cases, the correct value is "Documents". Fix the Document Library Name to match the actual internal name, structure your Folder KB Map properly (e.g., "Documents/Policies"), and ensure the Azure AD app has Sites.Read.All + Files.Read.All permissions. Then re-authenticate in Botpress and it will connect.
g
Hey @User, thanks for your advice. In the last update, I wrote how we created a new document library specifically for syncing, which resolved the error; however, no files are being synced anyway. The app has all the permissions specified in the instructions. Could you please screenshot how your SharePoint integration in Botpress looks, mainly the KB map field? P.S.: Also tried putting "Documents" in there, still nothing syncs.