question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fetchAll still returns no more than 5000 items

See original GitHub issue

Hi, I’m trying to retrieve all records from a fetchXml but I always get 5000 records despite i’m using the executeFetchXmlAll method. This is the code I’m using

    const fetch = `
<fetch no-lock="true">
  <entity name="alt_categoriaprodotto" >
    <attribute name="alt_name" />
    <attribute name="alt_markup" />
    <attribute name="alt_livello" />
    <attribute name="alt_categoriapadreid" />
    <order attribute="alt_name" />
  </entity>
</fetch>
      `;

    return CommonDAO.getWebApi().fetchAll("alt_categoriaprodottos", fetch);

where CommonDAO.getWebApi() returns new DynamicsWebApi({ webApiUrl: baseUrl + "/api/data/v9.0/" });

I found a similar issue here ( #79 ), but I’m not using the useEntityNames parameter.

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Suxsemcommented, Nov 30, 2020

Hi @AleksandrRogov it’s working great, thank you!

0reactions
Suxsemcommented, Nov 30, 2020

Thank you for your effort, I will try it right now

Read more comments on GitHub >

github_iconTop Results From Across the Web

fetchAll returns no more than 5000 items · Issue #79 - GitHub
Hi everyone, I'm facing a weird issue. The same fetchXml query returns more than 5000 items (5482 exactly) in one of our app...
Read more >
python postgres can I fetchall() 1 million rows? - Stack Overflow
I am using psycopg2 module in python to read from postgres database, I need to some operation on all rows in a column,...
Read more >
CAML Query - Going around the 5000 List Item Threshold
You cannot fetch the List items more than threshold limit. Ex: you have 10,000 items, there are 3000 item which meets your caml...
Read more >
How to process more than 5000 records in Lookup Activity?
The limitation of 5000 records for a Lookup activity is by design and there's no in-house way to get past this limitation. In...
Read more >
Retrieve More than 5000 records | Softchief Learn
If you update the value more than 5000 in the column value then the query will retrieve the new limit record count but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found