More in this section
Forums / Bugs & Issues / Add Subtaxa exception for custom taxonomy (v5.4)

Add Subtaxa exception for custom taxonomy (v5.4)

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Gary
    Gary avatar
    91 posts
    19 Jul 2007
    04 Mar 2013
    Link to this post

    I just wanted to report a bug, which is a NullReferenceException on SaveChanges when adding a new Taxon to Subtaxa in a custom hierarchical taxonomy.

    The workaround is to set the Taxonomy property on the new Taxon (this is not in described in the documentation examples). I experienced this problem with version 5.4.

    Sample code:

    teacherTaxon = taxonomyManager.CreateTaxon<HierarchicalTaxon>();
    teacherTaxon.Taxonomy = teacherClassesTaxonomy; // REQUIRED
    teacherTaxon.Name = teacher.Username;
    teacherTaxon.Title = teacher.TeacherName;




1 posts, 0 answered