I have a few requirements and would appreciate your suggestions. I need to send a daily email that contains a report summarizing any processes that failed during initialization.
Do you have any recommendations or ideas on how I could achieve this efficiently? Any input would be helpful!
you can use orchestrator api to retrieve failed jobs for the day. Later you can manually assign the reason or if you can edit the code set up an out argument which switches to TRUE if the bot fails at init later you can use that argument for your report.
endpoint would be /odata/Jobs
EDIT: If you are using reframework there is a key in settings sheet ShouldMarkJobAsFaulted you can set it to true and it will mark a job as faulted if it fails in init using the api you can get faulted jobs for your report
but it will also mark job faulted if max sys exception have reached if you have set that up
This would be hard to determine from exception. You will have to mark the source of system exception like was it faulted in Init/Process etc. in each process on the orchestrator.