I apologize for not being able to supply the code here, but this error is not thrown if I emulate with dictionaries of made-up data. I am open to any suggestions how to post