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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bmsuhaib
Regular Visitor

Power BI Service Showing error Paginated api Query | Power Query

Hi All,👋

tmp_9e0f779b-88ba-417f-8869-367f71ac449e.png

I am getting the above error while i add the below Query to my power bi Desktop to pull the API Data using basic authentication Username & Password as shown below(Default Anonymous Credentials) 

tmp_1646368a-2a56-4b10-992e-f5dd08837602.png

The Data is Paginated. The issue here is that I don't have any Page Number / Total Pages/ Total Record count for my data to try some other methods.

While importing the data I get 2 fields

  1. List(current page items) 
  2. Next page url/value

The outputs recieved for now is as below in power bi desktop for 10k data as of now which keeps increasing. As of now each Page containg 1000 records which may vary.

1)

tmp_e62e63ed-bf45-4c98-be8b-17cb0e8bc78b.png

2) generate function - hand authorized query as shown in code above

tmp_838b54c6-4fc5-4161-b48a-8e12fd8a0235.png

Generate function is causing all the issues here. -(showing hand authorized query) 

After step 2 all are done easily... 

The above code works fine in Power BI Desktop. But it gives above erro in Power BI Service. I am not even getting data source credentials / refresh scheduling option in power bi Service. 

If someone give me alternative step/code for generate function too it will help me. 

Can someone please help me with the solution!!!! 

1 REPLY 1
lbendlin
Super User
Super User

Dynamic data sources like yours are not supported on the service. You need to refactor your query to make it look like a static query.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.