Are You Using Copy & Paste in Dynamics NAV? You Should!

by | Updated March 30, 2018 | Dynamics NAV

Our support team is frequently asked to develop import functions to pull Excel data into Dynamics NAV. In some cases, the development of dataports or XMLports is necessary, however, as an alternative, I increasingly see users taking advantage of copy and paste in Dynamics NAV. Copy and paste has been enabled since the Dynamics NAV 2013 release and is most commonly used for populating journals. Once data is copied from Excel, right-clicking in the leftmost cell of the first row of an empty journal should yield the “Past Rows” option within NAV.

Copy & paste in NAV2017

Tips and best practices for Copy and Past in NAV I’ve compiled over the years:

1) Excel columns must mimic the NAV page columns you are pasting into

NAV assumes that the data copied from Excel will have both the same columns and column order as the NAV page you are pasting into.

2) Header information should not be pasted

NAV is not expecting a header row from Excel. Copy raw data only. For example, row 1 below should not be copied from Excel.

Copy & paste in NAV2017

3) Let NAV do the heavy lifting

Because NAV now validates each field that you paste into it, there is a lot more going on than you may think as the paste occurs. A few examples:

a. NAV won’t let you paste bad data into it. For example, NAV would throw an error if you tried to paste descriptive text into the “Account No.” field since no such account exists. In the example below, I’ve mistakenly tried to paste the text “APPLE” into the “Account No.” column of NAV’s general journal.

Copy & paste in NAV2017

b. NAV will give a warning if you are trying to paste more characters than are allowed per a given field. In the example below, I’m trying to paste 60 characters of text into NAV’s 50-character “Description” field. Note that NAV will give notification prior to truncating your data.

Copy & paste in NAV2017

As a general rule, organize your Excel columns in the same order that you’d manually enter data into the NAV journal because the system will validate your data from left to right. For example, you’d want the “Account Type” column positioned to the left of the “Account No.” column in Excel. This way NAV is aware of what type of account (G/L Account, Customer, Vendor, Bank, etc.) you are passing into the “Account No.” field.

Also, consider a case where you want to control the dimension values within the journal. Because NAV will try to automatically set dimension values based on default dimension rules as fields are validated, you’d want to make sure to place the dimension columns to the right (the end) of the Excel file. That way, the dimensions of your file will trump any other dimension values that were set during validation of earlier fields.

Under the covers, NAV will autofill other relevant fields as it validates pasted data. Consider a case where a customer number is pasted into the “Account No.” column of a journal. Due to validation code, NAV will also automatically populate many other fields relevant to that customer (description, payment method, customer posting group, payment terms, etc.).

4) What to do if you don’t see “Paste Rows” as an option

If you run into a situation where the “Paste Row” option is not visible, this most likely indicates that the PasteIsValid table property needs to be changed in the underlying table. This setting can easily be changed by your NAV support resource.

Copy & paste in NAV2017

Related Posts

0 Comments

Submit a Comment

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

Upcoming Events

august

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug12:00 pm1:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X