Hi all! One of the users receives "An unexpected S...
# suitescript
d
Hi all! One of the users receives "An unexpected SuiteScript error has occurred" in UserEvent in the following line:
Copy code
const dynamicRecord = record.load({id: recordId, isDynamic: true, type: 'creditmemo'});
I tried under his role and it works perfectly for me. I'm also sure that recordId is not null. What user settings can I check?
c
Are there any employee-specific restrictions that might differ between the two of you?
d
Is it in Employee - Access - Global Permissions?
c
That, plus it's possible that a script or workflow deployed to the target record type has different logic depending on the user's location, subsidiary, or department which causes different behavior between the two.
d
Thanks! I'll check that too