hi - trying to load a product and its timing out -...
# suitescript
g
hi - trying to load a product and its timing out - any ideas ? tried this with the internal id
Copy code
var item_parent = RECORD.load({
                    type: 'item',
                    id: parseInt(parentID)
                })
and this with the sku
Copy code
var item_parent = RECORD.load({
                    type: 'item',
                    id: parentSku
                })
any suggestions are appreciated... Thanks
b
that should straight up error, not time out
g
getting time out tho {"type":"error.SuiteScriptError","name":"SSS_USAGE_LIMIT_EXCEEDED","message":"Script Execution Usage Limit Exceeded","stack":["createError(N/error)","processFile(/SuiteScripts/amazon_vc_852_import.js:229)","downloadFile(/SuiteScripts/amazon_vc_852_import.js:174)","execute(/SuiteScripts/amazon_vc_852_import.js:257)"],"cause":{"type":"internal error","code":"SSS_USAGE_LIMIT_EXCEEDED","details":"Script Execution Usage Limit Exceeded","userEvent":null,"stackTrace":["createError(N/error)","processFile(/SuiteScripts/amazon_vc_852_import.js:229)","downloadFile(/SuiteScripts/amazon_vc_852_import.js:174)","execute(/SuiteScripts/amazon_vc_852_import.js:257)"],"notifyOff":false},"id":"","notifyOff":false,"userFacing":false}
b
well, that error is related to running out of points
which is unlikely to be caused by the code you shared
g
but nothing i am doing in this script uses points
b
that sounds questionable
at the very least, RECORD.load uses points
g
oh actually thanks!!!!!
the loop is not stopping
and im just looking at last log when i come check
really that is the error, im getting the product and out of points
thanks!