Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Custom web services are terminated on timeout

(0) ShareShare
ReportReport
Posted on by 10

We have built a one way integration between third party software and D365 Finance. In most cases the third party is calling our custom services and gets a response. However on rare occasions we are facing timeout errors. When this happens the server is closing connection and the third party gets a generic network error. It seems not possible to catch a timeout event\exception with X++. But we would like to avoid timeouts and always send proper responses. We can think of implementing a time counter internally, so just before timeout we can send a proper response and save data if necessary. I wonder if there is any recommended pattern for integrations or maybe someone can share personal experience, it would be appreciated.

  • WillWU Profile Picture
    22,352 on at
    RE: D365 Finance custom web services are terminated on timeout

    Hi M.K.,

    You can do that in your development and UAT environments,  you need to find the web.config file and update the timeout value there. But you can't reach that in your production environment.

    And please check this blog:" With large data transfers you may hit some not-foreseen limitations and timeout problems on the way. But it is still possible to program some kind of paging mechanism in your service class to send small chunks of larger data to skip these limitations as well."

    devblog.sertanyaman.com/.../

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,145 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans