Hi
I am running IIs 10, Kentico 13 on asp .net core.
I hotfixed my project from version 13.0.70 to 13.0.72 and i am now getting issues with rebuilding my index.
Event ID:41850
Event type:Error
Event time:6/8/2022 2:49:52 PM
Source:Media files usage
Event code:PROCESS_SEARCH_TASK
IP address:
Description:Message:
[DataConnection.HandleError]:
Query:
WITH AllData AS
(
SELECT *, ROW_NUMBER() OVER (ORDER BY [ItemID]) AS [CMS_RN]
FROM
)
SELECT *
FROM AllData
WHERE CMS_RN BETWEEN 1 AND 1000
ORDER BY CMS_RN
Caused exception:
Incorrect syntax near ')'.
Exception type: System.Exception
Stack trace:
at CMS.DataEngine.AbstractDataConnection.HandleError(String queryText, Exception ex)
at CMS.DataEngine.AbstractDataConnection.ExecuteReader(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, CommandBehavior commandBehavior)
at CMS.DataEngine.GeneralConnection.ExecuteReaderCore(QueryParameters query, CommandBehavior commandBehavior)
at CMS.DataEngine.SqlExecutionHelper.ExecuteWithRetryCore[TResult](Func`1 executionFunc, Int32 retryCount, Func`2 exceptionRetryPredicate)
at CMS.DataEngine.SqlExecutionHelper.ExecuteWithDeadlockRetryInternal[TResult](Func`1 executionFunc, Int32 retryCount)
at CMS.DataEngine.DataQueryBase`1.GetReaderFromDBInternal(CommandBehavior commandBehavior, Boolean newConnection)
at CMS.DataEngine.DataQueryBase`1.GetReader(CommandBehavior commandBehavior, Boolean newConnection)
at CMS.DataEngine.DataQueryBase`1.GetReader(CommandBehavior commandBehavior, Boolean newConnection)
at CMS.DataEngine.DataQueryBase`1.GetReader(CommandBehavior commandBehavior, Boolean newConnection)
at CMS.DataEngine.DataQueryBase`1.GetEnumerableResult(CommandBehavior commandBehavior, Boolean newConnection)+MoveNext()
at CMS.DataEngine.DataExtensions.As[InfoType](IEnumerable`1 dataRecords, Func`2 createObjectFunc)
at CMS.DataEngine.ObjectQueryBase`2.GetEnumerator()
at CMS.MediaLibrary.CustomTableItemSearchDocumentManager.GetSearchDocuments(SearchIndexInfo indexInfo)+MoveNext()
at System.Linq.Enumerable.ConcatIterator`1.MoveNext()
at CMS.Search.SearchHelper.RebuildIndex(SearchIndexInfo searchIndex, Func`2 getSearchDocuments)
at CMS.Search.SearchHelper.RebuildIndex(SearchIndexInfo searchIndex, Action`1 rebuildAction)
at CMS.MediaLibrary.MediaFilesUsageSearchIndexer.ExecuteRebuildTask(SearchTaskInfo taskInfo)
at CMS.MediaLibrary.MediaFilesUsageSearchIndexer.ExecuteTask(SearchTaskInfo searchTask)
Message: Incorrect syntax near ')'.
Exception type: System.Data.SqlClient.SqlException
Stack trace:
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.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at CMS.DataEngine.AbstractDataConnection.ExecuteReader(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, CommandBehavior commandBehavior)
Machine name:
Event URL:
URL referrer:
User agent:
Any help would be appriciated.