i think the bot is processing the record correctly but the end consolidated report is showing like processed record got failed with the exception. am i right. in this case you are having issue with consolidation logic i guess.
Are you using RE frame work for this process.
what is your logic to consolidating processed and not processed records in your flow. ( i mean are you using any logic like → bulid data tables(processed & rejected) → if record is processed you will be inserting the data into processed DT or if it is failed you are inserting to reject DT
→ at the end you are consolidating and writing report with the write range activity some thing like that)