Sharepoint

I'm having an issue with the SharePoint connector that isn't finishing its updates completely. It's throwing the following error:

PermissionsMissing: Received Unauthorized response for https://xxxx.sharepoint.com/sites/yyyy/zzzz/_api/lists/GetByTitle('Vnculos de uso compartido')/items(1)?$expand=AttachmentFiles. Verify that the correct Graph API and Sharepoint permissions are granted to the app and admin consent is given. If the permissions and consent are correct, wait for several minutes and try again.

I've already granted all the permissions mentioned in the documentation at the application level, but the error persists.

Hey @volivares can you specify if you are using Sharepoint online or sharepoint server connector?

Can you share what stack version, and connector framework version (if self-managed) are you on?

Looking at the URL I'm assuing you are using Sharepoint online. Can you make sure that you followed all steps listed in documentation? If your tenant has been created after Nov 2024 you need to use certificate authentication.

Hi @Jedr_Blaszyk !
I am using SharePoint Online, and the elastic-connectors:8.16.1 connector. I'm attaching images.

I have everything configured according to the documentation, including the certificate. However, the problem I'm having occurs after downloading the documents. It seems the process doesn't finish, which causes the deleted documents in SharePoint not to be updated.

Hey, can you describe your issue in more detail. Specifically what works, how far does the sync get, are only subsequent syncs failing that cause deleted docs in sharepoint not being deleted from index? Please include as many details as possible, otherwise it's hard for us to help.

I have everything configured according to the documentation, including the certificate.

You are saying that you have Salesforce online certificate-based auth and use elastic-connectors:8.16.1 but this was only added in elastic-connectors:8.16.3 according to git history. Can you see certificate field in connector configuration?