Annika Maybin
07/07/2025, 3:20 PMkapa.ai
07/07/2025, 3:20 PMpython_calamine.CalamineError: Cannot detect file format indicates that Airbyte is unable to recognize the file as a valid Excel file during schema inference. This typically happens if the file is not actually an Excel file (e.g., it is a different format with an .xls or .xlsx extension), or if the file is corrupted or otherwise unreadable by the parser. Based on the log, the file in question appears to be a .docx (Word document), not an Excel file, despite being processed as an Excel file by Airbyte. The URL contains file=Gainsight%20%2B%20Healthscore%20Meeting%20Agenda.docx, which suggests the file is a Word document, not an Excel spreadsheet. This would explain why the Excel parser cannot detect the file format and fails schema inference. What you should do: - Double-check the file type in SharePoint and ensure you are selecting an actual Excel file (.xls or .xlsx), not a Word document or any other file type. - If you are certain the file is an Excel file, try downloading it and opening it locally to confirm it is not corrupted. - If the file is valid and the issue persists, consider providing a sample file and reaching out to Airbyte support, as there have been similar issues reported with schema inference for Excel files from SFTP and other sources, sometimes related to file format or content issues [[Unable to fetch schema from Excel file present in SFTP server](https://discuss.airbyte.io/t/1462)]. If you need to enforce a schema or have more control over the output, you can provide a user schema in JSON format when using supported file types (Avro, Jsonl, CSV, or Parquet), but this does not apply to the experimental Document file type format [[Microsoft SharePoint User Schema](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#user-schema)]. Summary: The error is most likely because the file being processed is not a valid Excel file. Please verify the file type and try again. If the problem continues with a valid Excel file, it may be a bug or a file-specific issue, and you should contact Airbyte support with a sample file.kapa.ai
07/07/2025, 3:20 PMkapa.ai
07/07/2025, 3:21 PMpython_calamine.CalamineError: Cannot detect file format indicates that Airbyte is unable to recognize the file as a valid Excel file during schema inference. According to the log, the file being processed is actually a .docx (Word document), not an Excel file, even though the sync is configured for an Excel file. The file URL contains file=Gainsight%20%2B%20Healthscore%20Meeting%20Agenda.docx, which confirms this. What you should do: - Verify the file type in SharePoint: Make sure you are selecting an actual Excel file (.xls or .xlsx) and not a Word document or another file type. - Check file validity: If you are certain the file is an Excel file, download it and open it locally to ensure it is not corrupted. - Schema inference limitations: Airbyte infers the schema from the file contents. If the file is not a valid Excel file, schema inference will fail, as seen in your logs. This is a known issue when the file format does not match the expected type [[source](https://docs.airbyte.com/integrations/sources/file#file-csv-json-excel-feather-parquet)]. If you continue to experience issues with valid Excel files, it may be related to a known problem with schema inference for Excel files from remote sources (such as SFTP or SharePoint), as discussed in community forums [[source](https://discuss.airbyte.io/t/1462)]. Summary: The error is occurring because the file being processed is not a valid Excel file. Please verify the file type in SharePoint and ensure you are syncing the correct file format. If the issue persists with a valid Excel file, consider reaching out to Airbyte support with a sample file for further assistance.Annika Maybin
07/07/2025, 3:35 PMkapa.ai
07/07/2025, 3:35 PMkapa.ai
07/07/2025, 3:36 PMhttps://<tenant_name>.sharepoint.com/sites/<site> If you do not provide a site URL, Airbyte will default to accessing files in the main site. To have the connector iterate through all sub-sites, you can provide the site URL as: https://<tenant_name>.sharepoint.com/sites/ Make sure your configuration matches the site you want to sync from. Double-check the site_url field in your Airbyte source configuration and ensure it points to the correct SharePoint site. If you want to target a specific sub-site, specify its full URL as shown above. If you leave it blank or misconfigure it, Airbyte will not look in the intended directory or site [[Microsoft SharePoint Setup Guide](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#copy-raw-files-configuration)]. Summary: Update your Airbyte source configuration to include the correct site_url for your target SharePoint site. This should resolve the issue of Airbyte looking in the wrong directory.Annika Maybin
07/07/2025, 3:38 PMkapa.ai
07/07/2025, 3:38 PMkapa.ai
07/07/2025, 3:38 PMhttps://<tenant_name>.sharepoint.com/sites/<site> If you want Airbyte to access a specific sub-site, ensure the full URL is provided. If you provide only the base or leave it empty, Airbyte will default to the main site or iterate through all sub-sites if you use https://<tenant_name>.sharepoint.com/sites/ [[Copy Raw Files Configuration](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#copy-raw-files-configuration)]. 2. Folder Path: The Folder Path field should be set to the directory you want to sync. If left empty, Airbyte will search all folders of the drives (except for shared items) [[Microsoft SharePoint Setup Guide](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#step-2-set-up-the-microsoft-sharepoint-connector-in-airbyte)]. 3. Search Scope: The Search Scope option determines where Airbyte looks for files: - `ACCESSIBLE_DRIVES`: All drives the user can access - `SHARED_ITEMS`: Shared items the user has access to - `ALL`: Both Make sure this is set appropriately for your use case [[Microsoft SharePoint Reference](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#reference)]. If all these settings look correct and Airbyte is still not accessing the right location, there may be a connector limitation or a bug. The knowledge sources mention that earlier versions of the connector only recognized files hosted in the main site, and support for specifying a site_url was added to address this limitation. If you are using an older version, consider updating. If the issue persists, it may require further troubleshooting or support from the Airbyte team [[Copy Raw Files Configuration](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#copy-raw-files-configuration)]. In summary: If your Site URL is correct and Airbyte is still not looking in the right place, double-check the Folder Path and Search Scope settings. If everything is configured as per the documentation and the issue persists, it could be a connector limitation or bug. The knowledge sources do not provide further troubleshooting steps for this scenario.Jay Archer
08/07/2025, 8:13 PM