VVamshi P
Case Study ERP Migration 5 min read · 2026-03-13

When You Leave NetSuite, Don't Leave Your Audit Trail Behind

When a company moves off NetSuite, transaction data gets migrated — but what about the attachments auditors actually ask for? A real-world case on structured document archival during ERP migration.

VP
Vamshi P
|
Domain: NetSuite SuiteScript
|
Scope: Transactions + Entities
Client Situation
Leaving NetSuite
Risk
4,000+ unstructured files
Solution
Structured archive via SuiteScript
Outcome
Audit-ready on day one
"Most ERP migrations move the numbers. Very few preserve the evidence behind them."

A gap no one planned for

The client had made the decision: NetSuite was out, a new ERP was in. The migration team mapped every transaction, every customer record, every open balance. The go-live looked clean.

But no one had asked what would happen to the File Cabinet — the thousands of attachments accumulated over years of operations. Vendor invoices. Purchase order scans. Customer agreements. Payment confirmations. All sitting inside NetSuite, completely outside the migration scope.

Once NetSuite was decommissioned, access to those files would be gone. And in the event of a tax audit or regulatory review, those files are exactly what gets requested first.


An unstructured export helps no one

A bulk export without organisation would produce thousands of files with no context, no traceability, and no way to find anything under audit pressure.

!
Attachments existed only inside NetSuite — no external copy, no backup anywhere
!
A flat export would generate thousands of unnamed, unlinked files
!
No mapping between exported files and their originating transactions or entities
!
Auditor asks for a vendor invoice from 2023 — manual search through 4,000+ files
Archival must happen before the migration window closes. Once NetSuite access is revoked, recovering historical attachments becomes either impossible or extremely expensive.

Why auditors ask for attachments, not just data

Numbers in an ERP are a record of what happened. Attachments are the proof. When a tax authority reviews a purchase transaction, they ask for the vendor invoice, the purchase order, the delivery note — the exact files stored as attachments in NetSuite.

RegionFrameworkRetention Period
IndiaCompanies Act8 years
United StatesIRS Guidance7 years
European UnionVaries by country6–10 years

An ERP migration does not pause these obligations. The company is still legally responsible for producing historical documents years after the system change — regardless of which ERP they are now running.


Structure that makes retrieval obvious

Instead of exporting files and hoping for the best, we designed a hierarchical folder structure that mirrors how the business actually thinks about its records — by entity, year, month, and transaction.

Before — Raw Export

A flat pile of files. No vendor, no date, no transaction reference. Finding anything requires manual search.

📁 Export/ file_001.pdf scan_002.pdf invoice_copy.pdf doc_final_v2.pdf attachment_778.pdf ... 4,000+ files
After — Structured Archive

Every file traceable by entity, date, record type, and transaction ID. Navigation is direct and obvious.

📁 Customer_ABC/ └── 2026/ └── March/ └── PO_12345/ ├── invoice.pdf ├── receipt.jpg └── agreement.pdf

Built on SuiteScript, designed for scale

The solution was built entirely within NetSuite using SuiteScript to automate folder creation, file extraction, and archive organisation — before the decommissioning window closed.

Script TypePurpose
Map/Reduce ScriptBatch processing of large record volumes across all transaction types
Scheduled ScriptChunked, governance-safe export runs within NetSuite limits
RESTlet / SuiteletTriggering export runs and monitoring progress in real time
A mapping log was maintained between NetSuite Internal IDs and exported file paths — so every archived file can be traced back to its originating record even without NetSuite access.

Two categories, fully covered

CategoryWhat It CoversStatus
Transaction AttachmentsPurchase Orders, Invoices, Bills, Journals, and all related transaction records✓ Delivered
Entity AttachmentsFiles stored directly on Customer and Vendor master records✓ Delivered

What the client gained

01
Audit Readiness
Documents accessible long after NetSuite is retired — no scramble when the auditor calls years later
02
Direct Navigation
Entity → year → month → transaction. Find any file in under 30 seconds with no search tools required
03
ERP Independence
The archive works without NetSuite — compatible with any system, drive, cloud storage, or auditor portal
04
Zero Migration Risk
All files captured before the cutover window closed — nothing left behind during the transition

Storage options

The same folder structure works across different storage targets depending on the client's infrastructure:

1
Local or Network Drive Ready immediately
Simplest approach. Folder hierarchy created as-is on disk — easy to verify, hand off, or mount on any machine.
2
Cloud Storage (S3 / Azure Blob / GCS)
Use the folder path as the object key prefix. Scales to any volume with granular access controls and long-term retention policies.
3
Celigo Integration Requires testing
Orchestrate the export through Celigo once cloud credentials and database connection details are confirmed.
The local/network drive approach is confirmed working and can be used immediately. Cloud integration via Celigo requires a test run once the client shares connection details.

The lesson for every ERP exit

Transactional data gets all the attention in an ERP migration — and rightly so. But the attachments behind those transactions are the ones regulators and auditors actually care about.

A structured archival strategy adds limited effort to a migration project. The cost of not having one — when an auditor comes looking for a 2022 vendor invoice three years after you've left NetSuite — is significantly higher.

"Good ERP exits don't just move data forward. They protect the evidence of everything that came before."