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

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    ---------------------------