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

Welcome - Microsoft Dynamics 365!

Hi All, In this article we will discuss the new introduced member of Dynamics Family. Yes you heard it correctly, one more new member with Name "Microsoft Dynamics 365" . #ProjectMadeira   #Dynamics365

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 - 

NAV 2013 Credential Type - How to Use?

Hi all, Please do these activities when you have time, its a long activity and i would suggest do all activities in one go. So be clam and lets start. For NAV 2013 R2 Refer Here. For NAV 2016 Steps have been Reduced Please Refer Here. I have installed NAV 2013 and its work great with my windows credentials. I was checking the service console (Microsoft Dynamics NAV Administration) in NAV 2013 and found out that Credentials Type have multiple Options.