Forum Discussion
Odd Web.Contents behavior making multiple calls to API based on load time
- Parallel loading disabled
- Background refresh disabled
- Web.Contents has a Timeout enforced and IsRetry=false
- All privacy settings set to ignore
- Using a Fx as the base query
() as table=>letWebCall = Web.Contents("http://intranetapi.com?request=serviceorders",[Timeout=#duration(0, 0, 30, 0), IsRetry=false]),Source = Json.Document(WebCall),#"Converted to Table" = Record.ToTable(Source)in#"Converted to Table"
letSource = SVCOrderFX(),Value = Source{0}[Value],#"Converted to Table" = Table.FromList(Value, Splitter.SplitByNothing(), null, null, ExtraValues.Error)in#"Converted to Table"
letSource = SVCOrderFX(),Value = Source{1}[Value],#"Converted to Table" = Table.FromList(Value, Splitter.SplitByNothing(), null, null, ExtraValues.Error)in#"Converted to Table"
There is another method described here: Chris Webb's BI Blog: Speed Up Data Refresh Performance In Power BI Desktop Using Table.View Chris Webb's BI Blog (crossjoin.co.uk)
that might be more reliable.
9 Replies
- ImkeFCommunity Champion
There is another method described here: Chris Webb's BI Blog: Speed Up Data Refresh Performance In Power BI Desktop Using Table.View Chris Webb's BI Blog (crossjoin.co.uk)
that might be more reliable.- tkboisvertHelper II
While I no longer have the environment to test this, this is the correct answer.
- ConjuredNew Member
Hello!
I have tried all of the mentioned in this thread solutions, but it doesn't work for me.If I make a new API GET request of data then PQ makes 2 API calls instead of 1.
However, after I have received the data, if I repeat exactly the same query, then PQ makes 1 API call.
Please help, I am stuck.
- v-juanli-msftCommunity Support
Hi tkboisvert
I can't find more solutions.
May ImkeF take some time to analyze this problem?
Best Regards
Maggie
- ImkeFCommunity Champion
Hi tkboisvert ,
don't know the reason for this either.
If no further answer is coming up here, I'd recommend to post your question in this forum instead: https://social.technet.microsoft.com/Forums/en-US/home?forum=powerquery
- ImkeFCommunity Champion
Hi tkboisvert ,
actually, there is a thing that you can try: Buffer the Web.Contents like so:
Binary.Buffer(Web.Contents(...