- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Expression.Error: A cyclic reference was encountered during evaluation.
Hello!
May i ask you about error "Expression.Error: A cyclic reference was encountered during evaluation"?
Whre did it find a cycle?
= let
yesterday = Date.ToText(Date.AddDays(DateTime.Date(DateTime.LocalNow()),-1),"yyyy-MM-dd"),
Source = Json.Document(Web.Contents("https://URL/api/v4/orders?filter[createdAtTo]="&yesterday&"&page=1&limit=100&apiKey=KEY")),
#"Converted to Table" = Record.ToTable(Source),
Value = #"Converted to Table"{1}[Value],
#"Converted to Table1" = Record.ToTable(Value),
#"Filtered Rows" = Table.SelectRows(#"Converted to Table1", each ([Name] = "totalPageCount")),
#"Changed Type" = Table.TransformColumnTypes(#"Filtered Rows",{{"Value", type number}}),
#"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"Name"}),
TotalPageCount = #"Removed Columns"{0}[Value],
#"Page" = List.Numbers(1,TotalPageCount),
#"Converted to Table2" = Table.FromList(Page, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Renamed Columns" = Table.RenameColumns(#"Converted to Table2",{{"Column1", "Page"}}),
#"Added Custom" = Table.AddColumn(#"Renamed Columns", "Custom", each RetailCRMOrderAPI([Page])),
#"Expanded Custom1" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Column1"}, {"Column1"})
in #"Expanded Custom1"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi, @berezinskiy-p
Please check the steps in the 'Applied Steps' area in Query editor to find which step is the problem. You may click from the upper step to the lower step in turn, and see which step appears the corresponding error message.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi, @berezinskiy-p
Please check the steps in the 'Applied Steps' area in Query editor to find which step is the problem. You may click from the upper step to the lower step in turn, and see which step appears the corresponding error message.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
04-06-2022 07:28 AM | |||
Anonymous
| 08-11-2022 06:02 AM | ||
09-20-2018 02:46 AM | |||
10-29-2024 04:22 AM | |||
Anonymous
| 05-21-2024 11:06 AM |
User | Count |
---|---|
86 | |
79 | |
42 | |
40 | |
35 |