Logic App Dataverse Connector FetchXML will not return more than 512 records

Scott Brownhill 10 Reputation points
2025-02-10T03:50:06.2433333+00:00

Hi All, got issue where Dataverse connector will not return more than 512 records when using FetchXML. Have tried using the paging settings of the connector and top property of FetchXML (and combinations of both). I converted the FetchXML to web api call and it retuned more than 512 (expected result). I do notice that at some stage between 2am 29th Jan and 2am 30th Jan (NZ time) the "Preference-Applied" header of the Dataverse connector response started including "odata.maxpagesize=512". I assume this was a Microsoft update to the connector. Thought I would ask if anyone else is experiencing this and knows what to change or if there is a setting on our Dataverse tenant that may need to changed. Any assistance would be much appreciated. Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,403 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 4,235 Reputation points Microsoft External Staff
    2025-02-10T16:24:51.5133333+00:00

    @Scott Brownhill ,

    Welcome to Microsoft Q&A Platform!

    Thanks for reaching out. Looks like the Dataverse connector is capping at 512 records with FetchXML due to paging settings and connector limits. The docs say the default and max page size is 5,000 rows, but if you see "odata.maxpagesize=512" in the "Preference-Applied" header, it means the connector is set to limit records per request.

    Try these steps to fix it:

    1. Check Connector Settings: Make sure there are no tenant-level settings in your Dataverse that are enforcing this limit.
    2. Use Paging Cookies: Instead of just using the top property or paging settings, try using paging cookies to handle larger datasets.
    3. Monitor for Updates: Keep an eye out for any Microsoft updates or documentation changes about the Dataverse connector that could affect paging.

    References:

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for "Was this answer helpful." And if you have any further questions, let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.