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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
paulsnet1986
Helper I
Helper I

Error Using SQL to Prefilter Data from Hana / ODBC: ERROR [42S02]

One of my reports has a dataset that's taxing on our embedded instance, and so I'm trying to limit the records in the largest table before they're imported.

 

Advanced editor source

paulsnet1986_1-1650648764793.png

I have little experience with SQL but I figured such a simple action wouldn't be an issue. I'm attempting to limit the source table by adding the below statement:

 

paulsnet1986_0-1650648608960.png

However, when I attempt to connect to the data, I get the following error: [HDBODBC] Base table or view not found;259 invalid table name: Could not find table/view PROJECTDETAILLIST_PBI1 in schema WEBUSER: line 1 col 15 (at pos 14)"

 

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @paulsnet1986 

 

This error message indicates that it couldn't find the table "PROJECTDETAILLIST_PBI1". Please check the name of the table. Does it have an additional "1" at the end? From the first picture, you are querying data from a table named "PROJECTDETAILLIST_PBI". 

 

If the table name is correct, please check the schema of the table. From the error message, it tried to find the table in schema WEBUSER by default. If this table is not in the schema, you should specifiy its schema in the SQL statement like 

select * from schemaname.tablename where SoldTo = '10015'

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @paulsnet1986 

 

This error message indicates that it couldn't find the table "PROJECTDETAILLIST_PBI1". Please check the name of the table. Does it have an additional "1" at the end? From the first picture, you are querying data from a table named "PROJECTDETAILLIST_PBI". 

 

If the table name is correct, please check the schema of the table. From the error message, it tried to find the table in schema WEBUSER by default. If this table is not in the schema, you should specifiy its schema in the SQL statement like 

select * from schemaname.tablename where SoldTo = '10015'

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors