Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I fix a Dashboard Background Job Error?



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: - 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
Error Number:515,State:2,Class:16


I hope someone can help me.

Thanks in advance.


1 answer

0 votes
Andy Gladstone Community Leader Sep 08, 2022

@Fernandez Hernandez Saravia, Juan 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. 

Ok, thanks Andy. I appreciate it. :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

582 views 0 13
Read article

Atlassian Community Events