Error: Invalid call to client action since the latter is not currently active

Error: Invalid call to client action since the latter is not currently active

  

Hi Guys, 

Have you encountered this kind of error?

"Invalid call of the 'FormatBalances' client action of the 'MainFlow.ClientDetails' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action."

Any Idea how to set the timeout of the client action? Is it done only on javascript? Thanks in advance!


Yes, this is a common problem, which can have a variety of causes. What it says is that an event action was triggered (e.g. after loading data) while the web block or screen is no longer visible.

What you need to do to solve it depends on the exact cause. If you search the forum, there's at least one thread that discusses one of the common problems and how to deal with it. (I'm on mobile now, so difficult for me to find it.)