TypeError: Cannot read property 'execute' of undefined

I am getting this error while trying to call a apex class on button click on skuid by running javascript snippet when using same button 2nd time, I observed I will go to another tab and then again press the button, it will work fine.

To make the button working I have to move to another tab .

It sounds like the error is likely found in your custom apex or your custom javascript. Without more information, I don’t know how to be more helpful. Is there any more detail you can provide?