Getting error while moving data to snowflake
# ask-ai
v
Getting error while moving data to snowflake
k
To help you with the error you're encountering while moving data to Snowflake, I need more details about the specific error message or symptoms. However, based on the knowledge sources provided, here are some common issues and troubleshooting steps related to syncing data to Snowflake with Airbyte: 1. Incorrect Username or Password Sometimes, syncs fail with "Incorrect username or password" errors, even if the credentials work elsewhere. This can be due to issues with the destination configuration schema or how Airbyte manages credentials internally. Re-creating the destination with the same credentials sometimes resolves the issue, but if the problem persists, further investigation into Airbyte's configuration handling may be needed. [Snowflake Destination User Failure](https://discuss.airbyte.io/t/909) 2. Warehouse Not Selected Errors like "No active warehouse selected in the current session" can occur if the warehouse parameter is missing or misconfigured in your Snowflake destination settings. Double-check your configuration to ensure the warehouse is specified and the user has the correct permissions. [No active warehouse selected in the current session](https://github.com/airbytehq/airbyte/issues/40615) 3. Table Name Corruption with UTF-8 Characters If you use non-ASCII (e.g., Japanese) characters in table names, some connector versions may corrupt the table name, resulting in errors like "Table ... does not exist." Downgrading to a previous connector version (e.g., from 3.15.0 to 3.11.12) may resolve this issue. [UTF-8 Table Name Corruption](https://github.com/airbytehq/airbyte/issues/47365) 4. Partial Data Sync or Missing Rows Large syncs may fail partway through due to disk space issues, especially if the Airbyte workspace is on a small partition. Ensure your Airbyte instance has enough disk space for staging files. [Only part of the data syncs](https://discuss.airbyte.io/t/2188) For very large tables, missing rows can also occur due to other resource constraints or connector limitations. [Missing Rows When Syncing Large MySQL Table to Snowflake](https://github.com/airbytehq/airbyte/issues/53614) 5. Connection Drops or DEADLINE_EXCEEDED If your connection drops mid-sync (e.g., "DEADLINE_EXCEEDED"), it could be due to network issues, VPN instability, or connector timeouts. Updating Airbyte and connectors to the latest versions is recommended, as older versions may have bugs or less robust error handling. [Snowflake connection cancelling middle of reading records](https://discuss.airbyte.io/t/3808) 6. Confusing or Misleading Error Logs Some recent connector versions may log normal operations as errors, making debugging more difficult. If you see error logs that don't correspond to actual failures, check if this started after a connector upgrade. [Wrong error logs in last update](https://github.com/airbytehq/airbyte/issues/55838) Next Steps: - Please provide the exact error message or log snippet for more targeted help. - Double-check your Snowflake destination configuration (warehouse, role, permissions, credentials). - Ensure your Airbyte instance has sufficient disk space. - Consider updating Airbyte and connectors to the latest versions if you are running older ones. If you share the specific error message, I can give you more precise troubleshooting steps.
v
@kapa.ai Getting below error for some parquet files of a table when trying to move data from gcs to snowflake . 2025-09-30 214126 source ERROR Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. stream=db_coupon file=https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee line_no=1913749 n_skipped=0 Stack Trace: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 779, in _error_catcher yield File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 925, in _raw_read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) urllib3.exceptions.IncompleteRead: IncompleteRead(138532099 bytes read, 47392669 more expected) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 820, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1091, in stream data = self.read(amt=amt, decode_content=decode_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1008, in read data = self._raw_read(amt) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 903, in _raw_read with self._error_catcher(): File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 803, in _error_catcher raise ProtocolError(arg, e) from e urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 74, in parse_records batch = reader.read_row_group(row_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pyarrow/parquet/core.py", line 468, in read_row_group return self.reader.read_row_group(i, column_indices=column_indices, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/_parquet.pyx", line 1608, in pyarrow._parquet.ParquetReader.read_row_group File "pyarrow/_parquet.pyx", line 1644, in pyarrow._parquet.ParquetReader.read_row_groups File "pyarrow/error.pxi", line 88, in pyarrow.lib.check_status File "/usr/local/lib/python3.11/site-packages/smart_open/http.py", line 175, in read bytes_read = self._read_buffer.fill(self._read_iter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/smart_open/bytebuffer.py", line 155, in fill for more_bytes in source: File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 822, in generate raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected)) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py", line 104, in read_records_from_slice for record in parser.parse_records(self.config, file, self.stream_reader, self.logger, schema): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 85, in parse_records raise RecordParseError( airbyte_cdk.sources.file_based.exceptions.RecordParseError: Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. Contact Support if you need assistance. filename=https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee lineno=row_group=1, line_no=19137482025-09-30 214126 source ERROR Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. stream=db_coupon file=https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee line_no=1913749 n_skipped=0 Stack Trace: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 779, in _error_catcher yield File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 925, in _raw_read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) urllib3.exceptions.IncompleteRead: IncompleteRead(138532099 bytes read, 47392669 more expected) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 820, in generate yield from self.raw.stream(chunk_size, decode_content=True) File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1091, in stream data = self.read(amt=amt, decode_content=decode_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 1008, in read data = self._raw_read(amt) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 903, in _raw_read with self._error_catcher(): File "/usr/local/lib/python3.11/contextlib.py", line 158, in exit self.gen.throw(typ, value, traceback) File "/usr/local/lib/python3.11/site-packages/urllib3/response.py", line 803, in _error_catcher raise ProtocolError(arg, e) from e urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected)) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 74, in parse_records batch = reader.read_row_group(row_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pyarrow/parquet/core.py", line 468, in read_row_group return self.reader.read_row_group(i, column_indices=column_indices, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "pyarrow/_parquet.pyx", line 1608, in pyarrow._parquet.ParquetReader.read_row_group File "pyarrow/_parquet.pyx", line 1644, in pyarrow._parquet.ParquetReader.read_row_groups File "pyarrow/error.pxi", line 88, in pyarrow.lib.check_status File "/usr/local/lib/python3.11/site-packages/smart_open/http.py", line 175, in read bytes_read = self._read_buffer.fill(self._read_iter) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/smart_open/bytebuffer.py", line 155, in fill for more_bytes in source: File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 822, in generate raise ChunkedEncodingError(e) requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected)) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/stream/default_file_based_stream.py", line 104, in read_records_from_slice for record in parser.parse_records(self.config, file, self.stream_reader, self.logger, schema): File "/usr/local/lib/python3.11/site-packages/airbyte_cdk/sources/file_based/file_types/parquet_parser.py", line 85, in parse_records raise RecordParseError( airbyte_cdk.sources.file_based.exceptions.RecordParseError: Error parsing record. This could be due to a mismatch between the config's file type and the actual file type, or because the file or record is not parseable. Contact Support if you need assistance. filename=https://storage.googleapis.com/lovelocal_dataengg_pipeline_data/ll_bronze_layer/mysql/homedelivery/db_coupon/2025_09_30_1759196666701_3.parquet?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=ll-gcs-snowflake-via-airbyte%40mpaanibackend.iam.gserviceaccount.com%2F20250930%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20250930T115617Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&X-Goog-Signature=197437e8bfdf58277edde73c6db9768db2b4c95b4bc000e69dc2c836ba37012bef042b76cfa0770ce4ccd091f54549d767ffd2e37b04de9b0a78275bfe80331f08abe908a045b75618e1e5bcfb7cbe0edc61e8c2c47da45200144d2fe58cd2f375c0ee1fcb8ba4282c04252d9a8c093fbb18084ca8cfab2844c79d217b7bc5f92cc590c8a76dc53053b1f8a1823da464539d265cf20f6afa5e7085879f27c5e1531a5ed83e382b23440e94d2409e22e2cfd4daea179b9c9b7bf97012b5bd3157297cfa36bf2020f7107a51a3dab28b2b9c7bbef82d5e7485fb31964c50876396a45eedfc1dc3517dc161f1ef6124da5867d45cd02c71cf00812d19d57e308fee lineno=row_group=1, line_no=1913748
k
A message from kapa.ai
The error you are encountering:
Copy code
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(138532099 bytes read, 47392669 more expected)', IncompleteRead(138532099 bytes read, 47392669 more expected))
indicates that Airbyte's source connector is unable to fully read the Parquet file from Google Cloud Storage (GCS). This is a network-level error, not a Parquet parsing or schema mismatch issue. The error means that the HTTP connection was interrupted before the entire file could be downloaded, resulting in an incomplete read. Key points from the stack trace: - The error is raised by the underlying HTTP library (`urllib3`/`requests`) when reading the file from GCS. - Airbyte then reports a generic "Error parsing record" because it cannot process an incomplete file. ### Possible Causes - Network Instability or Timeout: The connection to GCS was interrupted or timed out before the file was fully downloaded. - Large File Size: Very large files are more susceptible to incomplete reads if the network is unstable or if there are timeouts. - Temporary GCS Issue: There could be a transient issue with GCS or the specific file. ### What You Can Do 1. Retry the Sync: Sometimes, these errors are transient. Retrying the sync may succeed if the network issue was temporary. 2. Check File Integrity: Ensure the Parquet file in GCS is not corrupted and is fully uploaded. Try downloading it manually and opening it with a tool like
pyarrow
or
parquet-tools
. 3. Check Network Stability: If you are running Airbyte in an environment with unstable network connectivity to GCS, try to improve the network reliability or run Airbyte closer to GCS (e.g., in the same cloud region). 4. Increase Timeout/Chunk Size: If possible, adjust the timeout or chunk size settings in your Airbyte deployment or underlying infrastructure, though the knowledge sources do not specify how to do this directly for GCS sources. 5. File Size Considerations: If the file is very large, consider splitting it into smaller chunks before syncing. ### Related Airbyte Issues - Similar errors have been reported when reading files from S3 or GCS, often due to network interruptions or file corruption. The Airbyte error message is generic and can be triggered by any issue that prevents the file from being fully read or parsed, not just schema mismatches or file type errors. [Source S3 fails to load data from parquet file if value is NoneType](https://github.com/airbytehq/airbyte/issues/34151) - The documentation and issues do not mention a direct fix within Airbyte for this specific error, but the troubleshooting steps above are consistent with community and GitHub discussions. If the problem persists after checking the above, you may want to contact Airbyte support or open a GitHub issue with details, as suggested in the error message. I'm sorry, but the knowledge sources do not provide a more specific solution for this exact error scenario. If you have additional logs or context, that may help narrow down the root cause further.