Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Export-NAVData Error

(1) ShareShare
ReportReport
Posted on by 63
We are experiencing error while running export navdata in BC24 Version. Please find the event log

Message (SqlNullValueException): Sending exception to client. Session terminating: True
RootException: SqlNullValueException
ExceptionStackTrace:
at Microsoft.Data.SqlClient.SqlDataReader.GetDateTime(Int32 i)
at Microsoft.Dynamics.Nav.Runtime.NavSqlStreamReaderWriter.WriteFieldToStream(SqlDataReader reader, NCLMetaField field, BinaryWriter writer, Int32 curSqlColumnIndex)
at Microsoft.Dynamics.Nav.Runtime.NavSqlStreamReaderWriter.WriteTableContentToStream(BinaryWriter writer, NavDatabase database, NCLMetaTable table, NavAppTableContext tableContext, Int32 companyToken, String whereClause, IList1 parameters)
at Microsoft.Dynamics.Nav.Runtime.NavSqlImportExportData.WriteApplicationDatabaseTables(BinaryWriter writer)
at Microsoft.Dynamics.Nav.Runtime.NavSqlImportExportData.WriteApplicationDatabase(BinaryWriter writer, Boolean includeApplication, Boolean includeApplicationDatabaseTables)
at Microsoft.Dynamics.Nav.Runtime.NavSqlImportExportData.ExportInternal(Stream stream, String description, Boolean includeApplication, Boolean includeAppDatabaseTables, NavTenant tenant, Boolean includeGlobalTables, Boolean includeAllCompanies, IEnumerable1 includedCompanies, Action1 reportProgress, Boolean leaveStreamOpenWhenDone)
at Microsoft.Dynamics.Nav.Runtime.NavSqlImportExportData.Export(Stream stream, String description, Boolean includeApplication, Boolean includeAppDatabaseTables, Boolean includeGlobalTables, Boolean includeAllCompanies, IEnumerable1 includedCompanies, NavSession session, Action1 reportProgress, Boolean leaveStreamOpenWhenDone)
at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.ExportNavData(String fileName, String description, Boolean includeApplication, Boolean includeApplicationData, Boolean includeGlobalData, Boolean allCompanies, ReadOnlyCollection1 companyNames)
at Microsoft.Dynamics.Nav.Service.NSAdminService.Microsoft.BusinessCentral.AdminApi.IAdminService.ExportNavData(String fileName, String description, Boolean includeApplication, Boolean includeApplicationData, Boolean includeGlobalData, Boolean includeAllCompanies, ReadOnlyCollection1 companyNames)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
at CoreWCF.Dispatcher.InvokerUtil.CriticalHelper.<>c__DisplayClass3_0.<GenerateInvokeDelegate>b__0(Object target, Object[] inputs, Object[] outputs)
at CoreWCF.Dispatcher.SyncMethodInvoker.InvokeAsync(Object instance, Object[] inputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.<>c__DisplayClass5_0.<<Create>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.AddSessionToThreadSchedulerCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation, Boolean useCoreWcfFaultException)
CallerStackTrace:
at Microsoft.Dynamics.Nav.Service.ServiceExceptionHandling.MapServiceOperationException(Exception e, NavSession session, Boolean useCoreWcfFaultException)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation, Boolean useCoreWcfFaultException)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation, Boolean useCoreWcfFaultException)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_01.<Create>b__0(ServiceOperationContext context, ServiceOperation1 operation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PartnerTelemetryPermissionErrorCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PartnerTelemetryPermissionErrorCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PushPopCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation, Boolean useCoreWcfFaultException)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PushPopCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation, Boolean useCoreWcfFaultException)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_01.<Create>b__2(ServiceOperationContext context, ServiceOperation1 operation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TelemetryCombinator[T](Category telemetryCategory, Verbosity telemetryVerbosity, ServiceOperationContext context, ServiceOperation1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TelemetryCombinator[T](Category telemetryCategory, Verbosity telemetryVerbosity, ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_01.<Create>b__7(ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationTracer.TraceScopeCombinator[T](Category telemetryCategory, ServiceOperationContext context, ServiceOperation1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationTracer.TraceScopeCombinator[T](Category telemetryCategory, ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_01.<Create>b__8(ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass7_01.<<PerformanceCounterCombinator>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass7_01.<PerformanceCounterCombinator>b__0()
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationDuration(Stopwatch stopWatch, Func1 action)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationDuration(Stopwatch stopWatch, Func1 action)
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationAction(Func1 action, NavSession session)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationAction(Func1 action, NavSession session)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PerformanceCounterCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PerformanceCounterCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.InitClientTelemetryIdsCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.InitClientTelemetryIdsCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TlsClearCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TlsClearCombinator[T](ServiceOperationContext context, ServiceOperation1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_01.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.InvokeAsync(Object instance, Object[] inputs)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.InvokeAsync(Object instance, Object[] inputs)
at CoreWCF.Dispatcher.DispatchOperationRuntime.<>c__DisplayClass71_0.<<InvokeAsync>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at CoreWCF.Dispatcher.DispatchOperationRuntime.<>c__DisplayClass71_0.<InvokeAsync>b__0()
at CoreWCF.Dispatcher.SecurityImpersonationBehavior.RunImpersonated[T](MessageRpc rpc, Func1 func)
at CoreWCF.Dispatcher.DispatchOperationRuntime.InvokeAsync(MessageRpc rpc)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at CoreWCF.Dispatcher.DispatchOperationRuntime.InvokeAsync(MessageRpc rpc)
at CoreWCF.Dispatcher.ImmutableDispatchRuntime.ProcessMessageAsync(MessageRpc rpc)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.ExecutionContextCallback(Object s)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.MoveNext(Thread threadPoolThread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.AsyncStateMachineBox1.ExecuteFromThreadPool(Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()


ProcessId: 15096
Tag: 00000HC
ThreadId: 8
CounterInformation:
CustomParameters: {
}
GatewayCorrelationId:

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,614 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans