Skip to main content

Microsoft Dynamics NAV 2016 - Data Upgrade Error There is no active session within Filter.

Hi All,

In this article we will discuss how to resolve an issue that you may find during Upgrade to Microsoft Dynamics NAV 2016 Upgrade Step 2.


The Error does not allow you to start the Data Upgrade process and the Complete Error Message is -

SessionId : 0
CodeunitId : 104050
FunctionName : CheckPreconditions
CompanyName : <Companyname>
StartTime :
Duration :
State : Failed
Error : There is no Active Session within the filter.
Filters: Server Instance ID: 1024, Session ID: 74



So let's First try to understand why this Error Message -

  • If you know Events and Subscription have been Released with Microsoft Dynamics NAV 2016 which allow you to customize (Extend) Microsoft Dynamics NAV without modifying Standard Code Base.
  • You Might have upgraded the Code Base from previous Version using Events and Subscriptions, which might be subscription Standard Codeunit 1 Events Like Open Company.
  • Your Customer Might be using a Addon / Vertical which have Code using Events and Subscriptions,which might be subscription Standard Codeunit 1 Events Like Open Company.
Codeunit 1 is being called behind the scene, when you start the Data Migration Step 2. So If it have been subscribed and that custom code if end up with an error message then you will receive that error message in the Powershell When you look for upgrade Error.

I don't mean that you cannot (should not) use Events and Subscription. I always use Events and Subscription and suggest everyone to use it.

How to Resolve this Error Message - 
  • From Tools - Debugger, Open Event Subscriptions.

  • Filter For Codeunit 1 - Publisher Object Type - Codeunit, Publisher Object ID - 1.

  • Check Subscribers, if it is a Custom / Addon Object Delete it From Object Designer.
  • From Tools - Run Sync. Schema For All Tables - With Validation.
  • Run Upgrade Step 2 Again.
  • After Upgrade Process is complete, Re-import all objects Removed in Step 3.
Hope this helps you. Stay Connected, Yet More to Come.

Regards,

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

BC 21 and Higher - PowerShell Cmdlet (Replacement of Business Central Administration).

Hi Readers, As discussed in last article about deprecating of Business Central Administration, there are few common actions that we use in administration till Business Central 20. For our on-prem customers, we will still require doing activities. As Microsoft suggest we need to start using PowerShell cmdlet.    Let's see how to do those via PowerShell, or Administration Shell. I will be keep adding commands as you comment to this article.

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 -