773
Views
9
Comments
Solved
Process Timeout
Question

I got a error message
"An exception occurred in the client script. Error: The connection to the server was reset"
I am aware why the message keep coming out, because the action was 2mins longer.

I need to extend the 2 mins Process Timeout or I need to Speedup the process of my data calculation.

mvp_badge
MVP
Rank: #47
Solution

Marvin Arceo wrote:

Fábio Fantato wrote:

Hi Marvin,

I agree with Kilian, if you need to run long tasks in your screen it is not a good idea keep it in a synch way. The best way is combine your action with an timer or BPT process. So you can run in a asynchonous routine and after that notify your user the process has been done.

Avoid to lock the job and the screen with longer operations


Hello Fábio

How BPT process working in Outsystems? This is new on me. Thanks


Hi Marvin,

There is a entire course focused on BPT process.  This is the best material about it.

https://www.outsystems.com/learn/courses/17/master-class-on-modeling-business-processes-bpt/?StartCourse=False




mvp_badge
MVP
Rank: #2

Hi Marvin,

Long calculations should ideally be performed by a timer, and not directly on submit of a form.

mvp_badge
MVP
Rank: #47

Hi Marvin,

I agree with Kilian, if you need to run long tasks in your screen it is not a good idea keep it in a synch way. The best way is combine your action with an timer or BPT process. So you can run in a asynchonous routine and after that notify your user the process has been done.

Avoid to lock the job and the screen with longer operations


mvp_badge
MVP
Rank: #2

Hi Marvin,

Yes, that's true, there's no way to input data to a timer, it needs to be stored in the database. However, you could e.g. use temporary tables for input and storing the results, and when done notify the user the results are ready. This is a way better user experience than having the user wait for minutes, even if there wouldn't be a timeout.

mvp_badge
MVP
Rank: #2

Hi Keerthi,

Site-properties are meant as static values, and as far as your code is concerned, you should treat them as constants, not as writable variables. Yes, you can change their value from the code, but this is a discouraged practice, as it may cause performance problems. Site-property values are cached, and when changing them, the cache has to be refreshed, and if the Module happens to be referenced by many other Modules, all these consuming Modules need to be refreshed as well.