Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
Script Execution Time Limits
According to this page:
NetSuite Applications Suite - Script Execution Time Limits (oracle.com)
A scheduled script should be able to run for 3600 seconds = 1 hour
I have a complicated search that I am unable to run in a Suitelet because it kept timing out (Suitelets are listed at 300 seconds = 5 minutes).
However, my Scheduled Script is also timing out. Looking at the error in detail, it is:
{"type":"error.SuiteScriptError","name":"ABORT_SEARCH_EXCEEDED_MAX_TIME","message":"This search has timed out. You can choose to schedule it to run in the background and have the results emailed to you when complete. On the saved search form, click the \"Email\" tab, check \"Send According to Schedule\", choose an email address on the \"Specific Recipients\" subtab and a recurrence pattern on the \"Schedule\" subtab.","stack":["createError(N/error)","execute(/SuiteScripts/ManagementAccountsKPI22Email.js:4325)"],"cause":{"type":"internal error","code":"ABORT_SEARCH_EXCEEDED_MAX_TIME","details":"This search has timed out. You can choose to schedule it to run in the background and have the results emailed to you when complete. On the saved search form, click the \"Email\" tab, check \"Send According to Schedule\", choose an email address on