Hi All,
Would like to hear some opinions or suggestion on my flow below whether require any improvement.This flow is implemented in OnBeginWebRequest server action. The purpose is to check user last interaction time whether > 15 minutes. If > 15 minutes, system will logout user's session.
However, I noticed there is "Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding." at GetUserLastInteractionDateTimeForUpdate CRUD action. Learnt that this CRUD action will lock the record to prevent other user update/delete the locked record. But I wonder, if this behavior will cause timeout or slowness issue?
Hello,
When debugging the code you can check in which action the timeout is happening. And are you sure it's in this specific action you showed?
I couldn't do debugging for the code, as this issue happened in my Production server only. Not able to reproduce in DEV environment.Yes, I've checked the Stack Trace from Service Center's error log, it's pointing at this action.
It can be happening that this action is being called multiple times and trying to fetch the exact same record.
Or it can be other part of the code that's already blocking that record thus making it impossible to retrieve it.
Wy are you doing the GetForUpdate action. This is not needed in your use case. Remove it and see what happens;