Skip to main content

Data Migration To NAV 2013 R2 - Error in Step 2.

Hi All,

It's been a while that i haven't blogged anything.

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 database in NAV 2013 R2.

When we open our database in NAV 2013 R2 and import customized objects and then try to Run the NAV 2013 R2 Client, it behaves in an unexpected manner. Instead of opening the client it 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..


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.

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

With NAV 2013 R2 now when we change an objects in NAV it connect 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 -

Actually its not an issue its just the time that SQL Required to update the metadata of the tables. So here 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 actual 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 & After conversion to NAV 2013.

Stay tuned for more.

Saurav Dhyani


Popular posts from this blog

Send Mail with Attachment From Navision.

Hi all, We have seen how to save a report into PDF and how to send mail to a customer. Let's link these two post in one i.e. Mailing statement to a customer into PDF Format. This article is part of the Series. Please Refer  Table of Content here . If you have the old objects set let me brief you what I will be changing - 

Dynamics 365 Business Central 2021 release wave 2 (BC19) Released.

Hi Readers, As we all were expecting Microsoft have Released Business Central 2021 Release Wave 2 Today a.k.a BC19. In this article we will see what all is announced with the General Availability.  Starting Today Customers & Partners can start using Business Central 19. #msdyn365bc #bc19

Error After Restore SQL Backup of NAV 2013 Database

Hi all, we are facing a conman issue during restoring a SQL Database backup restored for NAV 2013. While Trying to run object from Object Designer we get below listed error (even the service is configured properly) - --------------------------- Microsoft Dynamics NAV Development Environment --------------------------- There are no NAV Server instances available for this database. You must ensure that a NAV Server instance is running and is configured to use the database before you perform this activity. --------------------------- OK    ---------------------------