I came up with the workflow shown below, which seemed to do the job at first. The purpose of the workflow is to notify via email that a document is about to expire. First, it checks if the notification is required, if "yes", then it loops until the entered document expiry date is the same as the calculated expiry date minus 30 days, and if this happens, it sends a notification email and changes the required notification to "no" to stop the loop. The worklow started properly for the items it was assigned to and did what it had to do in some instances, but after a few days I noticed that it stopped sending notifications, and checking on the issue, I saw some suspended workflows with the following message: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.TimeoutException: The HTTP request timed out after retrying for 10.00:00:00.
If someone has any advice on how to fix this, what I did incorrectly or what better workflow option I can apply, please let me know.
I appreciate your input.