I have a scheduled bot that is set to run at 6am (+10 AUS Eastern Standard Time) and have just discovered that it hasn't been running. I was testing another issue and whilst looking in the Monitoring discovered that that Bot execution was missing. There is also nothing in the Audit Log to show a scheduled bot has run.
I ran it manually and it worked fine. It also used to work, as I did lots of testing.
I set up this bot many months ago, and just assumed it was working. Now I have no idea how long it hasn't been executing. And because the bot sends a reminder email to my clients customers, I have had no feedback - as in, the customers aren't getting an email to remind them of something, so they haven't been reminded to give feedback - chicken and egg.
Any ideas? Is this an AppSheet Support question?
I have just changed the particular bot to run at 6:12 to avoid on the hour issues. But shouldn't it show in the Audit Log that it tried to fire?
I'm now wondering if other bots are having similar issues as there is no scheduled bots in the Audit Log or Monitor.
Thanks in advance, John.
BTW, App is Deployed!
Thanks @Aurelien, How good is AppSheet Support! Had a response within a few hours and worked out the issue...
And I feel a bit dumb. But thought I'd share the outcome for those who may have similar issues with Scheduled Bots. Any scheduled bot is run by the SERVER... Not a user, or not acting as your admin user (which is how I thought they ran)... so, if you have a security filter in place on your data that is user based, the server will not see ANY data. And therefore the bot won't run.
So here is my quick guide (and please, feel free to correct me if I'm wrong or add to my list):
So I haven't seen my Scheduled Bots run successfully yet, but I have changed the way they operate, turned on Bypass Security Filters, adjusted a few expressions that used ANY() and changed them to LOOKUP()'s and we'll see what happens tomorrow on their scheduled time slot!
I feel confident 😁😀.
Absolutely outstanding write-up, @John_McCredie! Thank you!
And I can confirm that it now works 100%
Good day John_McCredie.
Thank you for this guide. I am having a similar issue as my bots are not acting on a schedule. I set the security bypass filters and changed weekly schedule to daily, and it is still not working. I wanted to know if you had any thoughts.
Thank you.
Huge thanks @John_McCredie for these informations !!!!
User | Count |
---|---|
16 | |
11 | |
9 | |
8 | |
4 |