Hi Matt,
Not sure, but the below one could be one of the query.
System.AggregateException: One or more errors occurred. ---> System.Data.SqlClient.SqlException: A severe error occurred on the current command. The results, if any, should be discarded.
A severe error occurred on the current command. The results, if any, should be discarded.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
select * into #extraCombos
from DimensionCombinationStaging dcs
where Id not in (select Id from DimensionCombination)
and Id not in (select Id from DimensionCombinationResolving)
and Id not in (select Id from DimensionCombinationUnreferenced)
truncate table DimensionCombinationStaging
insert into DimensionCombinationStaging with (TABLOCK)
select * from #extraCombos
where FreshnessDate >= DATEADD(hh, -4, SYSUTCDATETIME())
or SourceKey in (Select distinct DimensionsKey from FactStaging)
insert into DimensionCombinationArchive with (TABLOCK)
select * from #extraCombos
where FreshnessDate < DATEADD(hh, -4, SYSUTCDATETIME())
and SourceKey not in (Select distinct DimensionsKey from FactStaging)
drop table #extraCombos
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.Dynamics.Performance.DDM.SqlUtility.ExecuteSql(String sql)
at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.<ForWorker>b__c()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.<ExecuteSelfReplicating>b__10(Object param0)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Microsoft.Dynamics.Performance.DDM.SqlUtility.ExecuteSqlInParallel(IEnumerable`1 parallelSql)
at Microsoft.Dynamics.Performance.DDM.FactLoader.ProcessStagedData(String connectionString)
at Microsoft.Dynamics.Integration.Adapters.DimensionalDataMart.DataMartAdapter.RunMaintenance()
at Microsoft.Dynamics.Integration.Service.Tasks.MaintenanceTask.RunImplementation()
---> (Inner Exception #0) System.Data.SqlClient.SqlException (0x80131904): A severe error occurred on the current command. The results, if any, should be discarded.
A severe error occurred on the current command. The results, if any, should be discarded.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
select * into #extraCombos
from DimensionCombinationStaging dcs
where Id not in (select Id from DimensionCombination)
and Id not in (select Id from DimensionCombinationResolving)
and Id not in (select Id from DimensionCombinationUnreferenced)
truncate table DimensionCombinationStaging
insert into DimensionCombinationStaging with (TABLOCK)
select * from #extraCombos
where FreshnessDate >= DATEADD(hh, -4, SYSUTCDATETIME())
or SourceKey in (Select distinct DimensionsKey from FactStaging)
insert into DimensionCombinationArchive with (TABLOCK)
select * from #extraCombos
where FreshnessDate < DATEADD(hh, -4, SYSUTCDATETIME())
and SourceKey not in (Select distinct DimensionsKey from FactStaging)
drop table #extraCombos
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.Dynamics.Performance.DDM.SqlUtility.ExecuteSql(String sql)
at System.Threading.Tasks.Parallel.<>c__DisplayClassf`1.<ForWorker>b__c()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass11.<ExecuteSelfReplicating>b__10(Object param0)
ClientConnectionId:55e5d39d-11f5-4b94-a779-0a0cddb947ab<---