Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone
I have a problem with an ODBC connection from Redshift.
Once connected, for some tables, it is not possible to load them in direct query due to a conflict between the format of some
table columns and the data they contain
In particular fields that have the format INT and have "" values.
Below is the error:
DataSource.Error: ODBC: ERROR [22P02] [Microsoft][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState 22P02] ERROR: invalid input syntax for integer: ""
Dettagli:
DataSourceKind=AmazonRedshift
DataSourcePath=loit-it0406172-prod-rshift-01fe-workgroup.925654835947.eu-central-1.redshift-serverless.amazonaws.com;dre2bi1prod
OdbcErrors=[Table]
Can you help me?
Thank you
Domenico
Solved! Go to Solution.
Hi @Rally00 ,
It appears that the issue arises because Redshift expects an integer value, but an empty string is provided instead. This mismatch in data types causes the error.
If possible, consider cleansing your data before it's queried. This could involve updating the source data to ensure that all fields expected to be integers do not contain empty strings or non-numeric values. This approach requires access to the source data and the ability to modify it.
Once you make selections from the Navigator window, you can either Load or Edit the data.
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Rally00 ,
It appears that the issue arises because Redshift expects an integer value, but an empty string is provided instead. This mismatch in data types causes the error.
If possible, consider cleansing your data before it's queried. This could involve updating the source data to ensure that all fields expected to be integers do not contain empty strings or non-numeric values. This approach requires access to the source data and the ability to modify it.
Once you make selections from the Navigator window, you can either Load or Edit the data.
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
116 | |
73 | |
60 | |
48 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |