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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
ebeery
Solution Sage
Solution Sage

@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 @ebeery .

 

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
ebeery
Solution Sage
Solution Sage

@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 @ebeery .

 

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. 

v-jayw-msft
Community Support
Community Support

Hi @ECONcat1 ,

 

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

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Users online (228)