This error typically appears when the S3 SDK can’t parse the XML response during multipart upload, or when the storage endpoint returns non-S3-compliant XML. In Airbyte, we’ve seen this with the S3 destination and with GCS-staging (which uses the S3 client under the hood), manifesting as “Failed to parse XML document…” or SAX parse errors. Common causes and checks: - Non-AWS S3 endpoints or proxies returning unexpected XML (e.g., MinIO/GCS) causing XML parse/SAX errors during multipart upload. Try switching to a different upload mode, verifying the endpoint, or using a fully S3-compatible configuration. [[Destination S3 upload fail](
https://discuss.airbyte.io/t/113); [BigQuery GCS staging](
https://discuss.airbyte.io/t/1048)] - Credentials/authorization issues can surface as XML or signature errors; confirm Access Key/Secret, region, and that the bucket exists and is valid. [[Invalid Access Key](
https://discuss.airbyte.io/t/1669); [Bucket not valid](
https://github.com/airbytehq/airbyte/issues/38756)] - Region mismatch can lead to auth header/response issues that look like XML/S3 errors; ensure the destination bucket region matches the configured region. [[Wrong region](
https://github.com/airbytehq/airbyte/issues/48407)] - Multipart upload initialization parsing failures specifically indicate the XML response to InitiateMultipartUpload wasn’t compliant; try reducing part size or using a single-part upload if possible, and double-check the S3-compatible gateway. [[XML parse during multipart](
https://discuss.airbyte.io/t/113)] If you can share whether you’re using AWS S3 vs. an S3-compatible service (e.g., MinIO/GCS), the destination config (endpoint, region, bucket, path), and whether multipart uploads are enabled, I can suggest a tighter fix.