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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
SteveApa
Frequent Visitor

Source References other queries or steps, so it may not directly access a data

Refresh runs file from power bi, but when I try to refresh thru app.powerbi.com (Scheduled or immediate), the refresh fails: Source references other queries or steps, so it may not directly access a data source. Please rebuild this data combination. 

1) I have set Privacy levels for all connections to None, 

2) I have File | Options | Privacy levels = Always ignore.

 

My querys.... 1st query get listing of project_numbers from 1 source (Denodo)

=== #"00) New - Project Listing - Denodo SQL" ===

let
Source = Odbc.Query("dsn=" & DENODO_32_OR_64, "
Select
p.project_number,
p.project_name,
p.project_current_phase_name,
p.project_governance_subtype_name
from
tep_projects as p
where 
p.project_number is not null
")
in
Source

 

====  #"10) Newest - PROJECT_NBR list - Done" =======

combine results of query above with...

= "(PROJECT_NBR = '" & Text.Combine(#"00) New - Project Listing - Denodo SQL"[project_number],"' OR PROJECT_NBR = '") & "')"

=======================

 

use above text combine in oracle query's where statement

===== 

let
Source = Odbc.Query("dsn=adw_adhoc", "
SELECT
PROJECT_NBR as ""project_number"",
TYCO_ELECTRONICS_CORP_PART_NBR ""material""
From
GBL_CURRENT.CORPORATE_PARTS
where " & #"10) Newest - PROJECT_NBR list - Done" & "
")
in
Source

 

  I use Text.Combine results of 1sq query and use this in the where sql statement on different datasouce (Oracle).  All works file in Power BI, but not on the published source scheduled refresh.

Thanks for the help!!

Harrisburg, PA

2 REPLIES 2
Anonymous
Not applicable

Hi @SteveApa ,

 

Are there any screenshots of errors that failed to refresh?

For now, you many check this link for troubuleshooting.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SteveApa_0-1633017582691.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.