Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi.
I'm using this query for an API request (POST) to change data from JSON into a table.
It works like a charm the first time, but when I try to refresh, the query times out or gets stuck at 'evaluating.'
Anyone that has an idea what the problem is?
let
Source = Json.Document(
Web.Contents(
UrlAPI,
[
Headers=[
#"Content-Type"="application/json",
#"Authorization"="Bearer " & Token
],
Content=Text.ToBinary("{}"),
RelativePath=""
]
)
),
Headers = Record.FieldNames(Source[data][headers]),
Rows = Source[data][rows],
Records = List.Transform(Rows, each Record.FromList(_, Headers)),
APIPost = Table.FromRecords(Records)
in
APIPost
"Evaluating..." means you changed the meta data, Power Query panicked, threw up, and now tries to remember what everything means. That includes rebuilding its meta data cache, and can take any number of minutes. The "simplest" advice is to wait it out. After that everything will be fine until the next meta data change. Which in your scenario seems to be every time you make that API call?
The ideal final result of a Power Query query is a partition (a table in layman's terms) that has exactly the same structure as the run before .
I've tried waiting, but it times out. I also cannot refresh the data source in "Transform data".
The table that is created has the same structure each time, but with a different number of rows. I'm wondering if it has to do with it being a POST, instead of a GET. However, the API requires a POST.
Your code sample seems to indicate a dynamic composition of column headers.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |