DataPill has data but the Action is breaking due to record not found Issue ProblemCustomer encounters an error when attempting to update a record after retrieving it via a data pill referencing a record. The error occurs specifically on the instance when testers with impersonation roles trigger the flow via a UI action. The script returns the record, but the subsequent update action fails with a 'record not found' error. This issue does not occur when actual users or admins impersonate the same user and trigger the flow. Release N/A Cause Root Cause1. The error occurs due to security enforcement by GlideRecordSecure during impersonation, which checks ACLs and security rules for the impersonated user. If the impersonated user lacks read access to the target record, the update action fails with a 'record not found' error.2. The issue is specific to testers using impersonation roles without admin access, as actual users or admins impersonating the same user do not encounter the problem. Resolution Steps to Resolve1. Verify that the impersonating user has the required read access on the target record when the script executes, as GlideRecordSecure enforces ACLs and security rules during impersonation.2. Consider adding required roles to the affected user to ensure they have the necessary permissions.3. Alternatively, modify the script to use the standard GlideRecord API instead of GlideRecordSecure, depending on business requirements. Review the documentation for GlideRecordSecure for further guidance: https://www.servicenow.com/docs/r/api-reference/scripts/useful-server-side-scripts.html?section=c_UsingGlideRecordSecure