Discussions

Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
No Limits. Just possibilities.
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite 2026.1 Release Notes - This document summarizes the changes to NetSuite between 2026.1 and the previous release.

Have questions or experiences to share? Post your Release 2026.1 questions and join discussions in the Release 2026.1 category.
Try Intelligent Payment Automation – Fee Free For Your First Month

Intelligent Payment Automation, powered by BILL (formerly Bill.com), lets you automate payments, manage vendor details, and bank account information within NetSuite.

The SuiteApp is available to organizations based in the U.S. with a valid U.S. address, or to global customers (except Canada, China, and Japan) with U.S. business subsidiaries. It only supports payments to vendors operating in the United States.

For more information, visit this thread.

Help with customizing payment file template

edited Jun 2, 2025 2:51PM in Ask A Guru 4 comments

Hello,

We have a requirement to group payments in payment file based on the due date. I have achieved that. But bank and Entity details are fetched based on payment_index. So in the generated payment XML File, there is mismatch between payment and entity/bank details.

So I tried to use the following logic the payment file template

<#list ebanks?filter(p -> p.custrecord_2663_parent_vendor == payment.entity) as ebank>
<#assign entity = entities[ebank?index]>

</#list>

But get following error and the payment file is not generated

{"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":"An unexpected SuiteScript error has occurred","id":"f7a81a2b-9d9e-43d5-9068-88fb6b99fb2b-2d323032342e31312e3138","stack":["Error\n at Object.renderAsString (/SuiteBundles/Bundle 416781/src/lib/wrapper/9997_NsWrapperTemplateRenderer.js:42:30)\n at Object.generateFile (/SuiteBundles/Bundle 416781/src/app/9997_EPPaymentFileGenerator.js:34:48)\n at Object.execute (/SuiteBundles/Bundle 416781/src/comp/ss/9997_payment_file_generator_ss.js:148:63)"],"cause":{"type":"internal error","code":"UNEXPECTED_ERROR","details":"An unexpected SuiteScript error has occurred","userEvent":null,"stackTrace":["Error\n at Object.renderAsString (/SuiteBundles/Bundle 416781/src/lib/wrapper/9997_NsWrapperTemplateRenderer.js:42:30)\n at Object.generateFile (/SuiteBundles/Bundle 416781/src/app/9997_EPPaymentFileGenerator.js:34:48)\n at Object.execute (/SuiteBundles/Bundle 416781/src/comp/ss/9997_payment_file_generator_ss.js:148:63)"],"notifyOff":false},"notifyOff":false,"userFacing":true}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 1 (Jan-Mar 2026)

This Week's Leaders

This Month's Leaders

All Time Leaders