hello team, Question regarding the sharepoint conn...
# replication-troubleshooting
a
hello team, Question regarding the sharepoint connector, currently we have multiple excel files in a folder which we are trying to ingest. But we need to ingest in seperate s3 buckets. problem is that it shows as 1 excel file when wanting to choose the file via ingestion and all columns in all files are clubbed into 1 big file, thats issue one and second one is that even though we select only few columns , in destination it still has multiple columns and sometimes all columns. how to fix the issue?
k
Your questions touch on two main issues with the SharePoint connector and S3 destination: ### 1. Multiple Excel Files Clubbed into One Stream The SharePoint connector uses path patterns to select files for ingestion. If you use a pattern like
**/*.xlsx
, all matching Excel files in the folder (and subfolders) are ingested as a single stream. This means all columns from all files are merged, resulting in a wide table with all possible columns from all files. This is expected behavior when using a single stream for multiple files, especially if the files have different schemas. How to ingest files separately: Currently, Airbyte does not natively support routing each file to a separate S3 bucket or creating a separate stream per file automatically. Each pattern you define creates a stream, so if you want each file as a separate stream, you would need to specify each file explicitly in the path pattern (e.g.,
file1.xlsx|file2.xlsx
). However, this is not scalable for a large or dynamic set of files. There is no built-in feature to automatically create a separate stream for each file or to route each file to a different S3 bucket based on its name or path. This is a known limitation. ### 2. Column Selection Not Reflected in S3 Output You mentioned that even after selecting only a few columns in the Airbyte UI, the S3 destination still contains all columns, or sometimes more columns than selected. This is a known issue, especially in Airbyte OSS (open-source/self-hosted) deployments. The column selection feature may not work as expected with the S3 destination due to how feature flags are handled in OSS, and the S3 destination may output all columns regardless of your selection. This issue has been discussed and is being addressed, but as of recent versions, it may still persist in some setups. As a workaround, some users sync to a database destination (like Postgres) first, apply column filtering there, and then sync from the database to S3, but this adds complexity to your pipeline [[Github Issue: destination-s3 selected_fields is not working](https://github.com/airbytehq/airbyte/issues/60878)]. ### Recommendations - For separate ingestion: If you need each file in a separate S3 bucket, you will need to set up separate connections for each file, each with its own path pattern and S3 destination. This is manual and not scalable for many files. - For column selection: This is a known limitation with the S3 destination in OSS. If you are using Airbyte Cloud, column selection should work. If you are on OSS, consider the database workaround or monitor for updates on this feature. ### Schema Control You can provide a user schema to control which columns are included and their types, but columns not in the schema will be packed into an
_ab_additional_properties
map, not excluded entirely. This does not fully solve the column selection issue but can help with schema consistency [[SharePoint User Schema](https://docs.airbyte.com/integrations/sources/microsoft-sharepoint#user-schema)]. --- Summary: - Airbyte currently merges all files matching a pattern into one stream, resulting in all columns being combined. - Routing each file to a separate S3 bucket or stream is not natively supported. - Column selection may not work with S3 destination in OSS; this is a known issue. - Providing a user schema can help control output, but does not fully filter columns. If you need more granular control, you may need to implement additional processing outside of Airbyte or monitor for future feature updates.