Solved
MyVar is an Object, that just contains ColumnCount and nothing else. It should also contain TableVariable Object Properties. This is the reason why Reset fails, as there's no Iterator.
You need to check this,
to ensure it's returning the correct object type.
You're assigning MyIterator = MyVar.Iterator. What is the type and the value of MyVar?