Nanoflow action not working

0
Hello Team, I have used nanoflow and inside nanoflow used javascript action to open page from link.  It was working properly in past but now observed annoying issue- nanoflow is not working and breakpoint is stopped working at nanoflow.   Below client error showing in console - An error occurred while executing an action: Cannot read properties of null (reading 'focus').   Please provide some solution to fix this issue.
asked
2 answers
0

Hi, this error means the component is trying to access the focus property on an object that is null. Please make sure the object you reference in your nanoflow or JavaScript action is created and contains data before calling .focus. Also verify that the user executing the action has the correct access rights to create or retrieve the object; otherwise it may be null at runtime. This is not related to the nanoflow itself but to missing or unloaded data. If the issue continues, share a screenshot to review the sequence.

answered
0

Hi Sidheshwari,

 

This error usually occurs when a nanoflow is trying to open a page without a valid context object or when the page has input fields set to auto-focus but no object is passed.

 

Steps

 

1. Make sure the nanoflow returns an object and passes it to the page

 

If the page expects an entity, create/refresh the object before opening the page.

2. If the page is static (no context) → change the page type to a Layout or Popup without context

 

3. Check page widgets for auto-focus setting:

 

Select input fields → disable “Auto-focus”

 

4. Clean deployment folder and run again

 

App → Clean Deployment Directory → Run

answered