• Michael Intravartolo

Data Migration To NAV 2013 R2 - Error In Step 2

Today I would like to discuss an issue raised to me by most of the readers that they face during Data Migration in Upgrade Activity. The error message occurs before step two after opening the database in NAV 2013R2

When we open our database in NAV 2013 R2 and iimport customized objects and then try to run the NAV 2013 R2 client, it behaves in an unexpected manner. Instead of opening the client is says:

The operation could not complete because a record in the <<>> table was locked by another user. Please retry the activity


A connection to the server has been established, preparing your work space.


Fields cannot be found in Marketing setup.

The Reason

Due to introduction of Multitenancy in NAV 2013 R2 there is a slight change in Process of Updating the metadata (structure) of Table in SQL Server.

Until NAV 2013, when we add/remove/modify a field in table it used to directly connect to server and update the metada in SQL

With NAV 2013 R2 now when we change an object in NAV it connects to service and service then update to SQL Server. For this we also need to make sure that the value in service for Field SQL Command Timeout is set to 24:00:00 as shown below.

How To Resolve

Acutally its not an issue its just the time that SQL required to update the metadata of the tables. So here's what we should do:

1. After importing merged objects in NAV 2013 R2 Run Sync - Tenant

2. Once the Sync - Tenant is completed run below query on SQL.


--Author: Saurav Dhyani

--Create date: 12-11-2014

--Description: Query to Check Operation in a Database

--Change the <<Database Name>> with actualy database name

select spid,cmd,waittime,lastwaittype,cpu,physical_io,login_time,last_batch,status,hostname,program_name,nt_username, nt_domain from master.dbo.sysprocesses where dbid = db_id('<<Database Name>>')


The query will show you multiple rows with same or different program_name as shown below

SQL is still in process of updating the metadata until you see cmd for all rows as awaiting command.

Once completed we are good to go and start Navision Client.

Good to Have:

1. During data migration always keep a backup after completion of Step 1 and after conversion to NAV 2013.

Stay tuned for more!

Saurav Dhyani


Contact Us

Solution Systems, Inc.

3201 Tollview Dr. 

Rolling Meadows, IL 60008

Office: 847-590-3000

Email: info@solsyst.com

Support: 224-345-2020

Support Email: support@solsyst.com

Connect With Us
  • Manufacturing Software | Illinois
  • Manufacturing Software | Illinois
  • Manufacturing Software | Illinois
  • Manufacturing Software | Illinois
  • Manufacturing Software | Chicago
  • Manufacturing Software | Illinois
  • Microsoft Business Podcast
  • Manufacturing Software | Chicago
  • Manufacturing Software | Chicago
  • Manufacturing Software | Chicago
Join our Mailing List

© 2020 Solution Systems, Inc.