Hello. I get this error with bigquery to s3 connec...
# replication-troubleshooting
m
Hello. I get this error with bigquery to s3 connectors : com.amazonaws.services.s3.model.AmazonS3Exception: The XML you provided was not well-formed or did not validate against our published schema @kapa.ai
k
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.
A message from kapa.ai
This usually means the S3 client failed to parse the XML returned by the storage service during upload (often at multipart initiation). In Airbyte, similar errors occurred when: - The storage endpoint wasn’t fully S3-compatible (e.g., MinIO/GCS), leading to XML/SAX parsing failures during multipart upload. Verify you’re targeting AWS S3 or a fully compatible endpoint; if using GCS staging, ensure the service account has list/read/write permissions on the bucket. [[Destination S3 fail](https://discuss.airbyte.io/t/113); [BigQuery GCS staging](https://discuss.airbyte.io/t/1048)] - Credentials/region were misconfigured, which can surface as malformed responses. Double-check access key/secret, bucket existence, and ensure the configured region matches the bucket’s region. [[Wrong region](https://github.com/airbytehq/airbyte/issues/48407)] - Multipart upload XML response was not compliant. If possible, switch to single-part uploads or adjust upload settings to avoid multipart, and retest against the endpoint. [[Destination S3 fail](https://discuss.airbyte.io/t/113)] If you share whether you’re using AWS S3 vs an S3-compatible service, your endpoint/region, and whether GCS staging or multipart is in use, I can suggest a precise fix. For general guidance, see the S3 destination troubleshooting. [[S3 docs](https://docs.airbyte.com/integrations/destinations/s3#limitations--troubleshooting)]