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.
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."