Meir Bulman

Meir Bulman

Accounting Practice Leader

Quick Tip: NetSuite “Overwrite Sublists” for Journal Entry CSV Imports

NetSuite Quick Tips

Tags:

Hat tip to my colleague Boban for this one!

CSV transaction imports in NetSuite offer an option to “overwrite sublists” when you are updating transactions. This is a useful way to avoid trying to target specific transaction lines to be updated. See SuiteAnswers article 31848 for more details on how to use this feature.

AI Summary:

Updating journal entry lines by CSV import requires the Overwrite Sublists preference, and when the import fails with a duplicated key error, adding a blank line id column mapped to Line Id resolves it.

Using the feature on Journal Entries (or custom transaction types of the “Journal” style) is documented in SuiteAnswers article 105561, but there seems to be an additional step that I haven’t yet been able to find documented:

If you attempt to update a Journal Entry and select “Overwrite Sublists” as described in the above-referenced articles, the CSV import sometimes fails with the following error:

“This record contains duplicated key or keys. Please correct it before next update.”

After much frustration and failed troubleshooting attempts, I reached out to my teammates at Prolecto, and Boban gave me the following advice:

“Add another column to the file and call it ‘line id’, and leave that column blank in the file. Map it to “Line Id” in the Lines mapping.

This worked perfectly! The surprising part about that is that according to SuiteAnswers 105561, Journal Entries cannot be updated at the specific line level, and the only option is to overwrite sublists. Here’s the wording:

Note: Updating individual lines/Journal Lines in general for Journal Entry can only be done with the Overwrite Sublist Preference= True during CSV Import.

I have not been able to determine if the blank line id fix is always needed, or if there was something unique in my import or environment that required this.

Frequently Asked Questions

How do I fix the duplicated key error when updating journal entries by CSV import?

Add a column named line id to the file, leave the column blank, and map it to Line Id in the Lines mapping, together with the Overwrite Sublists preference. That combination cleared the error for me.

Meir Bulman LinkedIn

Meir Bulman

Meir is a CPA and certified NetSuite ERP Consultant who is a senior NetSuite consultant and Accounting Practice Lead with Prolecto Resources, Inc. His combined Accounting expertise and deep NetSuite knowledge, aided by a technical aptitude, provide valuable perspective into the real-world business needs of the NetSuite user community.

BiographyYouTubeLinkedInX (Twitter)

Leave a Reply

Your email address will not be published. Required fields are marked *