Is there a way to debug a script using the Debugge...
# general
s
Is there a way to debug a script using the Debugger and via CSV execution context? I have an issue where the user event works fine in the UI, but throws an error when updating a record via CSV
b
usually is either privileges/permissions
s
I don’t actually get any permission error but straight up a Suitescript error. The debugger doesn’t fire when i do my CSV update. It just say in Waiting for Action
b
what error?
s
It’s a suitescript error that my script throws. Like invalid value 123 for field “entity”
but it happens only via CSV and via the UI it works fine
b
you wont get anything from the debugger, it only runs for events that you trigger
s
That’s what i thought. But user event scripts are triggered by the CSV context so that’s a shame that we cannot appropriately debug it 😞
b
invalid values for one user and not the other usually comes down to classification
s
I mean I’m the one processing both scenarios. Run the script via edit/save Run the CSV just to trigger the script
b
so make sure you are validating against the ui using the same role/user used for the csv import
you may also just want to make the user event run as administrator to rule out role related issues
although you usually wouldnt want to keep it that way
s
Yeah, sadly the script is also already executing as Administrator. Might be a defect because it’s for creating an Advanced Interco JE
b
what does the code look like