web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Odata Query refresh takes a long time for minimal records

(1) ShareShare
ReportReport
Posted on by 6
Hi,
 
I'm looking at getting one sales order from Finance and Operations through OData into Excel using power query.
 
I have filtered and selected just the columns I need using the following url - masked information is enclosed in #
 
#environment#/data/SalesOrderLinesV3?$expand=SalesOrderHeader($select=InvoiceCustomerAccountNumber,OrderingCustomerAccountNumber)&$select=ItemNumber, DeliveryAddressName, OrderedSalesQuantity, LineDescription, SalesOrderNumber, SalesOrderHeader&$filter=SalesOrderNumber eq ' #variableforsalesorder#
 
When I run this query it always queries 41.9MB of data regardless of how many rows it returns and takes a while to refresh.
 
Is there something I am doing wrong?
Why does it query such a large amount of data compared to what I get back?
 
Thanks
Tristan
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    8,972 Super User 2025 Season 2 on at
    Odata Query refresh takes a long time for minimal records
    Hi,
     
    There is a limit in OData call, the max limit is 10K, if you have more than 10k you should use OData pagination.
     
    Check the following link:
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • Verified answer
    CU31011009-0 Profile Picture
    6 on at
    Odata Query refresh takes a long time for minimal records
    Hi :@Waed Ayyad, thanks for your response.
     
    I'm trying to return a single sales order which is likely to be 1-5 lines.
     
    I don't understand why this takes around 10-20 seconds to return.
     
    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,850

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 795 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 519 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans