Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Odata Query refresh takes a long time for minimal records

Like (2) ShareShare
ReportReport
Posted on 31 Jan 2025 10:20:59 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
  • Verified answer
    CU31011009-0 Profile Picture
    6 on 02 Feb 2025 at 15:13:04
    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
  • Suggested answer
    Waed Ayyad Profile Picture
    7,713 Super User 2025 Season 1 on 02 Feb 2025 at 14:53:30
    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,710 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading started