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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
AmilaMG
New Member

Refresh failed : A cyclic reference was encountered during evaluation

I have power bi desktop report that needs to refresh. when i hit refresh it gives me the error "A cyclic reference was encountered during evaluation".

This report consist of ODBC snowflake queries which has "select * from table" for odbc query. And there is no merges or append queris. This refresh worked for 2021 December update but for newer versions this issue remains same. 

 

Do anyone have some idea regarding this? Please help

8 REPLIES 8
nmckeown1
Helper I
Helper I

This is an old thread, but I had this issue in 2024.

 

I went into power query editor, and refreshed it there. Came back out and refreshed it in desktop and it was solved.

I see this often with the latest versions. Yell at the clouds and refresh again, that makes the message go away.  Yet another meta data format change.

v-stephen-msft
Community Support
Community Support

Hi @AmilaMG ,

 

Did you check your steps in the applied steps? You may find which step is the problem.

 

 

 

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.

Hello,
Let me first expalin my scenario:
I am trying to do incremental refresh on the dataset using stored procedure with Start Date and End Date as parameters. When the date field is filtered with these parameters as you can see them on code below from advanced editor, when closed and applied the steps, it throws the following error. Couldn't find the answer on any blog posts online.
Here is the error I get;

pthapa_0-1714677555517.png

pthapa_1-1714677635417.png

Any help would be great.

thanks,

pthapa

What do you have the #"Filtered Rows"  step for?  Seems redundant.

 

Incorporate RangeStart and RangeEnd into the query string instead of using the parameters option.

 

Or use the parameters option but check your syntax.  Chris Webb's BI Blog: Passing Parameters To SQL Queries With Value.NativeQuery() In Power Query And ...

I have the #"Filtered Rows" step for filtering a date/time field (in this case is completion date) for incremental refresh. So, the RangeStart and RangeEnd are two parameters that is used to filter the data for incremental refresh.
How do I implement in the query?

You already do that in your Stored Procedure. No need to do it again.

JamesWick
Helper I
Helper I

This can be displayed with the error "Local file header is corrupted". All connections are connections to the API, not files. Again, clicking Update will always work the second time.

 

Hope this helps,
J Wick

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.