I got a `SSS_USAGE_LIMIT_EXCEEDED` error on a User...
# suitescript
d
I got a
SSS_USAGE_LIMIT_EXCEEDED
error on a User Event script running on an invoice in my production account. The error message did not indicate the internal ID of the invoice record on which the script failed. How can I find the affected invoice number? In terms of the cause, I'm guessing the invoice had too many line items and the script's attempt to process it exceeded the governance limit. I am also aware that this script probably should have been written as map/reduce but I was not the one who wrote it.
m
Without the ID being logged, I think you would be best suited by looking at the criteria of the script and trying to backtrack to the invoice.
d
@mightyd3 Is it easy to get the transaction ID to be logged? I'm not a developer so I don't have a sense of how easy of an update this would be.
m
Depends on the script, obviously, but you could add a log debug line after the record is loaded in the script that logs the ID to the execution log, if the script deployment log level is set to Debug.
(its easy, but it isn't easy to help without seeing the script and the variables associated, etc)