Hello, Im having some trouble indentifying the cau...
# suitescript
i
Hello, Im having some trouble indentifying the causes of some errors on some scripts that are part of a bundle and are locked. If someone has dealt with some of this would be of great help! One is this: 
rolePrefId = custrecord_scm_enable_itemsub_on_role
 
role = 1151
This is part of the Supply Chain Management bundle (47193), doing some research, found in the field help this  
Check this box to enable the Item Substitution feature for the role.
 Does this mean that on the role (1151) this field needs to be checked?
n
In isolation those lines of code are just assigning 2 values to 2 variables and there's no logic around them. Maybe you need to show any logic around them too for anyone to say categorically. To be fair my gut feeling is "yes" but no way to know from that snippet. There's probably logic to see if you have that role and that checkbox is checked.
i
The issue here is as the script is locked I cant check the code, those two that appear lines of code are actually what the system is logging as an log.error
n
If all you have to go on is those logs then you are flying blind I'm afraid. Would it harm anything to go with your assumption and try it?