NetSuite addSourceList(): Ordered Bank Files in 2026.2
Implement ordered bank statement file selection with NetSuite 2026.2 addSourceList(). Handle the cycle-wide 100-file limit, retain deferred files, and prevent duplicate submissions in your connectivity plug-in.
NetSuite addSourceList() lets a Financial Institution Connectivity Plug-in select bank statement files and control their processing order in NetSuite 2026.2. Treat selection separately from content retrieval, and maintain your own tracking for deferred files and duplicate prevention.
TL;DR: Submit an ordered list through context.addSourceList() inside getTransactionSources(). NetSuite requests each selected file through getTransactionData(), passing context.sourceName. The 100-file limit spans every call in one import cycle; overflow is silently ignored. Your plug-in must retain deferred files and prevent duplicate submissions.
Prerequisites
The Financial Institution Connectivity Plug-in interface uses SuiteScript 2.0. Both entry point scripts and supporting libraries must use SuiteScript 2.0. Create and upload the plug-in script file together with any required utility files, and preserve the interface’s defined function names, parameters, and return types when customizing its logic.
To run the plug-in, configure and save a format profile that uses it. Working with a Bank Statement Parser Plug-in enables bank-data imports for reconciliation. ZIP retrieval is supported only when that parser can handle the files. The connectivity plug-in does not let you add IP addresses to an allow-list; do not assume that capability is available during deployment.
Review the surrounding interface with the Financial Institution Connectivity refresh guide. If the connection needs credentials, review API secrets management for banking integrations separately from selection logic. NetSuite itself does not request or store those credentials, but permits the plug-in to save them securely through a third-party service or customization.
How does NetSuite addSourceList() select and order files?
Think of selection as a promise that the plug-in can later resolve every submitted name to the intended file. addSourceList(options) identifies files; it does not submit their contents. Its parent is the context supplied to getTransactionSources(), its declaration is function addSourceList(options), and its return value is void.
NetSuite processes selected files in the supplied order. For each file, it invokes getTransactionData() and supplies the corresponding name through context.sourceName. Your retrieval logic then supplies that file’s contents through addDataChunk() during that invocation.
A correctly ordered list is therefore not proof that retrieval will work. Before enabling selection for a larger backlog, verify that every submitted name resolves to the intended file. Because NetSuite preserves names, retrieval should use the exact submitted value rather than assume normalization.
Submit an ordered source list
All three elements below are available since NetSuite 2026.2.
| Parameter | Type | Required | Implementation requirement |
|---|---|---|---|
options |
Object |
Yes | Contains the source list. |
options.sourceList |
Object[] |
Yes | Ordered array of file-identifying objects; the 100-file cap spans all calls in one import cycle. |
options.sourceList[].name |
String |
Yes | Contains at least one non-whitespace character and does not exceed 255 characters; NetSuite preserves the name. |
Build the intended order before submission. Decide which eligible files belong in this cycle, arrange them in processing order, and apply the cycle-wide cap before sending the list.
Validate every options.sourceList[].name. Test empty names, whitespace-only values, and the 255-character boundary. Keep invalid candidates out of the submitted batch, and separately verify that valid names identify retrievable files.
Submit the list through the getTransactionSources() context:
context.addSourceList({sourceList: [
{name: 'bank-transaction-01.csv' },
{name: 'bank-transaction-02.csv' }
]});
This requests bank-transaction-01.csv before bank-transaction-02.csv. During each corresponding getTransactionData() invocation, resolve context.sourceName to that file and supply its contents through addDataChunk().
The example demonstrates selection, not a complete plug-in or bank-specific retrieval implementation. Keep those responsibilities separate in tests: first assert the ordered names, then confirm that each exact name resolves to the correct contents. Existing chunk-size limits still apply to content delivery; addSourceList() does not replace addDataChunk().
Does the 100-file limit apply per call or per cycle?
The limit applies to the entire import cycle. Multiple calls do not create separate allowances. Entries beyond the first 100 are ignored without an error in Bank Import History or the logs.
If different parts of your implementation contribute candidates, budget their combined count against one cycle-wide selection. Splitting a backlog across calls does not increase capacity:
| Submission in the same cycle | Entries supplied | Entries processed | Entries requiring later selection |
|---|---|---|---|
| First call | 70 | 70 | 0 |
| Second call | 50 | 30 | 20 |
| Cycle total | 120 | 100 | 20 |
A safer design selects only the intended first 100 and keeps the remaining 20 pending. Otherwise, tracking can confuse “offered to the interface” with “selected for processing.” An absence of errors cannot establish that every offered file was processed.
For a separate review of bank-import error handling, see standardized bank import error codes. Error monitoring cannot substitute for pending-file tracking here because overflow is explicitly silent.
Retain deferred files for later cycles
The plug-in or SuiteApp must supply files excluded by the cap during later import cycles. Do not rely on automatic carry-forward.
For the 120-file example, prepare an ordered batch of 100 and retain 20 as pending. On a subsequent cycle, include those pending files according to your selection policy. The goal is not merely to stay under the cap: every intended file must remain eligible until selected.
Check what happens when new files arrive between cycles. A policy that always favors new arrivals can repeatedly leave older files behind. As an implementation recommendation, track the intended batch and remaining backlog separately, then compare both after each cycle. This helps distinguish an intentionally deferred file from one that disappeared from selection unexpectedly.
The tracking storage design belongs to your implementation. The important distinction is between a file retained for later selection and one already submitted. A deferred file must not be suppressed merely because discovery encountered it in an earlier cycle.
Prevent duplicate submissions across cycles
Duplicate file names are accepted by the interface. Preserving a name does not make it unique, and acceptance does not establish that a file has never been submitted before.
Keep a cross-cycle record of submissions and use it when constructing the next list. Distinguish deferred candidates from previously submitted files: the former still need selection, while the latter must not be selected again unintentionally. If an intentional retry is needed, make that an explicit implementation decision rather than allowing unchanged discovery results to trigger another submission automatically.
Submission tracking and evidence of content delivery answer different questions. A record that a name was submitted supports duplicate prevention, but is not independent proof that its contents were retrieved. Structure operational review around both questions:
- Was this file selected for the cycle?
- Was the requested content supplied during retrieval?
Test consecutive cycles against the same available files. Previously submitted files should not reappear unintentionally, while deferred files should remain eligible. This is especially important when a backlog spans several cycles: duplicate suppression must not accidentally exclude files retained but never selected.
Verify selection, retrieval, and empty-list behavior
Use controlled tests before relying on the integration for a larger backlog.
| Test | What to verify |
|---|---|
| Two-file selection | Processing follows the supplied order, and each context.sourceName matches the submitted name. |
| Name validation | Empty and whitespace-only names are excluded; names respect the 255-character maximum. |
| Content retrieval | Each requested name resolves to the intended file, whose contents are supplied through addDataChunk(). |
| Multiple calls | The 70-plus-50 example does not receive two separate 100-file allowances. |
| Deferred backlog | Production selection retains overflow and makes it eligible in a later cycle. |
| Repeated discovery | Unchanged available files do not cause unintended duplicate submissions. |
| Empty selection | Bank Import History reports success with no files selected, and getTransactionData() is not invoked. |
For administrator and reconciliation handoff, explicitly distinguish “successful with no files selected” from an import that retrieved statement data. Compare intended selections, retrieval observations, prior submissions, and pending files—not just the success indicator.
An empty-list success can be an expected outcome, but it answers a different question from successful content retrieval. Likewise, a cycle without errors does not prove that every offered file fit within the cap. Monitoring should preserve those distinctions rather than collapse them into a single success status.
FAQ
Does each addSourceList() call get a 100-file allowance?
No. NetSuite processes up to 100 files across all calls in one import cycle. Additional entries are silently ignored without an error in Bank Import History or the logs.
How does the plug-in identify the requested file?
NetSuite passes its name through context.sourceName when invoking getTransactionData(). The plug-in retrieves that file and supplies its contents through addDataChunk() during that invocation.
Who handles deferred files and duplicates?
The plug-in or SuiteApp must supply remaining files in later cycles and prevent duplicate submissions. The interface accepts duplicate names; it does not provide duplicate prevention for the implementation.
What happens with an empty source list?
NetSuite creates a successful Bank Import History record indicating that no files were selected. It does not invoke getTransactionData().
Related reading
Advertising
Reach Banking Professionals
Put your product in front of NetSuite experts who work with Banking every day.
Sponsor This Category