i have an automation which runs perfectly when i open the studio and runs it attended. But when i run the automation from orchestrator it is not running but it shows successful, even though the flow didn’t run. i have checked the entry points and i have only single main entry point. Has anyone faced this issue?
Perhaps the flow contains very simple automation. And there isn’t a way for you to confirm whether it runs?
a) You can check the logs via orchestrator to confirm the flow has run.
b) Try keeping message box at the end to notify the end of flow, so that you can make sure the flow has run.
c) When you trigger the flow, there will be a green colored icon in your taskbar which indicates a flow is running.
It will be helpful if you could share more about the process flow, to understand what exactly issue you are facing
That most likely means your process was started but faced some exceptions which were caught so flow silently succeeded.
Kindly put some log messages in your workflow at different points and then run from orchestrator. That way you will be able to see till what point your process ran.
You can also consider enabling live streaming or job recording of your process while starting run from orchestrator. This will help you get a sneak peek on what’s happening
Hi @dheephiga.am thanks for the reply. i checked the logs and it is failing when connecting to outlook. so it is not picking the unread emails and so it completes the flow successfully,even though i had unread emails to process.
It’s finishing because of your exception handling. If you want the bot to fail that particular job in case of such situation, make sure you are rethrowing the exception so at the end job will be failed.
Hi Ashok,
could you explain a bit more. in principle the automation is not picking the unread email when running from trigger and it picks when run attended in debug mode.
I think I got your problem here. If you are using Outlook app to read the unread email, and Read email is the first action in your bot,
- add logic to open the outlook(you can enable this to AutoStart on your server)
- add a static delay of at least 10-15 seconds which will allow your outlook to download latest unread emails.
This additional logic should resolve your problem. Also I would suggest to use O365 integration to do email operations instead of Outlook application.
Hi @ashokkarale none of this works. still i am having issue.
Could you please share which activity you are using to read emails and how have you configured your activity?
Also, please note that, while run attended, it uses your profile. When triggered unattended (via Orchestrator), it will run under a different Windows user/bot account.
Please confirm that the account being used for unattended use has outlook installed, and profile is setup for that user?
Also, are you doing attended and unattended run in same machine?
hi @sonaliaggarwal47
i am using use outlook 365. I also use a message box to verify and it is picking the email address but it keeps giving all the emails in message but never continues the flow.
in debug mode ir processes every single emails one by one.
yes i am using attended and un attended in same machine.
You mean its fetching the emails but not processing those? Can you please show us the screenshot of your workflow?
Also, when you say “all the emails”, is it fetching all the emails in that folder or the unread ones like you need?
basically My flow should get every email, download the invoice and process the invoice, marks the email as read and it should continue for every unread email in the flow. Right now when i put a message box it throws all the subject of every unread emails but it is not running any other activites like it should save the invoice, process it etc.
Is the attended user and unattended user same in this case?
If not, I would suggest to login on the machine where you are trying to run unattended flow using the unattended user.
And open outlook manually, there may be a chance that its not setup correctly or doesn’t have right set of permissions.
both are same and outlook is connected as i can open manually without any issues.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.