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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
ECONcat1
Regular Visitor

Cannot import data when including sql statement in advanced options

Hi all,

 

I'm having an issue importing data from an Oracle database into my PBI Desktop. 

 

If I simply select a table (or tables) to load, there is no problem.  However, if I attempt to include any SQL statement under Advanced Options in the get data window, the query will not resolve.  The preview pane will pop up and show correct data under the conditions I have specified, but then proceeding to either Load or Transform Data will result in the query evaluating endlessly and not resolving (have tried letting it go for hours, no resolution).

 

I don't think the SQL statement itself is the problem because I am inputting very basic statements and PBI seems to alert me when I have written garbage as it will not let me to proceed to the preview step.  I have also uninstalled and reinstalled the client. 

 

Any suggestions or experience with this would be appreciated.  Thanks!

 

(Obviously this is a problem if one is trying to parse a large data set before importing into PBI.  But for me this issue is exponentially worse because of the 10,000 table limit when navigating a database.  There are tables that I am trying to access that I must name using a SQL statement because they exist beyond this 10,000 limit and I cannot simply point to them with the navigator.)

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@ECONcat1 have you tested executing the query in the DBMS first to verify its validity and performance?

Also, if the problem is simply that you aren't able to select the table from the navigator, simply build the query in Power Query instead.  Connect to any table, then in the advanced editor just edit the "Item" (table name) that is being selected.

ebeery_1-1646362833257.png

 

View solution in original post

That's a good idea @Anonymous .

 

I've been poking around this morning and I think I can get what I need with this workaround.  I didn't think of going this route so I appreciate it. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@ECONcat1 have you tested executing the query in the DBMS first to verify its validity and performance?

Also, if the problem is simply that you aren't able to select the table from the navigator, simply build the query in Power Query instead.  Connect to any table, then in the advanced editor just edit the "Item" (table name) that is being selected.

ebeery_1-1646362833257.png

 

That's a good idea @Anonymous .

 

I've been poking around this morning and I think I can get what I need with this workaround.  I didn't think of going this route so I appreciate it. 

Anonymous
Not applicable

Hi @ECONcat1 ,

 

Is there any error message and does the sql involve multiple tables and a large amount of data?

 

Best Regards,

Jay

No error messages.  And I have tested this on a relatively small table.  The most basic statment of:

 

select *

from "TableName1"

 

will cause an endless loop. 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.