Syntax error in resultBatch