I believe this question was asked several months back, but i believe my situation is different and the same rules may not apply.
Everytime I execute this method tha
I was having the same problem, then I realized that my first column was not integer-based. So when I edited the first I faced the same error.
So, my suggestion is either not to edit the first column or make the first column an ID column in which case you don't have to edit anything.