I have an LWC embedded in a flow that has a custom footer. Whenever to click on the custom buttons to navigate the next screen, I get the following error:

Uncaught Action failed: flowruntime:flowRuntime$controller$handleNavigate [The 'NEXT' navigation option isn't supported on this screen. Replace it with one of the available navigation options: FINISH.]

Not sure how or why I am getting the error when the 'NEXT' option is in this.availableActions. The flow navigates to the next screen but I still get the error. The weirdest part is that it complains about the opposite if I try to use 'FINISH'.

Here is the snippet of the code:

      let navigationEvent;

      if (this.availableActions.find(action => action === "FINISH")) {
        navigationEvent = new FlowNavigationFinishEvent();
      } else if (this.availableActions.find(action => action === "NEXT")) {
        navigationEvent = new FlowNavigationNextEvent();

      try {
      } catch (e) {
  • is the component exposed to Flow screen using <target>lightning__FlowScreen</target> in meta xml? – rahul gawale Nov 26 '19 at 20:47
  • Yes, it is. The component is currently being used with a flow. – user76556 Nov 29 '19 at 22:49
  • We are having the exact same issue. Salesforce support has escalated to R&D and we are waiting for their response. Did you find a solution? – Peter Dec 13 '19 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.