"""Record Not Found"" Error when one End User ( Unlicensed ) trying to access other End user ( Unlicensed )Incident

Kristina2
Tera Contributor

HI ServiceNow Experts , 

I am working on a Requirement for Notifications . 

Problem : 

Incident and Incident alert notifications are received by all the End users in the organization . 

So when a End user opens a incident , he gets a notification and Click on the " View Incident " link , he is able to view the incident . 

When another  End user Clicks on the same  " View Incident " link , he is not able to view the incident . He is getting a error - """"Record Not Found"" . find_real_file.png

WorkAround : 

1. Deactivated all the ACL's on the Incident and Incident Alert tables and tested - No luck 

2. Activated them back and added the end user role for all the ACL's - No Luck . 

3. Searched in the all the scripts - Business Rules , Client scripts , Script Includes , to see , if they have a Info message - No luck . 

 

Please share your insights on this problem . 

Thank You 

1 ACCEPTED SOLUTION

Shyam, 

     Try disabling only this read ACL and on the new read ACL use the custom role. Next, the below BR script needs to be copied and edited to allow the custom role query rights. Please remember to disable the OOB BR. 

 

 

if (!gs.hasRole("itil") && !gs.hasRole("XYX") && gs.isInteractive()) {
var u = gs.getUserID();
var qc = current.addQuery("caller_id", u).addOrCondition("opened_by", u).addOrCondition("watch_list", "CONTAINS", u);
gs.print("query restricted to user: " + u);
}

 find_real_file.png

View solution in original post

9 REPLIES 9

Bhawana Upreti
Tera Guru

Hi,

Can you check that both users are having same roles?

 

Thanks

Yes both are End Users - Have basic access to the system 

Did you try to impersonate End User B who is not able to see the link and getting error. Are you still getting error from his account?

Thanks.

Exactly , I am imperonation both the user . 

For one user , the link is working ( who opened it) 

For another user , he is getting the error . 

Thank You