ANS-1177 · SUITESCRIPT DEVELOPMENT

Why is Logging Not Working for Client Scripts in NetSuite Suitelets?

Discover the specific condition under which client scripts linked to NetSuite Suitelets will not produce expected system logs.

Short answer

When a client script is created without any deployment and subsequently added to a NetSuite Suitelet form using the addScript function, the system will not perform any logging for that script. This behavior is specific to scripts that lack a formal deployment record, impacting debugging and monitoring efforts within Suitelets.

Scenario

Users may encounter situations where client scripts intended to run on NetSuite Suitelet forms do not produce expected system logs. This typically occurs when a client script is dynamically added to a Suitelet form using the addScript function. The absence of logging can hinder debugging and troubleshooting efforts for script behavior within the Suitelet environment.

Solution

It is important to note that when a client script is created without any formal deployment record and is subsequently added to a Suitelet form using the addScript function, the system will not perform any logging for that script. This behavior is a characteristic of client scripts that are not deployed through standard NetSuite deployment records but are instead directly attached to Suitelet forms.

Expert NetSuite Support

Need help with this NetSuite issue?

SuiteScript Development consulting and configuration support

Talk to a consultant