Strangely, an error appears when calling an action from a script.
It was reported here that the error can occur due to wrong action name or if the action is selected. The reasons given have been double-checked and still this error. Perhaps there is some other reason?
At the same time, launching this action from the action bar works without any issues.
p.s. bugs are popping out of every crevice