Getting Invalid column name 'PageVisitDetail' in the event log

NS Kentico asked on December 18, 2020 19:30

Unexpected exception occurred while processing activities. Message:

Proc_OM_Score_UpdateContactScore

Caused exception: Invalid column name 'PageVisitDetail'.

Exception type: System.Exception Stack trace: at CMS.DataEngine.AbstractDataConnection.HandleError(String queryText, Exception ex) at CMS.DataEngine.AbstractDataConnection.ExecuteQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction) at CMS.DataEngine.GeneralConnection.RunQuery(QueryParameters query) at CMS.DataEngine.GeneralConnection.RunQueryWithRetry(QueryParameters query, Int32 retryCount) at CMS.DataEngine.GeneralConnection.ExecuteQuery(QueryParameters query, Int32& totalRecords) at CMS.DataEngine.DataQueryBase1.GetDataFromDBInternal() at CMS.DataEngine.DataQueryBase1.GetDataFromDB() at CMS.DataEngine.DataQueryBase1.GetData() at CMS.DataEngine.DataQueryBase1.get_Result() at CMS.DataEngine.ConnectionHelper.ExecuteQuery(String queryName, QueryDataParameters parameters, String where, String orderBy, Int32 topN, String columns, Int32 offset, Int32 maxRecords, Int32& totalRecords) at CMS.ContactManagement.ScoreContactRuleInfoProvider.RecalculateRuleWithWhereCondition(RuleInfo ri, IEnumerable1 contactIDs) at CMS.ContactManagement.RuleRecalculator.RecalculateRuleForContacts(RuleInfo rule, ISet1 contactIDs) at CMS.ContactManagement.ScoreRecalculator.RecalculateScoreRulesAfterContactActionsBatch(IList1 processedActivities, IList1 contactChanges) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler2.RaiseAfter(TArgs e) at CMS.Base.AdvancedHandler2.RaiseAfter(TArgs e) at CMS.Base.AdvancedHandler`2.Finish() at CMS.ContactManagement.ContactActionsQueueProcessor.ProcessAllContactActions() at CMS.ContactManagement.ContactActionsLogWorker.ProcessActions()

Message: Invalid column name 'PageVisitDetail'.

Exception type: System.Data.SqlClient.SqlException Stack trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() 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, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at CMS.DataEngine.AbstractDataConnection.ExecuteQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction)

Recent Answers


Brenden Kehren answered on December 21, 2020 04:48

What version are you on?

Did you recently upgraded your site?

Did you make any changes to your installation?

0 votesVote for this answer Mark as a Correct answer

NS Kentico answered on December 21, 2020 18:51 (last edited on December 21, 2020 18:53)

We are on version 10.0.51 and planning to upgrade to version 12 early next year. We have recently switched our hosting provider to Azure, and since then, we are getting this error. We have the same instance of our development site on Azure, and it is running without any errors. Any help would be much appreciated.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 21, 2020 19:13

Did your conversion from a managed SQL Server install to an Azure SQL database succeed or were there issues or errors with that conversion? Seems like it may be directly related to moving to Azure.

0 votesVote for this answer Mark as a Correct answer

NS Kentico answered on December 21, 2020 22:14

We did not move to Azure SQL DB. We just bought the VM on Azure and installed Windows Server 2019 and SQL Server.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.