Scenario
User is encountering this error when using the FEFO Lot Assignments bundle:
Cause: A User Error Has Occurred
Bundle Name: FEFO Lot Assignments
Environment: Production
Date & Time: 09/27/2023 04:10 pm
Record Type: Sales Order
Internal ID: 313482
Execution Time: 0.00s
Script Usage: 0
Script: FEFO_UE_Sales_Order
Type: User Event
Function: beforeLoad
Error: INSUFFICIENT_PERMISSION
{"type":"error.SuiteScriptError","name":"INSUFFICIENT_PERMISSION","message":"Permission Violation: You need the 'Lists -> Documents and Files' permission to access this page. Please contact your account administrator.","id":"","stack":["createError(N/error)","<anonymous>(/SuiteBundles/Bundle 279508/com.netsuite.fefoshelflifeallocation/src/SalesOrder/ui/controller/FEFO_UE_SalesOrderController.js:82)","beforeLoad(/SuiteBundles/Bundle 279508/com.netsuite.fefoshelflifeallocation/src/SalesOrder/main/FEFO_UE_SalesOrder.js:182)"],"cause":{"type":"internal error","code":"INSUFFICIENT_PERMISSION","details":"Permission Violation: You need the 'Lists -> Documents and Files' permission to access this page. Please contact your account administrator.","userEvent":"beforeload","stackTrace":["createError(N/error)","<anonymous>(/SuiteBundles/Bundle 279508/com.netsuite.fefoshelflifeallocation/src/SalesOrder/ui/controller/FEFO_UE_SalesOrderController.js:82)","beforeLoad(/SuiteBundles/Bundle 279508/com.netsuite.fefoshelflifeallocation/src/SalesOrder/main/FEFO_UE_SalesOrder.js:182)"],"notifyOff":false},"notifyOff":false,"userFacing":false}
Solution
To resolve, follow these steps:
- Go to Customization > Scripting > Script Deployments
- Filter the script > FEFO_UE_Sales_Order
- Click Edit
- Set execute as role to Administrator
- Click Save
After doing this, try to process a sample sales order, then verify if the error still occurs.
Note: If error persists, it would be best to submit a Support case so it can be further checked by our Support team.
-----
If you find this information useful, let us know by reacting or commenting on this post!