Failed to delete the page: [SqlGenerator.GetAutomaticQuery]: Class name 'CMS.AlternativeUrl' doesn't

Serhiy Yakyymiv asked on October 4, 2019 11:53

I use Portal Engine. I can't delete the page because this error occurs:

Exception type: CMS.DataEngine.DataClassNotFoundException Stack trace: at CMS.DataEngine.DataClassInfoProvider.GetDataClassInfo(String name, Boolean throwIfNotFound) at CMS.DataEngine.SqlGenerator.GetAutomaticQuery(String queryFullName) at CMS.DataEngine.QueryInfoProvider.GetQueryInfoInternal(String queryName) at CMS.DataEngine.QueryInfoProvider.GetQueryInfo(String name, Boolean throwException) at CMS.DataEngine.DataQueryBase1.GetConnectionStringName() at CMS.DataEngine.DataQueryBase 1.get_ConnectionStringName() at CMS.DataEngine.Query.QueryBatch.<>c.b__3_0(IDataQuery q) at System.Linq.Lookup2.Create[TSource](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.GroupedEnumerable3.GetEnumerator() at CMS.DataEngine.Query.QueryBatch.d__ 3.MoveNext() at CMS.DataEngine.Query.QueryBatch.Execute() at CMS.DataEngine.ObjectDependenciesRemover.RemoveObjectDependenciesByQuery(IEnumerable1 queries) at CMS.DataEngine.ObjectDependenciesRemover.RemoveObjectDependenciesAuto(BaseInfo infoObj, Boolean deleteAll, Boolean clearCache) at CMS.DataEngine.ObjectDependenciesRemover.RemoveObjectDependencies(BaseInfo infoObj, Boolean deleteAll, Boolean clearCache) at CMS.DataEngine.AbstractInfoBase1.DeleteData() at CMS.DataEngine.BaseInfo.Delete() at CMS.DocumentEngine.TreeNode.DeleteInternal(DeleteDocumentSettings settings) at CMS.DocumentEngine.DocumentHelper.DeleteDocument(DeleteDocumentSettings settings) at CMSModules_Content_CMSDesk_Delete.Delete(Object parameter) in D:\Jenkins\Digitron\CMS\CMSModules\Content\CMSDesk\Delete.aspx.cs:line 809. How to solve this problem.

Recent Answers


David te Kloese answered on October 4, 2019 14:26

Can you remove other pages, or nothing at all?

Can you create a new page of the same page type? And can you remove that one?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 7, 2019 10:31

What were the most recent changes? The Alternative URLs feature was added by the Kentico 12 service pack. This looks like that installing the hotfix/SP did not succeeded. The best option would be rolling back the backups and applying the hotfix/SP again. It looks like that the DB records for this new feature are missing.

0 votesVote for this answer Mark as a Correct answer

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