Error COBCH0002S when build

Hi

when i build my source code (in attach) then build was failed: COBCH0002S

error at line 281: i think my code is right

My flow code:

      read data file ORDERS.dat then insert all records into ORDERS table

      read records in ORDERS table, check record if error then write that record to ORDER_ERROR.dat

My ORDERS table structure: DATABASE.txt

I also attached ORDERS.dat and project source code.

Thanks for your support.

Select.zip