Try Now
More in this section

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

Add Subtaxa exception for custom taxonomy (v5.4)

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