Cannot read property 'then' of undefined
Application Type

Hi all,

I am having an unexpected issue that has never come up before. When I run a specific screen action in my reactive web app I get the exception "Cannot read property 'then' of undefined".

I understand that this is caused by javascript but it seems to be the auto generated javascript as I am not running any custom scripts. 

This seems to be the area in which the exception is thrown: " return controller._validate$Action(callContext).then( ".

All this action is supposed to do is to run a different screen action that does some validation, then run a server action to apply my data to an entity.

When debugging I can confirm that the validation is done correctly and finishes, but the exception is thrown when I reach the "end" of that action flow. Meaning the problem occurs between the two screen actions before I reach the server action.

If anyone has dealt with this issue before, some advise would be greatly appreciated.

Kind regards


Hi Stefan,

It is really strange! If it is possible could you please share the sample oml here. Also please check the below post if it can help.


Hi Sachin,

Unfortunately I cannot share the oml.

I did however changed it a bit in that I replaced the screen action with the contents of the screen action so that I am no longer calling the action from another action, but rather just executing the contents of it. This does not cause the exception. It also does not happen anywhere else so it seems to have been just a one time thing.

But thank you very much for the help!


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