Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Business Central response slow occasionally

Posted on by

Hi,

Recently we upgraded our NAV2015 environment to BC14 (all on-prem) with help of an implementation partner. After the upgrade we experience some performance issues opening the BC client. Usually early in the morning the client loads very slow and eventually pops up incomplete displaying some parts as: “A call to System.Threading.Tasks.Task`1[System.Net.Http.HttpResponseMessage].Result failed with this message: A task was canceled.” Restarting the client a few minutes later usually solves it.

We experience the same behavior while access the Continia approval portal. It uses the BC14 webservices to connect. And sometimes get a timeout.

The eventvwr shows this error. I can't figure out what it means or how to solve this. Our partner is not of much help either. Does anyone know what is going on here?

---

Server instance: BCPROD
Category: Runtime
ClientSessionId: {741cdcb3-03f5-4c10-b46a-8ac9705bdf53}
ClientActivityId: {f6c6e18d-efb8-447f-b1da-661a6b80cab9}
ServerSessionUniqueId: {479bd557-bbcd-4921-ab0e-9b68f0e564e3}
ServerActivityId: {06ea56e6-c3db-498b-8801-ca213a9036b5}
EventTime: ‎2021‎-‎11‎-‎18T15:56:03.407889600Z
Message (NavNCLDotNetInvokeException): ParentException: NavNCLDotNetInvokeException
A call to System.Threading.Tasks.Task`1[System.Net.Http.HttpResponseMessage].Result failed with this message: A task was canceled.
ExceptionStackTrace:
   at Microsoft.Dynamics.Nav.Runtime.NavDotNet.Invoke[T](String methodName, UInt32 methodIndex, BindingFlags flags, ParameterModifier modifier, Type[] referenceTypes, Object[] arguments)
   at Microsoft.Dynamics.Nav.Runtime.NavDotNet.InvokePropertyGet[T](Boolean isStatic, String propertyName, UInt32 methodIndex)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192812.ExecuteRequest_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192812.ExecuteRequest(NavText url, Int32 method, Boolean showError, NavText data)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192812.PostData_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192812.PostData(NavText url, Boolean showError, NavText data)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192812.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.RequestNewAccessToken_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.RequestNewAccessToken()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.GetAccessToken_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.GetAccessToken()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192811.CheckCredentials_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192811.CheckCredentials(Boolean showError)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192811.GetOnlineCompanyActivations_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192811.GetOnlineCompanyActivations(INavRecordHandle companyActivationResult, INavRecordHandle solutionActivationResult, Boolean showError)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192811.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192832.GetOnlineCompanyActivations_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192832.GetOnlineCompanyActivations(INavRecordHandle companyActivationResult, INavRecordHandle solutionActivationResult, Boolean allDBCompanies)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192832.GetActivationState_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192832.GetActivationState(INavRecordHandle solutionActivations)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192832.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.RefreshActivationCache_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.RefreshActivationCache()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.GetActivationBuffer_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.GetActivationBuffer(INavRecordHandle activationBuffer)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192852.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.GetActivationState_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.GetActivationState(NavCode productCode, NavText company)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.IsSolutionActiveInCompany_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.IsSolutionActiveInCompany(NavCode productCode, NavText company)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.IsSolutionActive_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.IsSolutionActive(NavCode productCode)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192854.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192829.IsAppActivated_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192829.IsAppActivated(NavCode appCode)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192829.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192833.IsAppActiveExtended_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192833.IsAppActiveExtended(NavCode appCode, Boolean showError, Boolean showMessage)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192833.IsAppActive_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192833.IsAppActive(NavCode appCode, Boolean showError)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192833.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192773.IsActive_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192773.IsActive(NavCode productCode, Boolean showError)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6192773.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6085617.IsCompanyActive2_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6085617.IsCompanyActive2(Boolean showError, Boolean showMessage, Boolean clearCODC)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6085617.IsCompanyActive_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6085617.IsCompanyActive(Boolean showError)
   at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit6085617.OnInvoke(Int32 memberId, Object[] args)
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.GetAppEntryTableIDFilter_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.GetAppEntryTableIDFilter()
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.MarkApprovalEntries_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.MarkApprovalEntries(NavText _CompanyName, NavCode _UserID, INavRecordHandle apprEntry)
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.UpdateWebUserCompany_Scope.OnRun()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.UpdateWebUserCompany()
   at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
   at Microsoft.Dynamics.Nav.BusinessApplication.Page6086028.OnOpenPage()
   at Microsoft.Dynamics.Nav.Runtime.NavForm.RaiseOnOpenPage()
   at Microsoft.Dynamics.Nav.Runtime.NavForm.OpenForm()
   at Microsoft.Dynamics.Nav.Service.SOAP.ServiceForm..ctor(NavFormHandle theForm, Action`1 initAction)
   at Microsoft.Dynamics.Nav.Service.SOAP.ServiceFormXmlAdapter..ctor(Int32 formId, String theServiceName, XmlElement message)
   at Microsoft.Dynamics.Nav.Service.SOAP.MetadataManager.FindSoapAdapter(String fullName, NavTenant tenant, XmlElement message, IMetaService service)
   at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.DispatchSoap(WebServiceUrlInfo relivantURLPart, XmlReader input, TextWriter output, NavTenant tenant, PerformanceLog perfLog)
   at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuthentication, PerformanceLog performanceLog)
InnerException:
RootException: TaskCanceledException
A task was canceled.
CallerStackTrace:
   at Microsoft.Dynamics.Nav.Service.SOAP.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuthentication, PerformanceLog performanceLog)
   at Microsoft.Dynamics.Nav.Service.SOAP.NavWebService.<>c__DisplayClass3_3.<ProcessMessage>b__2()
   at Microsoft.Dynamics.Nav.Service.SOAP.Disposer.Scope(Code code)
   at Microsoft.Dynamics.Nav.Service.SOAP.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
   at Microsoft.Dynamics.Nav.Service.SOAP.NavWebService.ProcessMessage(Message message)
   at SyncInvokeProcessMessage(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at System.ServiceModel.Dispatcher.MessageRpc.Wrapper.Resume(Boolean& alreadyResumedNoLock)
   at System.ServiceModel.Dispatcher.ThreadBehavior.ResumeProcessing(IResumeMessageRpc resume)
   at Microsoft.Dynamics.Nav.Runtime.NavSynchronizationContext.<>c__DisplayClass1_0.<ClearThreadLocalStorageDelegate>b__0(Object state)
   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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
 
 
ProcessId: 3272
Tag: 000000E
ThreadId: 75
CounterInformation:
 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,565 Super User 2024 Season 2 on at
    RE: Business Central response slow occasionally

    Hi, this looks like a performance issue of your customization.

    You can create a new Instance and connect it with the Cronus standard database to see if the same problem occurs.

    If there is no problem with the standard database, I suggest contacting your partner to improve the function code.

    Hope this will help.

    Thanks.

    ZHU

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans