Users with snc_internal role getting an error on portal when accessing enhancement records

sath
Tera Expert

Hi,

 

When users with only snc_internal role are trying to access enhancement records, we see below error messages:

Screenshot 2025-06-10 at 1.09.37 PM.png

This is working as expected for all other users.

Here's the line 39: 

data.variableSummarizerWidget = $sp.getWidget('sc-variable-summarizer', {'variables' : data.variables, 'toggle' : true, 'task' : fields[0].value});
 

Can anyone please assist?

 

1 ACCEPTED SOLUTION

DrewW
Mega Sage
Mega Sage

Clearly the object fields[0] is null.  So where is "fields" coming from.  So you need to check that and that should point you to a table the user probably does not have access to.  So you will have to change the security of the table or trap out the error and display a message that tells the user that they do not have access to the record they are trying to view.

 

View solution in original post

1 REPLY 1

DrewW
Mega Sage
Mega Sage

Clearly the object fields[0] is null.  So where is "fields" coming from.  So you need to check that and that should point you to a table the user probably does not have access to.  So you will have to change the security of the table or trap out the error and display a message that tells the user that they do not have access to the record they are trying to view.