I experienced the same error. However, I could not reconcile the reason for this being that the query was being executed twice. I eventually determined that my insert was referencing a column that did not exist in the table. Creating the table definition with the missing column fixed the problem.