Search code examples
emailtimeoutoutsystems

OutSystems e-mail fails after 100s


I'm using OutSystems plataform and recently I'm getting timeout from a periodic e-mail. The timer responsible for this action has 20min timeout but the timer fails after 100s.

Some times the timer executes in 99s and the process finish successfully.

The error:

OutSystems.HubEdition.RuntimePlatform.EmailException: Error creating Email. The operation has timed out

How can I change this behavior to extend this 100s timeout?


Solution

  • You can increase the timeout setting on the Aggregate / Advanced query that you are using to retrieve the data. Improving the query is always first prize, but increasing the timeout could by you some time.

    UPDATE

    According to the OutSystems documentation you cannot set the timeout for email rendering. You would have to speed up the rendering.

    You could perhaps split your logic into an action that executes the query and stores the result for quick retrieval during the email preparation.