infiniflow/ragflow · error · ConnectorValidationError
Nothing to index. Please specify at least one of the followi
Error message
Nothing to index. Please specify at least one of the following: include_shared_drives, include_my_drives, include_files_shared_with_me, shared_folder_urls, or my_drive_emails
What it means
Error "Nothing to index. Please specify at least one of the following: include_shared_drives, include_my_drives, include_files_shared_with_me, shared_folder_urls, or my_drive_emails" thrown in infiniflow/ragflow.
Source
Thrown at common/data_source/google_drive/connector.py:135
include_files_shared_with_me: bool = False,
shared_drive_urls: str | None = None,
my_drive_emails: str | None = None,
shared_folder_urls: str | None = None,
specific_user_emails: str | None = None,
batch_size: int = INDEX_BATCH_SIZE,
time_buffer_seconds: int = GOOGLE_DRIVE_SYNC_TIME_BUFFER_SECONDS,
) -> None:
if not any(
(
include_shared_drives,
include_my_drives,
include_files_shared_with_me,
shared_folder_urls,
my_drive_emails,
shared_drive_urls,
)
):
raise ConnectorValidationError(
"Nothing to index. Please specify at least one of the following: include_shared_drives, include_my_drives, include_files_shared_with_me, shared_folder_urls, or my_drive_emails"
)
specific_requests_made = False
if bool(shared_drive_urls) or bool(my_drive_emails) or bool(shared_folder_urls):
specific_requests_made = True
self.specific_requests_made = specific_requests_made
# NOTE: potentially modified in load_credentials if using service account
self.include_files_shared_with_me = False if specific_requests_made else include_files_shared_with_me
self.include_my_drives = False if specific_requests_made else include_my_drives
self.include_shared_drives = False if specific_requests_made else include_shared_drives
shared_drive_url_list = _extract_str_list_from_comma_str(shared_drive_urls)
self._requested_shared_drive_ids = set(_extract_ids_from_urls(shared_drive_url_list))
self._requested_my_drive_emails = set(_extract_str_list_from_comma_str(my_drive_emails))
View on GitHub (pinned to 554fb1133a)
Solutions
- Enable at least one indexing scope: shared drives, My Drive, files shared with me, folder URLs, or drive emails.
Example fix
settings = {'include_my_drives': True} When it happens
Trigger: Thrown at common/data_source/google_drive/connector.py:135 when the library encounters an invalid state.
Common situations: The Google Drive connector is saved with all indexing scopes disabled; enabling at least one scope prevents this error.
AI-assisted analysis of infiniflow/ragflow@554fb1133a (2026-08-15).
Data as JSON: /api/errors/d0e9f0e29f22e46c.
Report an issue: GitHub.