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, IList
1 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, IEnumerable
1 includedCompanies, Action
1 reportProgress, Boolean leaveStreamOpenWhenDone)at Microsoft.Dynamics.Nav.Runtime.NavSqlImportExportData.Export(Stream stream, String description, Boolean includeApplication, Boolean includeAppDatabaseTables, Boolean includeGlobalTables, Boolean includeAllCompanies, IEnumerable
1 includedCompanies, NavSession session, Action
1 reportProgress, Boolean leaveStreamOpenWhenDone)at Microsoft.Dynamics.Nav.Runtime.NavManagementTasks.ExportNavData(String fileName, String description, Boolean includeApplication, Boolean includeApplicationData, Boolean includeGlobalData, Boolean allCompanies, ReadOnlyCollection
1 companyNames)
at Microsoft.Dynamics.Nav.Service.NSAdminService.Microsoft.BusinessCentral.AdminApi.IAdminService.ExportNavData(String fileName, String description, Boolean includeApplication, Boolean includeApplicationData, Boolean includeGlobalData, Boolean includeAllCompanies, ReadOnlyCollection
1 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, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation
1 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, ServiceOperation
1 innerOperation, Boolean useCoreWcfFaultException)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation, Boolean useCoreWcfFaultException)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0
1.<Create>b__0(ServiceOperationContext context, ServiceOperation
1 operation)at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PartnerTelemetryPermissionErrorCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PartnerTelemetryPermissionErrorCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PushPopCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation, Boolean useCoreWcfFaultException)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PushPopCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation, Boolean useCoreWcfFaultException)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0
1.<Create>b__2(ServiceOperationContext context, ServiceOperation
1 operation)at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TelemetryCombinator[T](Category telemetryCategory, Verbosity telemetryVerbosity, ServiceOperationContext context, ServiceOperation
1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TelemetryCombinator[T](Category telemetryCategory, Verbosity telemetryVerbosity, ServiceOperationContext context, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0
1.<Create>b__7(ServiceOperationContext context, ServiceOperation
1 innerOperation)at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationTracer.TraceScopeCombinator[T](Category telemetryCategory, ServiceOperationContext context, ServiceOperation
1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationTracer.TraceScopeCombinator[T](Category telemetryCategory, ServiceOperationContext context, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0
1.<Create>b__8(ServiceOperationContext context, ServiceOperation
1 innerOperation)at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass7_0
1.<<PerformanceCounterCombinator>b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass7_0
1.<PerformanceCounterCombinator>b__0()
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationDuration(Stopwatch stopWatch, Func
1 action)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationDuration(Stopwatch stopWatch, Func
1 action)
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationAction(Func
1 action, NavSession session)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationAction(Func
1 action, NavSession session)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PerformanceCounterCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PerformanceCounterCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.InitClientTelemetryIdsCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.InitClientTelemetryIdsCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<Combine>b__1(ServiceOperationContext contexts)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TlsClearCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TlsClearCombinator[T](ServiceOperationContext context, ServiceOperation
1 innerOperation)
at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0
1.<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, Func
1 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.AsyncTaskMethodBuilder
1.AsyncStateMachineBox
1.ExecutionContextCallback(Object s)at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox
1.MoveNext(Thread threadPoolThread)at System.Runtime.CompilerServices.AsyncTaskMethodBuilder
1.AsyncStateMachineBox
1.ExecuteFromThreadPool(Thread threadPoolThread)at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
ProcessId: 15096
Tag: 00000HC
ThreadId: 8
CounterInformation:
CustomParameters: {
}
GatewayCorrelationId: