That error happens when you're trying to do something like this:
var g = 'General'
var h = d[g]
It means that you're using the string, "General" as the key of a dictionary, but the dictionary doesn't have that key. That might happen if you had a variable called General and quoted it when it shouldn't have been. Or you might have meant to put "General" in your nameDictionary, but didn't put it in.