If workpiece rejected, write in id and erase operation code