AKKK! For those of you who can't see the forest through the trees ...
CHECK YOUR CODE
onClick\"(Upload(" + id + "))\";
This was my issue ... That extra set of parentheses combined with the wrong ID creation, there is no id .. Only iid .. This works:
onClick\"Upload(" + iid + ");\"
I believe that occurred during a copy paste ... lol .. I am sorry to take up your time for a stupid mistake!