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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

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.

Anonymous
Not applicable

Hi @Anonymous ,

 

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.

Anonymous
Not applicable

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors