It passed testing. It will still cause problems.

Your SuiteScript has problems you haven't found yet.

SuiteLens is a VS Code extension that scans your SuiteScript for governance issues, overloaded User Events, and the quiet failures that only show up when real users hit real data at real volume.

Download for VS Code View source on GitHub
SuiteLens scanning SuiteScript inside VS Code, showing governance findings

The patterns that ship through code review and break in production.

Every rule exists because it has caused a real problem. These are the things that work fine in sandbox and fail when your data grows.

Critical

Record loads inside loops

Each record.load() costs 10 governance units. Inside a loop processing 500 records, the script runs out of governance and stops mid-execution.

Critical

Search calls inside loops

Running search.create() per-record instead of batching. Works with 50 records in sandbox. Fails with 12,000 in production.

Critical

API calls inside loops

HTTP requests to external systems inside a record loop. One slow response and the entire run times out.

Warning

Overloaded User Events

Heavy logic in beforeSubmit because "it runs on save." Until every user waits 8 seconds to save a record.

Warning

Unbounded search results

.run().each() with no result cap. Works until the table grows past 10,000 rows and results start getting truncated silently.

Warning

Full record saves

Calling record.save() when only one field changed. Triggers every User Event, workflow, and integration on that record again.

Warning

Missing idempotency

No guard against re-execution. Script re-runs create duplicate records or fire webhooks twice.

Warning

Hardcoded internal IDs

Works in production, breaks in sandbox, breaks again after the next account refresh. IDs change between environments.

These issues are quiet until they aren't.

The script ran fine last time. That doesn't mean it's reliable. It means you haven't hit the conditions that expose the problem yet.

Governance failures

Scripts stop mid-execution. Half the records process, the other half don't. Nobody gets notified. Finance finds out two weeks later.

Quiet data problems

Missing error handling means failures don't throw. Records save with incomplete data. Reports look fine until someone audits the numbers.

Integration gaps

A loop that worked at 200 records fails at 2,000. The external system times out. Retry logic doesn't exist. Orders stop syncing.

Slower user experience

Overloaded User Events add seconds to every save. Users start working around the system. Data quality follows.

Install. Right-click. See what needs attention.

No accounts. No configuration. No cloud dependency. Runs locally in VS Code against your SuiteScript files.

01

Download the .vsix

One file. No npm install, no build step.

02

Install in VS Code

Extensions → ... → Install from VSIX.

03

Right-click your script

Review an entire file or just a selection. Results appear in a side panel.

04

Fix what matters first

Findings ranked by severity. Each one explains what's wrong and why.

Find out what's hiding in your SuiteScript.

Free, open source, built by consultants who work in production NetSuite environments.

Download SuiteLens View source on GitHub

Need an environment-level scan?

SuiteLens checks individual scripts. SuiteRX scans your entire NetSuite environment — scripts, security, roles, integrations, and configuration — with 47+ automated checks.

Learn about SuiteRX →

Need hands-on help?

Adaptive Solutions Group builds and fixes NetSuite environments. SuiteScript development, integration work, and the kind of cleanup that needs someone who's done it before.

Talk to our team →