You might have used a variable name twice.
Specifically, you might be using one of your spreadsheet column names for something else.