The mobile function in Agent app does not work as expected and throws the error " Invalid update. Record has been deleted or you no longer have access to read".


Description

When a user clicked on a function in a record(ex: Resolve incident in the Incident form), the function will not work as expected and throws the error "Invalid update. Record has been deleted or you no longer have access to read". The same error is also seen in the node logs.

Cause

The probable cause of the issue is because of the Context of the mobile function being set to Global instead of Record. If a mobile function has to work in a form view of the mobile, the Context should be set to Record. Ex: If the function Resolve Incident is set to Global Context, the issue is observed: /nav_to.do?uri=sys_sg_button.do?sys_id=05f2ad8e673023005326c3105685ef56


Resolution

To resolve the issue, set the Context to Record instead of Global.