Article - CS321502

"Execution of Script terminated after : <~ScriptTimeout> seconds" is seen after executing a Service on ThingWorx Platform

Modified: 03-Jun-2026   


Applies To

  • ThingWorx Platform 8.5 to 10.1

Description

  • ThingWorx Service times out after 30 seconds
  • Custom function expected to take an extended period of time to execute (such as waiting on the database) times out in ThingWorx Platform
  • Querying session audit logs via custom endpoint does not work in ThingWorx Platform
  • Fail to batch create multiple things using Thing's service with Timeout error; how to change the service Script Timeout in ThingWorx
  • Services run extremely slow and time out when querying more than 1000 lines
  • Service timeout occurs when fetching large amounts of change data from REST API
  • Slowness observed in ThingWorx after upgrading from previous version
  • Slowness in loading runtime UI components with data such as grids, dropdowns, and charts
  • ThingWorx Service fails with the following error shown in Composer
    • Error executing service. Message ::Execution of Script terminated after : <~ScriptTimeout> seconds. Timeout configured for <ScriptTimeout> seconds. - See Script Error Log for more details
  • ThingWorx Platform ApplicationLog.log located in <ThingworxStorage>\logs shows the following:
    • [L: ERROR] [O: c.t.w.Things] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-8443-exec-<Thread>] Execution of Script terminated after : <~ScriptTimeout> seconds. Timeout configured for <ScriptTimeout> seconds.
      [L: WARN] [O: c.t.w.BaseService] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-8443-exec-<Thread>] Transaction has been marked as a failure for request /Thingworx/Things/<Entity Name>/Services/<Service Name>
This is a printer-friendly version of Article 321502 and may be out of date. For the latest version click CS321502