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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
RobbeVL
Impactful Individual
Impactful Individual

SharepointAPI error

HI All,

Recently, I've been encoutnering some problems connecting to the Sharepoint API.
The search API limits to pull 500 records at a time, so I'm working with an offset of 500. 

Whenever the amount of records is exacly 500 or a multiply of that, I seem to get an error. If I then manually change this offset , it can continue. 

 
 
 

Untitled.png

How do I work around this issue? 


1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

What error do you get? What changes to offset do you make to make it work?

EDIT it seems to be related to the index starting at 0 and not 1. if you have 1500 records starting with 0 the last index should be 1499, and your List.Generate in Offset will also generate 1500

Adjust 

Offset = List.Generate(()=>0, each _ <= Number.RoundTowardZero

to

Offset = List.Generate(()=>0, each _ < Number.RoundTowardZero

 and it should work



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

3 REPLIES 3
Stachu
Community Champion
Community Champion

What error do you get? What changes to offset do you make to make it work?

EDIT it seems to be related to the index starting at 0 and not 1. if you have 1500 records starting with 0 the last index should be 1499, and your List.Generate in Offset will also generate 1500

Adjust 

Offset = List.Generate(()=>0, each _ <= Number.RoundTowardZero

to

Offset = List.Generate(()=>0, each _ < Number.RoundTowardZero

 and it should work



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

RobbeVL
Impactful Individual
Impactful Individual

Hi Stachu ,

Thank you for your reply!
It is how I fixed the issue before, thank you for pointing out "the why".

Regards,

 

RObbe

Stachu
Community Champion
Community Champion

glad to help, have a good day 🙂



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.