You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@phoenix.apache.org by Sumit Nigam <su...@yahoo.com> on 2015/10/01 14:45:10 UTC

Batch update error - XCL06

Hi,
I am using Statement's executeBatch method. Intermittently, I get XCL06 which when I look up Phoenix error codes means - "An executeUpdate is prohibited when the batch is not empty. Use clearBatch to empty the batch first."
Now, I am never reusing the statement used to construct the batch and I am always executing batch only once. Summarily, I always create a new batch. So, any reason why I need to clear the batch after every execution? 
ThanksSumit