How do I fix a Dashboard Background Job Error?
Asked by Fernandez Hernandez Saravia, Juan:

Hi,

I tried multiple times to run the "Dashboard Data Preparation" background job, but every time I try, I got this error:

The job has completed with an error - Database server name: azc5supsql002.custadds.com - Cannot insert the value NULL into column 'category_dyn_field_id', table 'bicancr1instance_100.dbo.tbl_report_view'; column does not allow nulls. UPDATE fails.  
The statement has been terminated.  
System.Data.SqlClient.SqlException (0x80131904): Cannot insert the value NULL into column 'category_dyn_field_id', table 'bicancr1instance_100.dbo.tbl_report_view'; column does not allow nulls. UPDATE fails.  
The statement has been terminated.  
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.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)  
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task\& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)  
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource\`1 completion, Int32 timeout, Task\& task, Boolean\& usedCache, Boolean asyncWrite, Boolean inRetry)  
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource\`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean\& usedCache, Boolean asyncWrite, Boolean inRetry)  
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()  
at SharpTop.Common.Utils._SqlUtil.InternalExecuteSql(String query, IEnumerable\`1 parameters, SqlConnection conn, Boolean useStoredProc) in d:\\_wf\\02\\1\\s\\dayforce\\src\\Architecture\\DataManager\\_SqlUtil.cs:line 486  
at SharpTop.Common.Utils._SqlUtil.ExecuteSql(String query, IList\`1 parameters) in d:\\_wf\\02\\1\\s\\dayforce\\src\\Architecture\\DataManager\\_SqlUtil.cs:line 428  
at SharpTop.Common.Utils.DataManager.ExecuteSql(String queryString, IEnumerable\`1 parameters) in d:\\_wf\\02\\1\\s\\dayforce\\src\\Architecture\\DataManager\\DataManager.cs:line 1018  
at a8i.BackgroundJobs.BIExtract.ExtractTopicDatasources(Boolean processIncremental, DateTime lastRunDate, DateTime coveragePeriodStartDate)  
at a8i.BackgroundJobs.BIExtract.Execute()  
at BJE.JobWrapper.\<\>c__DisplayClass17_1.\<CreateJobDelegate\>b__0(String x, Int64 y) in d:\\_wf\\02\\1\\s\\dayforce\\BJE\\BJE\\JobWrapper.cs:line 383  
at BJE.JobWrapper.\<ExecuteAsync\>d__15.MoveNext() in d:\\_wf\\02\\1\\s\\dayforce\\BJE\\BJE\\JobWrapper.cs:line 155  
ClientConnectionId:37a4e137-bd7c-4a60-91f8-858febf7ef46  
Error Number:515,State:2,Class:16

I hope someone can help me.

Thanks in advance.


Answers:
author: Andy Gladstone
body: [@Fernandez Hernandez Saravia, Juan](/t5/user/viewprofilepage/user-id/5026481) Welcome to the Atlassian Community.

I am moving this post from the Questions for **Confluence** collection to the general Confluence collection where more community members will have visibility to assist you. *Questions for Confluence* is an Atlassian owned application, this is not the space for questions ++about++ Confluence.

comments: author: Fernandez Hernandez Saravia, Juan
body: Ok, thanks Andy. I appreciate it. :)


Tags: cloud

confluence-cloud

dashboard

error

job