:thread: Error while reading data
# ask-ai
v
đź§µ Error while reading data
k
The error "Error while reading data" in the context of Airbyte and BigQuery typically occurs during the loading of data from a CSV file into BigQuery, especially when using the GCS (Google Cloud Storage) staging loading mechanism. According to the knowledge sources, this error can be triggered if the CSV file contains invalid characters, such as the ASCII 0 (null) character. BigQuery cannot process files with such characters, resulting in errors like:
Copy code
BigQueryError{reason=invalid, ... message=Error while reading data, error message: Bad character (ASCII 0) encountered. ...}
The error message may also mention that "CSV processing encountered too many errors, giving up," indicating that the presence of these invalid characters caused the import to fail after a certain threshold of errors was reached. The error details will often specify the problematic line, column, and value in the CSV file. To resolve this, you need to ensure that your source data does not contain ASCII 0 or other invalid characters before loading it into BigQuery via Airbyte. You may need to preprocess your data to clean or remove such characters before the sync process, as BigQuery's CSV loader is strict about these issues. For more details, see the related issue: [destination-bigquery: When using the GCS staging loading mechanism, if CSV file contains the ASCII 0 character, it cannot be loaded into bigquery](https://github.com/airbytehq/airbyte/issues/62134).
v
Hi @kapa.ai I'm getting error while trying to read data from GCS folder . The data is stored as parquet files in GCS and is coming from Clevertap API . When I create a connection to move data from GCS to Snowflake , it works fine . But when I give an input schema in the connector for the parquet data , it fails with below output : Configuration check failed Error creating stream config object. And in the logs , I just get : 2025-10-06 181456 INFO 2025-10-06 181456 info 2025-10-06 181456 INFO 2025-10-06 181456 info ----- START CHECK ----- 2025-10-06 181456 INFO 2025-10-06 181456 info 2025-10-06 181508 INFO 2025-10-06 181508 info Connector exited, processing output 2025-10-06 181508 INFO 2025-10-06 181508 info Output file jobOutput.json found 2025-10-06 181508 INFO 2025-10-06 181508 info Connector exited with exit code 0 2025-10-06 181508 INFO 2025-10-06 181508 info Reading messages from protocol version 0.2.0 2025-10-06 181508 INFO 2025-10-06 181508 info Checking for optional control message... 2025-10-06 181508 INFO 2025-10-06 181508 info Writing output of 2a8c41ae-8c23-4be0-a73f-2ab10ca1a820_2a0d0a7f-c0fe-44a1-a60b-3509a1b5e43d_0_check to the doc store 2025-10-06 181508 INFO 2025-10-06 181508 info Marking workload 2a8c41ae-8c23-4be0-a73f-2ab10ca1a820_2a0d0a7f-c0fe-44a1-a60b-3509a1b5e43d_0_check as successful 2025-10-06 181508 INFO 2025-10-06 181508 info Deliberately exiting process with code 0. 2025-10-06 181508 INFO 2025-10-06 181508 info 2025-10-06 181508 INFO 2025-10-06 181508 info ----- END CHECK ----- 2025-10-06 181508 INFO 2025-10-06 181508 info
k
A message from kapa.ai
Based on the information in the knowledge sources, your issue—"Configuration check failed. Error creating stream config object." when providing an input schema for Parquet data in the GCS source connector—does not have a direct, detailed explanation in the available documentation. However, here are some relevant points and suggestions: - The GCS source connector allows you to provide an Input schema for each stream. By default, this is set to
{}
and Airbyte will infer the schema from the files. If you provide a custom schema, it must match the structure and types of the data in your Parquet files. If there is a mismatch, the connector may fail to create the stream config object, resulting in the error you see. The documentation does not specify the exact error messages for schema mismatches, but this is a common cause of such issues [Set up Google Cloud Storage (GCS)](https://docs.airbyte.com/integrations/sources/gcs#for-airbyte-open-source). - The logs you provided show that the connector exits with code 0, which usually means the process itself did not crash, but the configuration check failed at the application level. - There is no detailed error output in your logs, which makes it difficult to pinpoint the exact schema issue. The documentation suggests that if you encounter issues, you should try removing the custom schema and see if the sync succeeds, which you have already observed works [Forum Post: REST API to Bigquery](https://discuss.airbyte.io/t/1015). Suggestions: 1. Double-check that your input schema exactly matches the structure and data types of your Parquet files. 2. Try running the sync without the input schema (letting Airbyte infer it) to confirm that the issue is with the schema definition. 3. If you continue to have issues, consider sharing your schema and a sample row with the Airbyte community for more targeted help, as suggested in the forum [Forum Post: REST API to Bigquery](https://discuss.airbyte.io/t/1015). I'm sorry, but the knowledge sources do not contain more specific troubleshooting steps or error code explanations for this scenario. If the problem persists, you may want to open an issue on the Airbyte GitHub or seek help in the Airbyte community forums.
v
@kapa.ai Let's say there are 5 parquet files and each file has different number of columns but the column names are same because it could be possible that not all attributes are available for all users which can lead to missing columns in some parquet . Can that lead to this kind of issue ?
k
A message from kapa.ai
Based on the knowledge sources, Airbyte’s file-based sources (including GCS with Parquet files) expect that the schema can be inferred from a sample of files, and that the files are generally homogenous in structure. If your Parquet files have the same column names but some files are missing certain columns (i.e., the columns are absent, not just null), this can cause issues during schema inference or when enforcing a user-provided schema. The documentation states: > For file-based sources, we look at up to 10 files (reading up to 1MB per file) and infer the schema based on the contents of those files. ... The schema that's produced from the inference procedure will include all the top-level fields that were observed in the sampled records. ... Airbyte only syncs fields that are in the schema, so you may end up with incomplete data in the destination. > ... If your data set is very large or you anticipate that it will change often, we recommend using the "schemaless" schema to avoid these issues. [What is a Schemaless Source?](https://docs.airbyte.com/platform/understanding-airbyte/schemaless-sources-and-destinations#what-is-a-schemaless-source) If you provide a user schema, it must match the structure of the data in all files. If some files are missing columns entirely (not just having null values), this mismatch can lead to configuration errors or failures during sync, as Airbyte may not be able to reconcile the provided schema with the actual data in every file [User Schema](https://docs.airbyte.com/integrations/sources/gcs#user-schema). In summary: Yes, having Parquet files where some files are missing columns (even if the column names are the same across files) can lead to schema inference or validation issues in Airbyte, especially if you provide a user schema that expects all columns to be present in every file. The knowledge sources recommend using the schemaless option if your files are highly variable in structure to avoid such issues.
v
@kapa.ai Getting error : INFO i.g.o.k.s.i.Slf4jLogger(info):82 - Hydrating job 1334 ERROR i.a.s.a.ApiHelper(execute):47 - Unexpected Exception java.lang.NullPointerException: null ERROR i.a.c.s.e.h.UncaughtExceptionHandler(handle):33 - Uncaught exception java.lang.NullPointerException: null While trying to migrate data from gcs to snowflake .
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain enough specific information to definitively diagnose the cause of the NullPointerException you are seeing when migrating data from GCS to Snowflake. However, based on similar issues in the knowledge sources, NullPointerExceptions in Airbyte often occur due to schema mismatches, missing or unexpected fields in the data, or configuration errors—especially when dealing with file-based sources like GCS and Parquet files. For example, if your Parquet files have inconsistent columns or if the provided schema does not match the actual data, this can lead to such errors during sync or configuration checks [What is a Schemaless Source?](https://docs.airbyte.com/platform/understanding-airbyte/schemaless-sources-and-destinations#what-is-a-schemaless-source). If you are providing a custom schema, ensure it matches the structure of all files. If your files are heterogeneous, consider using the schemaless option or ensuring all expected columns are present (even if null) in every file. If the problem persists, you may need to review the full logs for more context or seek help from the Airbyte community, as the knowledge sources do not provide a direct solution for this specific error.