SuiteScript 1.0 to 2.1 Migration: The Risks We Plan For
Short answer
The riskiest parts of a move to SuiteScript 2.1 are client scripts and code that the next NetSuite update can break. Rebuild each script around today's workflow, test the old and new versions side by side in a sandbox, and wrap each action in one layer you can update.
NetSuite is moving every script to SuiteScript 2.1. Its 2026.2 release notes say "NetSuite is phasing out SuiteScript 1.0, SuiteScript 2.0, and 2.x versions over multiple releases." For release 2028.2 they add: "Legacy script versions will no longer run." The older scripts in your account run steps your team relies on, such as approvals, price checks and feeds to other systems.
We bring 100+ scripts of migration experience since 2021, across client, user event, scheduled, Suitelet and RESTlet scripts.
The Oracle timeline
Oracle gives the timeline by release number, not by calendar date.
| Release | What Oracle says |
|---|---|
| 2026.2 | "NetSuite is phasing out SuiteScript 1.0, SuiteScript 2.0, and 2.x versions over multiple releases." |
| 2027.1 | "SuiteScript 1.0 enters end-of-life support, covering critical issues only." |
| 2028.1 | "SuiteScript 1.0 scripts can no longer be deployed in new accounts but remain deployable in pre-existing accounts. SuiteScript 2.0/2.x scripts run as SuiteScript 2.1 by default." |
| 2028.2 | "All new and existing scripts must use SuiteScript 2.1. Legacy script versions will no longer run." |
The four rows quote the NetSuite 2026.2 release notes. Oracle's Transitioning To SuiteScript 2.1 guide words the last row more cautiously and says support for legacy versions "is expected to be removed in NetSuite 2028.2". Oracle's guide to moving from 1.0 already states the rule for all scripts: "You must use SuiteScript 2.1 for all new and existing customizations."
Client scripts take the most work
Client scripts run in the browser while someone works on a record, and of the five types we migrate they are the hardest. They lean on many custom helper scripts and on UI libraries that nobody documented. To rebuild those screens we use our internal UI library, which looks almost the same as NetSuite's interface and runs anywhere.
Client scripts were also the only type where we saw a big difference in performance. Some 1.0 client scripts used a hidden fast-edit behaviour for sublists, the line-item tables on a record, and SuiteScript 2.x has no equivalent. Where a screen relies on that speed, we add a fallback for that use case, in case a NetSuite update breaks it.
A straight copy carries the old workarounds across
A 1.0 script has to be rewritten, because 2.1 replaces the old global functions with modules. Since the code changes anyway, we agree with you what each script should do for the business now. Then we fix potential issues, clear bottlenecks and settle open business requirements in the same pass.
A script change is also a good time to look again at the workflow behind it. Some older scripts chain several workaround steps to do a job that can be done more simply today. Long background tasks are one example. Copying the old process exactly is a habit we cover in three habits that sabotage your system, and it applies to scripts too.
Scripts from a third-party bundle or SuiteApp
We look for an alternative first. Where there is none, we rebuild only the parts that are necessary.
The new script passes review but behaves differently
Oracle says this of its own upgrade tool in Updating Scripts Using the SuiteScript Agent Skill: "Validation is a static migration check, not a substitute for functional testing."
We test in a sandbox. We run the old script and the new script, and our internal NetSuite toolkit automates the testing. We compare their behaviour, unexpected behaviour included, and aim for as close to a 100% functional match as we can get.
Where we find a genuine bug nobody knew about, or a better way to do the job, we raise it with you and change the script only once you agree.
The next NetSuite update breaks the script
For a cosmetics company in China, which we keep anonymous, the biggest worry before we started was breaking changes. In our experience, NetSuite updates break a script from time to time. We aim to resolve a breaking change before it happens, and we design for it in three ways.
- The code follows NetSuite's standard SuiteScript flow.
- Each action, meaning each moving part of the system, is wrapped in our toolkit. A change to an API the toolkit wraps can often be fixed in the toolkit rather than in every script. Some changes still need script edits and a retest.
- Wherever a script uses a third-party tool, it has a native fallback for when that tool breaks.
That project moved 35 scripts from SuiteScript 1.0 to 2.1. The hardest dependency was PDF generation. We tested with manual runs, then a thorough pass over every potential data type. The client checked the basics in the sandbox, signed off that the requirements worked and switched to the new scripts immediately.
The slow scripts were fixed. Moving to asynchronous code cut the wait time from more than 20 seconds to 0.25 seconds. Our biggest gains come from code that was very slow to begin with, and across our projects the average speed gain is 15%. We also found and removed several bugs, some already causing problems and some that had not surfaced yet. A new browser API removed a limitation the old workflow had.
AI speeds up the conversion, and a person reviews it
Our team's migration work started in 2021, without AI. Today AI and our internal testing toolkit make the conversion faster, with a person in the loop to keep the quality high. Oracle's own guidance is in Choosing A Migration Path: "you must review all generated code ... before using them in production". Every AI-assisted conversion goes through the same side-by-side test as the rest.
For NetSuite admins: what changes in the code
From 1.0: global functions become modules
Oracle's 1.0 transition guide says to "replace SuiteScript 1.0 global functions with the appropriate SuiteScript 2.1 modules". Some 1.0 functions have no "direct SuiteScript 2.1 equivalent", so those parts need a new design.
Oracle's September Monthly Release notes for 2026.2 add that you can "replace the script file on a SuiteScript 1.0 script record with a compatible SuiteScript 2.1 file". Test any file swap in a sandbox first.
From 2.0 and 2.x: the version tag and a test switch
Oracle's 2.0 transition guide says to "set the @NApiVersion JSDoc tag to 2.1" and warns that "some SuiteScript 2.0 capabilities function differently". Oracle lists them on its Differences Between SuiteScript 2.0 and SuiteScript 2.1 page. Test each script and fix any compatibility issues the test finds. Before you change any tags, an account-level preference lets you run "2.0 and 2.x server scripts in the SuiteScript 2.1 runtime without changing the @NApiVersion JSDoc tag", and you can turn it off again if a test fails.
Client scripts and records that run both versions
- Oracle's UI and Record Script Type Differences page says that in client scripts, SuiteScript 1.0 "
linenumstarts at 1, while SuiteScript 2.1linestarts at 0". Check every loop and index over sublist lines. - Oracle's SuiteScript 1.0 and SuiteScript 2.1 API and Language Differences page warns that when 1.0 and 2.1 scripts run on the same record, "a SuiteScript 1.0 variable named log or util causes an error". Rename those variables before the first 2.1 script goes live on that record.
- Oracle's SuiteScript 2.1 page says "SuiteScript 2.1 client scripts are not currently supported in the Scriptable Cart." Raise any Scriptable Cart script at the start of the project.
Scheduled scripts and long jobs
Oracle's Processing and Installation Script Type Differences page says: "For work that needs yielding, use a Map/Reduce script." Check any scheduled script that yields.
What 2.1 adds
On the server, the SuiteScript 2.1 runtime "supports ECMAScript 2023". Oracle's Differences Between SuiteScript 2.0 and SuiteScript 2.1 page adds that "The N/llm Module and the N/pgp Module are only supported in SuiteScript 2.1."
Sources
- NetSuite 2026.2 Release Notes, SuiteScript
- Transitioning To SuiteScript 2.1
- Transitioning from SuiteScript 1.0 to SuiteScript 2.1
- Transitioning from SuiteScript 2.0 to SuiteScript 2.1
- Enabling SuiteScript 2.1 at the Account Level
- SuiteScript 2.1
- Differences Between SuiteScript 2.0 and SuiteScript 2.1
- UI and Record Script Type Differences
- SuiteScript 1.0 and SuiteScript 2.1 API and Language Differences
- Processing and Installation Script Type Differences
- September Monthly Release, NetSuite 2026.2
- Updating Scripts Using the SuiteScript Agent Skill
- Choosing A Migration Path
See it in practice
Related case study: NetSuite script performance repair for a health and insurance provider