• When I look at the Agent Job Activity I see error.

    But loop is finished succesfully why write error to job history and

    It writes first error and first loop error.