Character Customization error

Hello, I’m trying to add my own character to the Unity Character Customization demo but I keep getting this error:

KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary2[System.String,System.Collections.Generic.List1[CharacterElement]].get_Item (System.String key)
CharacterGenerator.PrepareConfig (System.String config) (at Assets/Plugins/CharacterGenerator.cs:113)
CharacterGenerator.CreateWithConfig (System.String config) (at Assets/Plugins/CharacterGenerator.cs:79)
Main+c__Iterator0.MoveNext () (at Assets/DressingroomExample/Main.cs:28)

My character follows all the same naming conventions as the demo’s character. I can’t seem to figure out what’s wrong.

It points to this line in the code:

foreach (CharacterElement e in sortedElements[currentCharacter][categoryName])
{
    if (e.name != elementName) continue;
    element = e;
    break;
}

Capitalization (and whitespace - in fact, every character) IS important. This is failing on either currentCharacter or categoryName (those are ‘keys’ in the sortedElements ‘dictionary’).

If your caps are right, check to be sure they’re actually being added properly in the code before this point. You could find the “.Add” line, and before it, Debug.Log the value that’s about to be added. That way you can see if your curchar and catname are being added.