Delete error

0
While deleting an object that is having  one to one association getting below error however object gets committed(deleted) comes with message stated below An error occurred while executing an action of Obligations.Snippet_Obligations_EditAccess.pop_upMenu1: Cannot read properties of null (reading 'length') Error: An error occurred while executing an action of Obligations.Snippet_Obligations_EditAccess.pop_upMenu1: Cannot read properties of null (reading 'length')     at http://localhost:8086/mxclientsystem/mxui/mxui.js?637738018619268392:68:117431     at we (http://localhost:8086/mxclientsystem/mxui/mxui.js?637738018619268392:24:6501)     at i (http://localhost:8086/mxclientsystem/mxui/mxui.js?637738018619268392:24:6402)     at x (http://localhost:8086/mxclientsystem/mxui/mxui.js?637738018619268392:66:5472)   Any leads pls help
asked
2 answers
0

As per the error, it states, cannot read properties of null. So possibly there is a chance that you are deleting the object and its association and loading the object and/or its associations in the target page. 

- Redirect to some overview page

- Or use refresh from microflow

answered
0

In addition to Nirmalkumar’s answer, it sounds like the page is expecting the 1-1 association to be populated, and as it’s not, you’re seeing this error.

Another approach would be to put a container around the fields in the associated object, and conditional visibility on it based on wether the association is empty or not. If it’s empty the object isn’t there, so don’t try to show the content.

answered