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
Greg_Deckler
Super User
Super User

Cause of data refresh issue

Really just looking for confirmation on this. I have a a data set in Azure SQL DB with about 6 queries that in Power BI for O365 (Power BI 1.0) was refreshing all of the queries automatically except for one that uses an "exec" SQL call which had to be refreshed manually. Recently moved this to Power BI 2.0 but the scheduled refresh essentially refuses to refresh any of the queries now because it says that 1 or more of the queries does not support refresh. I'm betting I know which query is causing this but just looking for confirmation that it is the query that uses the "exec" SQL call before we spend time re-engineering that query.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
3 REPLIES 3
Vicky_Song
Impactful Individual
Impactful Individual

@Greg_Deckler, we tested on our side that it is possible to refresh a dataset with query connecting to Azure SQL database with “EXEC” statement.

 

As you have more than 1 query, how about you first refresh it in Power BI desktop? Then go Edit Queries -> Advanced Editor to find out which query cause the refresh failure? 

@Vicky_Song OK, I tracked down the issue and am a little surprised. The problem seems to be a query that references a table in the Excel workbook. The query code is:

 

let

    Source = Excel.CurrentWorkbook(){[Name="Projections"]}[Content]

in

    Source

 

Removing that query remove the error. Is this something that is a known issue or otherwise known to not be supported or should I log this as an Issue?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for following-up Vicky. The issue is that they all work from Excel. Let me back-up. The file is an Excel file built with Power Query. Had to do it this way due to customer interface constraints. Loaded Excel file on OneDrive for Business and connected it to Power BI (not import). When going to Schedule Refresh, it just says "one of your queries does not support refresh". The old O365 Power BI would refesh all of them automatically except the EXEC query. If necessary, I can probably get someone at Power BI access to the Power BI tenant, etc.

 

Perhaps I need to open up a formal support ticket for this?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors
Top Kudoed Authors