960
Views
13
Comments
Invalid call of the '_' client action of the '_'  since the latter is not currently..
Question

Hello.
We are having the following error in our app:


Invalid call of the 'GetAccessLevelOnAfterFetch' client action of the 'MainFlow.HomePage' 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.

We manage to fix it in a different occasion because we were using a global Javascrip setinterval and not clearing it correctly.
In this case this error is being triggered in a specific screen that has more info to load.
In all the places this error happens the only code being used is simple, does not use any setinterval and is not used in any events, despite that i will attach a example of the code we are running.
We are having an application launch in a few days so we are in a bit of a hurry to this this issue.

Thanks for the help.
Francisco Freire


2017-10-04_1409.png
2021-02-18 12-29-06
António Pereira
Champion

Hi Francisco,

Where is the 'GetAccessLevelOnAfterFetch' being called in your module? Did you check there is no setInterval or setTimeout calling it? Contact support if you don't manage to find what's happening.


Cheers. 

2026-01-26 15-58-24
Francisco Freire
Staff

Hi Atónio,
This specific function Is being a called on the OnReady action but we also have this problem on some webblocks on the OnAfterFetch action.

2021-02-18 12-29-06
António Pereira
Champion

I can't help much more without analyzing your module. 

If you are able to provide an oml that I can analyze great, if you don't I suggest you contact OutSystems support to help you fix it.

2026-01-26 15-58-24
Francisco Freire
Staff

I really can´t provide an oml, i have already opened a ticket regarding this issue.

But thank you anyway :)

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Fransisco,

Was the problem already resolved?

2026-01-26 15-58-24
Francisco Freire
Staff

Greetings Kilian.

Sadly, no, still couldn't find a solution or the origin of the problem.

Thanks.

Francisco Freire.

2025-01-07 16-54-36
Rodrigo Martinho

Hello guys,

Did you guys reach any conclusion on what was causing the problem?

I'm experiencing the same issue...

Thanks a lot!

2023-08-28 07-00-10
Paulo Torres
Champion

Hello,

I have the same problem. Someone know how I can solve this?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Paulo,

First, treat this message as a warning, it's not a true error. It may indicate something could be solved better, but I've seen circumstances where it's almost impossible to fix.

For example, in the orginal post, Francisco has an error about the OnAfterFetch. What likely happened is that a Screen with a Screen Aggregate, the Screen Aggregate having an OnAfterFetch, was destroyed, e.g. because the user navigated away from it, and since the Aggregate is executed in parallel, the OnAfterFetch is run even after the Screen is no longer there. In such cases, I'm really not sure how to prevent this from happening (though this particular use-case might be solved already, as the original post is from 2017).

So I'd need to know more about the exact error you are getting, as this message doesn't have a single solution.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi Kilian,

Thanks for your answer.

My error below, it's about a JS to close one dropdown. I have this JS in OnReady  of the dropdown.

Thanks

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Does this always appear? Or is it associated with a specific action, e.g. navigating to a different page?


2023-08-28 07-00-10
Paulo Torres
Champion

The errors are logged in random way. And not only this action, now I see many errors like than complaining about lot of actions in different widgets.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Mmm, that's weird. Are these standard widgets from OutSystems UI, or custom widgets?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.