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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

OData Service Call getting TimeOut

(0) ShareShare
ReportReport
Posted on by

Hi,

Platform : Dynamics 365 Business Central Online

I'm calling a ODataV4 service from C# console using RestSharp. I'll be making this call repeatedly until some conditions satisfy. I don't have any issues pulling data for a few no.of calls. However, after a while, i see "The operation has timed out" error. Tried increasing timeout value in RestClient, but no luck. Is there a way to configure it in Business Central Online. Any help in this is appreciated. Thanks.

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    In D365BC SaaS you cannot configure the timeout for a request. This is handled by Microsoft and not by the end user. Receiving a timeout is something that normally doesn't happen. I don't know what you mean when you say "I'll be making this call repeatedly until some conditions satisfy" but if you send tons of requests per second to an Data endpoint, receiving a timeout is quite normal.

  • Suggested answer
    Community Member Profile Picture
    on at

    I figured out the issue. RestSharp is the culprit here for timeout exception. When is refactored the code with HttpClient, timeout didn't happen.

  • Jhonatan Ramirez Profile Picture
    40 on at

    Hi I am on the same problem, could you share how your code looks to create the request?

    thanks in advance

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans