Forum Discussion
Help with syntax -'One or more table references a dynamic Data Source. Not able to save dataflow'
Hi there,
I have an API that I want to paginate in a Power BI Dataflow. I tried this code in the desktop (dataset) and it refreshes fine. It also shows data in the dataflow but when I close the dataflow I get the error message: One or more table references a dynamic Data Source. Not able to save Dataflow.
So I have the followings queries/functions/parameters in the dataflow:
1 parameter where I provide my BaseURL (https://www.cannotshow.nl)
1 parameter where I provide my Bearer token (Bearer abcdefgheijklmnop)
1 Function called TEST:
1 query that shows me the data:
So the question is:
WHY do I get the Can't save dataflow error? I can see the data is loaded in. Some people with the same issues fixed it by using RelativePath, but in my case it still does not work. What do I need to change in the code so my dataflow will save and refresh.
Do I have to change something in the Relative Path or what do I need to do? Who could help me out?
Put the query pairs into the Query section, not the Relative path section.
Thanks, that did the trick.
Solved it like this:(Page as number) as table=>letSource =Json.Document([RelativePath = "/test.test/rest/all/V1/orders",Query = [#"searchCriteria[pageSize]" = Text.From(10),#"searchCriteria[currentPage]" = Number.ToText(Page)],Headers=[#"Authorization" = "Bearer abcdefgheijklmnop"]])
4 Replies
- lbendlinSuper User
You specified the query as part of the RelativePath. Try specifying it separately as the documentation suggests.