This message was deleted.
# ask-ai
s
This message was deleted.
k
The error "Failed to cast variant value "" to REAL" typically indicates that Airbyte attempted to convert an empty string ("") to a numeric (REAL/float) type, which is not possible. This kind of error is often related to schema mismatches or unexpected data types in the source data. To identify which stream is causing this error, you should: 1. Check the Airbyte Sync Logs: The sync logs usually contain detailed error messages, including the stream name and sometimes the field name where the casting failed. Look for lines in the logs that mention the stream or field, similar to:
Copy code
Exception while syncing stream <stream_name>: could not convert string to float: ''
or
Copy code
Failed to transform value from type 'string' to type '['null', 'number']' at path: 'properties.<field_name>'
These messages will help you pinpoint the problematic stream and field. For example, in a similar issue, the logs showed:
Copy code
Exception while syncing stream contacts    ...    ValueError: could not convert string to float: 'Province'
which indicated the "contacts" stream was the root cause [convert string to float fail for contacts](https://github.com/airbytehq/airbyte/issues/62473). 2. Review Recent Sync Failures: If you have access to the Airbyte UI, navigate to the connection's sync history. Failed syncs often display the stream that failed or provide a link to the relevant logs. 3. Check for Known Issues: There are known issues with certain HubSpot streams where fields are incorrectly typed as numeric but contain string values (e.g., lists of IDs or text). For example, the
engagements_notes
stream failed because a field was treated as numeric but contained a string of concatenated IDs [properties_hs_hd_ticket_ids declared as numeric but should be string](https://github.com/airbytehq/airbyte/issues/60971). Summary: The best way to identify the root cause is to review the detailed sync logs for error messages that mention the stream and field. If the logs do not provide enough detail, you may need to enable more verbose logging or selectively sync streams to isolate the issue. If you need further help interpreting the logs, you can share the relevant error lines here, and I can help you analyze them.
a
@kapa.ai The stream name not exists in the error meassage: net.snowflake.client.jdbc.SnowflakeSQLException: Failed to cast variant value "" to REAL
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain explicit information about how to identify the specific stream causing the error when the stream name is not present in the error message, such as:
Copy code
net.snowflake.client.jdbc.SnowflakeSQLException: Failed to cast variant value "" to REAL
However, the documentation does explain how to browse and search Airbyte logs. You can use the Airbyte UI to view detailed logs for each sync attempt. By searching for keywords like Error, Exception, or Fail, you may find additional context or preceding log lines that could indicate which stream or field is involved. If the error message itself does not include the stream name, reviewing the full logs around the error may provide more clues, such as the last stream processed before the failure or other related warnings or info messages. To do this: 1. Go to the connection's Job History tab. 2. Click the three dots next to a failed sync and select View logs. 3. Search for error-related keywords and review the context around the error. 4. If needed, download the logs for a more comprehensive search across all attempts. This process is described in the Airbyte documentation, but it does not guarantee that the stream name will always be present if the connector or destination does not log it explicitly. In such cases, you may need to run syncs with fewer streams enabled to isolate the problematic one, as suggested in some GitHub issues and forum posts, but this is not directly documented as a step-by-step solution in the provided sources [Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs). If you need more targeted help, please provide a larger excerpt of the logs, as sometimes the relevant stream is mentioned in lines before or after the main error.