Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teams Connector only finds first 100 teams #3122

Open
richschafer opened this issue Nov 13, 2024 · 1 comment
Open

Teams Connector only finds first 100 teams #3122

richschafer opened this issue Nov 13, 2024 · 1 comment

Comments

@richschafer
Copy link

I am running v0.11.0. I configured the Teams Connector to pull in a single Team from my tenant. The connector started indexing and showed a status of "succeeded" for each attempt, but indexed no documents:

Danswer Teams Connector

Since there is no logging in the Team Connector, I extract the code into a standalone script to see what might be happening. This line of code from _get_all_teams() is the issue: teams = self.graph_client.teams.get().execute_query(). That call returns paged results and only returns the first 100 teams. The team I was interested in wasn't in the first 100, which is why nothing was getting indexed. I had to change that code to the following to get the full list of teams in my tenant: client.teams.paged().get().execute_query(). This also worked, although I'm not sure why since my tenant has more than 500 total teams: client.teams.paged(500).get().execute_query()

@richschafer
Copy link
Author

I pulled the latest code today and now get this error in the Teams connector:
Danswer Teams Connector Error

The index attempt prior to updating was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant