web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Connection terminating

(1) ShareShare
ReportReport
Posted on by

My application is crashing periodically and when it happens EventViewer reporting below error.

Server instance: SIVVINAS
Category: Security
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 9d36a95f-6d5b-457d-81d5-8579527e29e3
ServerActivityId: 60ec33d7-ffda-4458-939b-7794e0808bc3
EventTime: 05/05/2019 16:00:10
Message <ii>(NavServerSessionRemovedException): <ii>The server stopped the session (ID: 5) because the session is no longer active.
ExceptionStackTrace:

CallerStackTrace:
   at Microsoft.Dynamics.Nav.Runtime.NavSession.ValidateSessionIsActive(Boolean forceValidation)
   at Microsoft.Dynamics.Nav.Runtime.NavSession.ValidateUserHasAccessToCompany(String companyName)
   at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.GetCompanyNameToken(DataError errorLevel, String companyName, Int32& token)
   at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.Initialize(String companyName, SecurityFiltering filtering)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord..ctor(ITreeObject parent, Int32 tableId, NCLMetaTable metaTable, Boolean isTemporary, NavRecord sharedTable, String companyName, SecurityFiltering securityFiltering)
   at Microsoft.Dynamics.Nav.BusinessApplication.Record337.__Construct(ITreeObject parent, NCLMetaTable metaTable, Boolean isTemporary, NavRecord sharedTable, String companyName, SecurityFiltering securityFiltering)
   at Microsoft.Dynamics.Nav.Runtime.NCLMetaTable.CreateObjectInstance(ITreeObject parent, Boolean isTemporary, NavRecord sharedTable, String companyName, SecurityFiltering securityFiltering)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateFlowField(NCLMetaField metaField)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(Action`1 fieldEvent, NCLMetaField metaField, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavRecord callerRecord)
   at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Quantity_a45_OnValidate_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Quantity_a45_OnValidate()
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(Action`1 fieldEvent, NCLMetaField metaField, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Unit_of_Measure_Code_a45_OnValidate_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Unit_of_Measure_Code_a45_OnValidate()
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(Action`1 fieldEvent, NCLMetaField metaField, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavRecord callerRecord)
   at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Noa46_a45_OnValidate_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Record37.Noa46_a45_OnValidate()
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ValidateField(Action`1 fieldEvent, NCLMetaField metaField, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.Validate(NCLMetaField metaField, NavValue newValue, NavRecord callerRecord, Boolean isUserInput)
   at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALValidateSafe(Int32 fieldNo, NavType expectedType, NavValue newValue, NavRecord callerRecord)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50024.SplitLines_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50024.SplitLines(Int32 tableID, Int32 docType, NavCode docNo)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50024.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50007.Release_SalesHdr_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50007.Release_SalesHdr()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50007.OnRun_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50007.OnRun(INavRecordHandle εrec)
   at Microsoft.Dynamics.Nav.Runtime.NavCodeunit.DoRun(DataError errorLevel, NavRecord record)
   at Microsoft.Dynamics.Nav.Runtime.NavCodeunit.RunCodeunit(DataError errorLevel, Int32 objectId, NavRecord record)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001467.RunScheduleJob_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001467.RunScheduleJob(INavRecordHandle scheduleHeader, Boolean createLog)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001467.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001469.Schedule_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001469.Schedule()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001469.OnRun_Scope.OnRun()
   at Filter.InvokeWithFilter(NavMethodScope )
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit99001469.OnRun(INavRecordHandle εrec)
   at Microsoft.Dynamics.Nav.Runtime.NavCodeunit.DoRun(DataError errorLevel, NavRecord record)
   at Microsoft.Dynamics.Nav.Runtime.NavCodeunit.InvokeRun(Int32 objectId, Object[] args)
   at Microsoft.Dynamics.Nav.Runtime.ALSession.RunCodeunitAndDisposeSession(NavSession session, Int32 codeUnitId, NavRecord record)
   at Microsoft.Dynamics.Nav.Runtime.NavTaskFactory.<>c__DisplayClass1_0.<RunTask>b__0()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

</ii></ii>
ProcessId: 9864
Tag: 000001W
ThreadId: 7
CounterInformation: 


I don't have any idea whether it is Navison or SQL and how to fix it.

*This post is locked for comments

I have the same question (0)
  • FM-31072334-0 Profile Picture
    2 on at
    Connection terminating
    Hi, did anybody find a solution to this? I am dealing with this error. Please help. 
  • Hendrik_melantech Profile Picture
    10 on at
    RE: Connection terminating

    Should not be a problem, when working on localhost (which I do), shouldn't it?

    Only the DB is on another server.

    I get this error from multiple NAS at approximately the same time and then they stop working.

  • baromawoa Profile Picture
    17 on at
    RE: Connection terminating

    You can check the speed of your connection. I often get this kind of error when my Internet connection isn't good.

  • Hendrik_melantech Profile Picture
    10 on at
    RE: Connection terminating

    Also facing this error. Any updates on a solution for it?

  • mark.kinsella Profile Picture
    5 on at
    RE: Connection terminating

    HI, can you tell me if you ever found a solution for this please? I've got the same problem here.

  • Maciej_Drozdz Profile Picture
    5 on at
    RE: Connection terminating

    Hi, I have exactly the same problem in BC 16 with the same codeunit :-)

    Did you find a solution last year for the issue?

  • Community Member Profile Picture
    on at
    RE: Connection terminating

    Will check that codeunit.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,231 Super User 2025 Season 2 on at
    RE: Connection terminating

    It looks like the error is happening in the CU 99001469, try to set breakpoints in the codeunit and check where it breaks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans