Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
0tk
Regular Visitor

Connectivity to Redshift via Azure AD authentication

Has anyone had success connecting Power BI via ODBC to Redshift using the Azure AD plugin. Tried various options but keep getting the error "DataSource.Error: ODBC: ERROR [42703] [Amazon][Amazon Redshift] (30) Error occurred while trying to execute a query: [SQLState 42703] ERROR: column "TABLE_TYPE" does not exist in svvp_all_tables"

 

Upon debugging, looks like the Redshift ODBC driver is sending queries in upper case and Redshift doesnt accept them. I can run the same query via DBeaver using lower case identifiers and changing settings on Redshift to be case insensitive did not help.

 

 

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @0tk ;

Is your problem solved? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @0tk ,

if you really have a camel case in you column name then you must wrap the column name with double quote.

SELECT return_part_i.CntrctTrmntnInd FROM return_part_i LIMIT 10;

vs

SELECT "CntrctTrmntnInd"  FROM return_part_i LIMIT 10;

PostgreSQL columns (object) name are case sensitive when specified with double quotes. Unquoted identifiers are automatically used as lowercase so the correct case sequence must be write with double quotes.

https://stackoverflow.com/questions/37418028/postgresql-error-column-does-not-exist-sql-state-42703

https://stackoverflow.com/questions/52007364/postgresql-column-doesnt-exist


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.