More in this section

Forums / Developing with Sitefinity / Cannot rename categories

Cannot rename categories

2 posts, 0 answered
  1. Alessio S.
    Alessio S. avatar
    37 posts
    31 May 2010
    12 Jul 2010
    Link to this post
    Small problem trying to rename News categories from the backend (default provider, SF 3.7.2096, not using nested categories). It is not possible to change the case of letters in the name as it gives an error "Category with the same name already exists!". After that error, if I type an actual new name and click the Update button in the renaming dialog it fails with exception:

    You cannot change a value of an object that is not in transaction.
    Descrizione: Eccezione non gestita durante l'esecuzione della richiesta Web corrente. Per ulteriori informazioni sull'errore e sul suo punto di origine nel codice, vedere l'analisi dello stack.
    Dettagli eccezione: Nolics.ORMapper.Base.NolnetException: You cannot change a value of an object that is not in transaction.
    Errore nel codice sorgente:
    Durante l'esecuzione della richiesta Web corrente è stata generata un'eccezione non gestita. Per informazioni sull'origine e la posizione dell'eccezione, vedere l'analisi dello stack dell'eccezione riportata di seguito. 
    Analisi dello stack:
    [NolnetException: You cannot change a value of an object that is not in transaction.]
       Nolics.ORMapper.Base.OdbClassHelper.CheckAssign(IOdbView clView, String propertyName, Object oldValue, Object newValue) +170
       Telerik.Cms.Data.PageContentBase.set_TemplateID(Guid value) +92
       Telerik.Cms.Data.StagedPage.Copy(StagedPage source, PageContentBase target) +101
       Telerik.Cms.Data.StagedPage.Publish() +221
       Telerik.Cms.Data.CmsPageContent.Publish() +92
       Telerik.Cms.Engine.ContentManager.UpdateContentCategory(String oldCategoryName, String newCategoryName) +979
       Telerik.Cms.Engine.WebControls.Admin.CategoriesView`1.RenameCategory(Guid categoryId) +420
       Telerik.Cms.Engine.WebControls.Admin.CategoriesView`1.Button_Command(Object sender, CommandEventArgs e) +191
       System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +108
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    Same exception comes up when trying to rename a category two times in a row or renaming two categories in a row, you have to go to any other page and then back to the categories list after every rename in order for it to work.
    Also when these errors come up the listview starts to show a wrong count of items per category (usually shows 0 even if there are items) and it remains wrong until a succesful renaming of the affected category.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    12 Jul 2010
    Link to this post
    Hi Alessio S.,

    It is a bug in our code. It comes from UpdateContentCategory method. We will try to sort out the issue for the next SP. Unfortunately I am not able to come up with a temp solution, because the UpdateContentCategory method could not be overridden.

    The error is thrown, because there is CategoriesTree or CategoriesList control on a page and when a category is renamed we are trying to update the reference.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered