I have a scenario where I need to download an Excel file from an email attachment.
Once the file is downloaded, I need to apply certain validations on the data in the file.
If the file passes these validations, I will proceed with the process.
However, if the file fails the validations or is missing, the bot should throw an error, send an email notification, and stop the process in the RE framework.
If you’re checking for the file in the Initialization state, and it’s missing or fails validation, the bot will throw an error, and the process will immediately move to the End Process state. However, if you perform the check in the Process state, and the file is missing or doesn’t meet validation, you can set the TransactionItem to 0, ensuring the process stops gracefully. In this case, you can also send an email notification before the process ends, allowing for better error handling while ensuring proper notification.