Hi Everyone,In our application sometimes users are facing connection timeout error while downloading the reports which contains large amount of data even in some other areas of the application.We have checked error and monitor logs for the same in service center.If user face connection timeout while using the application. How can we get notification through email for the connection timeout error ?We dont want to trigger communication exception and alert email in each and every logic flow. Is there any way to implement the same on application level so that we can get email notification for the connection timeout ?
Please share your thoughts and suggestions for the same.Thank you.
I think you need to use entity Log_Error and I may suggest to create time that run every 30 minutes or configure it as per your need to check log table for communication error and send email to system admin about each error (may be one email for all communication errors happened during these 30 minutes).
You will need to create one more entity to log details of each run of your timer for example last error log Id you handled and may be start date time and end date time of each run so you can avoid recheck of errors that already checked before.
In my previous answer I was asking to handle communication error only once in you application into Global exception handler not in every action or flow
Hello Ajit,
I think you should be able to catch connection timeout exception in exception handler as Communication Exception. If that happens then in your exception handler you can invoke the logic to send out notifications etc. To avoid alerts being sent out from every piece of logic you can continue to throw the exception till it propagates to single logic where you want to handle it.
However, I feel that you should revisit and fix the logic that is processing large files and getting the application in timeout situation. It might look small at the moment but will become huge with more load coming to application and database server.
Hope it helps!
Junaid
Thanks for the reply. I have shared the feedback in below comment.
Hello,
You can handle communication error into application exception handler to send email to system admin.
Also you can think about creating asynchronous process (timer, process or lite process) to generate this report with large amount of data then send email to user with download link or place file on any cloud storage and share its link.
Yes. For now I have handled the communication exception. But I am looking for a solution that will be applicable on application level. As soon as error log generated for the connection timed out issue in service center same alert or notification should get us through email. How can I achieve it ?In below entity Outsystems storing the error log.Whenever log will generate here for the error we should get email notification. Please suggest some feasible solution to implement on app level.Thanks.
Hi,Thank you for the answer.I have implement the same without timer. The moment communication exception occured I have triggered email notification and fetch the last connection timeout error details from the above mentioned entity.
Regards,Ajit Kurane.