apple numbers Filling data into a table using AppleScript
For your second block of assignments, remove the second 'the value of' from each line so that they look like this: 

set the value of cell "K2" to fileinfolder


That second 'value' is redundant.

As an aside, the error is peculiar in that it should probably be a 'script error' that can't get the value of '1.0', for example. So whichever cell is generating the error is probably indicating to the script that it's a boolean or something. But this isn't the source of your problem, just a symptom.

NB To test this, I simply used a column of numbers ranging from 1 to 17 to supply the first block of assignments.