Skip to main content
Question

File Trigger works most of the time, not sure if something is timing out, or if its a vm setting.

  • February 10, 2022
  • 11 replies
  • 384 views

Forum|alt.badge.img+3

I have a vm botrunner with a onedrive synced folder, if a file is dropped in this folder, the bot should be triggered to run.

 

I remote into vm and boot up control room to make sure trigger event is active.

 

I can successfully get the bot to trigger even if vm is unlocked, locked, connected, or disconnected. All appeared to be working, so I disconnect from vm for the day(not sign out).

 

The next day, first thing in the morning, I dropped another file on the folder to see if it would trigger, it did not trigger.

 

I'm new to this, did it not trigger because of a session timeout? Am I missing something else? Please help, thanks

11 replies

Micah.Smith
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 10, 2022

Triggering is only supported for attended automation (don't shoot the messenger, just explaining how it currently works).

 

The only way triggering can work is if that bot runner user is logged in to the Control Room via the web UI FIRST before the trigger is "active" in order to run.

 

If you believe that triggering should work as a feature of unattended automation, please share that feedback and I'm happy to re-iterate that with the product team.

 

As an alternative in the meantime, I might suggest scheduling the bot to run every X amount of time to check for files in the directory you're attempting to monitor...in this way, you don't tie up a bot runner with scanning that directory all day, and you can still schedule/run other stuff on the same runner.


Forum|alt.badge.img+12

Hi Micah,

 

This is a common use case where customers drop file into a shard/onedrive folder and a bot getting triggered in an unattended fashion and consuming the file. We should take this to our PM team and get this feature included in future releases.


  • Navigator | Tier 3
  • February 10, 2022

@Eric Sullivan​ I have dealt with the same issue and went bonkers with troubleshooting. After much back and forth with AA support, it eventually ended up with the understanding that the VM "apparently" does not lock and that we'd have to use their suggested solution of a batch file to lock-and-disconnect the VM, although I disagree with them. You could try.

 

https://apeople.automationanywhere.com/s/article/Batch-file-to-lock-and-disconnect/p>


Forum|alt.badge.img+3
  • Author
  • Cadet | Tier 2
  • February 23, 2022

Thank you Micah and Nidhin, this would be a great feature to have in the future.


  • Cadet | Tier 2
  • September 21, 2022

Hi @MICAH SMITH​ ,

I see this answer was posted 7 months back. Is it still the case that trigger is only supported for attended automation?


Micah.Smith
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • September 21, 2022

Still the case as of right now - I've raised it up with the product team and they're aware of the limitation. In the meantime, your best other approach may be a python script that continuously executes on a machine at startup monitoring a network share for files...sleeping for X amount of time between checks


  • Cadet | Tier 2
  • September 22, 2022

Thanks Micah


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • May 30, 2023

@Micah.Smith We are unable to pass variables in file paths while using trigger. is there any work around for this.


Micah.Smith
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • May 30, 2023

This is a year old thread @RajeshS106234 - Triggering today works differently than triggering did over a year ago. I’d recommend opening a support ticket if there’s functionality that isn’t working for you - and the team there can work with you on a resolution 


Stefanie
Most Valuable Pathfinder
Forum|alt.badge.img+7
  • Most Valuable Pathfinder
  • July 5, 2023

Hi @Micah.Smith 

we still have problems with triggering on unattended bot runners. We are running A360 v25. 

In your last post you mentioned that triggering today works differently than it did one year ago… Which version did you relate to? And how does it work now?


Micah.Smith
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • July 5, 2023

Hi @Micah.Smith 

we still have problems with triggering on unattended bot runners. We are running A360 v25. 

In your last post you mentioned that triggering today works differently than it did one year ago… Which version did you relate to? And how does it work now?

Triggers previously required that you had a user with a logged in session to the Control Room for operation. This behavior changed in .28 to auto-connecting to the CR for unattended users - https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/release-notes/v28-release-rpa-workspace.html#:~:text=Auto%2Dconnect%20to%20non%2DUI%20triggers%20for%20unattended%20users