Automation Events not Reflected Correctly in Bot

I have two separate events that are linked to two different slices, one is supposed to execute Monthly the other Weekly like this:

The first bot checks out correctly with the event reflecting correctly as Monthly:

The second bot however appears to still show the correct event and Table slice, however the schedule is the same as the Monthly Bot instead of what the event reflects for the Weekly:

Unfortunately I only realized this now. Am I just seeing things, or is this a bug. @Steve could you escalate if this is a bug?

0 20 458
20 REPLIES 20

Steve
Platinum 4
Platinum 4

Some additional info. I went ahead and inspected my logs to search for the Weekly Bot execution since the Event tied to this Bot was scheduled to execute this morning at 8AM. I was unable to locate any logs that would confirm this bot executed. I also specifically pulled up the Automation log and also could not find any executions for the Weekly bot.

Based on this I can only assume that the bot setup in my specific case is bugged. There are two separate Bots tied to two separate events, yet the events under each bot seem to link to the same schedule for some reason.

I did additional testing by trying to override the schedule specifically in the Bot configuration, what I did was changed the schedule in the Weekly Bot, only to find that once I changed it here then it also changed the schedule to weekly under the Monthly Bot.

Since these Bots were configured after the ability to add Workflows and this is a production application I would really appreciate prompt attention to this. Thank you.

Best to contact support@appsheet.com if you havenโ€™t already done so.

Yes, I did email them since. Thank you @Steve. I guess is my explanation of the problem clear enough in your opinion?

I donโ€™t understand and a little confused. How were these bots created?

I am not aware that there is any automatic conversion of reports to bots yet. Did I miss some announcement?

If not, then that would mean these bots were created manually. So is the issue that the Weekly Event somehow mysteriously changed after being setup correctly?

These were created manually, however I would have opted to use Workflows/Reports would they still have been available.

The issue is that the event was setup for a weekly schedule and the bot correctly shows it is tied to the weekly event. However, when in the BOT configuration screen, it shows the correct (weekly) event but the schedule is set to a monthly schedule. So the bot is showing the right event (by name anyways) but it is not showing the schedule that is tied to that event.

Hopefully that is a clearer explanation, but it is somewhat difficult to explain.

Yes, but when you created the Weekly Event, you would have needed to set the Schedule properties manually in that configuration screen. Did you do that at the time it was created?

Yes, sure did.

Ok, so the implication is that somehow your Event from the Weekly bot mysteriously changed to the same settings as that for the Event from the Monthly bot. That is very strange.

Have you changed it back to the correct settings? Does it keep switching to the wrong ones? Or was it just a one-time issue.

@WillowMobileSystems yes, when configuring the event from the Bot if I change the schedule in Bot 2 for Event 2 then the schedule changes in Bot 1 for Event 1, however under the Events tab Event 1 will show the correct schedule and Event 2 will also show the correct schedule. The respective schedules only seem to change when configuring them from within the Bot setup. However, this is where the problem is, because it seems to execute the bots based on the schedule that is reflected in the Bot setup vs the event setup.

What happens if you update the schedule and save ? Does it update it correctly ?

Do the two views of the event configuration continue not to be in sync ?

Please send an email to support@appsheet.com with your userId, app name and provide support access to the App. We will get the issue fixed.

Just thought I would follow up with some screen shots hopefully for some additional clarification.

@Dan_Bahir Alright I made a video of the ordeal under a separate Appsheet account, even linking the data table to a spreadsheet instead of MySQL database.

Here is the link to the video dfq-gamw-uom (2021-06-28 at 06:19 GMT-7) - Google Drive

I have submitted my issue with a link to this post to Support and was in contact with Oleg last Friday afternoon. We have not come to a resolution to this problem yet. Our last conversation was left off that Oleg saw the correct weekly schedule under the second bot as it should be, however that was not the case for myself. Am I running a different version of the editor maybe? Either way, I have been able to reproduce the issue multiple times by following the steps below. It is also noted that if I change the schedule in the Event within the Bot itself, it interchangeably also matches the schedule in the event of the other bot. Take particular note that the events registered under the actual โ€˜Eventโ€™ tab does not display this behavior.

  1. Start a new application with a data table.

  2. Once the app is setup go to slices.

  3. Setup first slice applying any filter to your only data table.

  4. Setup second slice applying a different filter to your only data table.

  5. Save the application.

  6. Go to Automation.

  7. Start setting up first Bot, select โ€˜create custom botโ€™.

  8. Click on โ€˜Choose an Eventโ€™, select โ€˜create custom eventโ€™.

  9. Choose Event Type โ€˜Scheduleโ€™, select โ€˜ForEachRowInTableโ€™, in Table selection choose โ€˜First Sliceโ€™.

  10. For โ€˜Scheduleโ€™ leave default choice of โ€˜Monthlyโ€™, โ€˜Day of the monthโ€™ as โ€˜1โ€™, Time โ€™12:00pmโ€™, and โ€˜Time Zoneโ€™ as โ€˜UTCโ€™.

  11. Click Add a Step, select create custom step

  12. Select step, leave on default โ€˜Run a taskโ€™

  13. Under โ€˜Task to runโ€™ choose โ€˜Create new taskโ€™

  14. Leave on default selection โ€˜Send an emailโ€™

  15. Under โ€˜Toโ€™ select โ€˜Addโ€™ , choose to enter an expression linked to a Column with an email

  16. Save the application.

  17. Start setting up second Bot, select โ€˜create custom botโ€™.

  18. Clikc on โ€˜Choose an Eventโ€™, select โ€˜create custom eventโ€™.

  19. Choose Event Type โ€˜Scheduleโ€™, select โ€˜ForEachRowInTableโ€™, in Table selection choose โ€˜Second Sliceโ€™.

  20. For โ€˜Scheduleโ€™ change to โ€˜Weeklyโ€™, leave default choices for โ€˜Day of the weekโ€™, โ€˜Timeโ€™, and โ€˜Time Zoneโ€™.

  21. Although from here one can continue setting up the step and task, go to the first bot, click on the event linked to the first bot and note that at this time even though the first bot event was set to โ€˜Monthlyโ€™ it has now been changed to โ€˜Weeklyโ€™ instead matching the event schedule from the second bot even though there are two different events each with their own schedule.

  22. Within the bot itself whenever the โ€˜Eventโ€™ schedule is changed it also changes the event schedule in the other bot. The events themselves under the event tab however stay the way they were initially set up.

For anyone following this, I have arrived to a point where it seems this is a visual issue specifically as it pertains to the event under the bot setting. I have done further extensive testing on an application that was solely created to test this behavior.

What I have found is that when editing the event schedule under the BOT configuration, this schedule will reflect the same under either of the two bots even though the event configuration under the โ€˜EVENTSโ€™ section reflect two different events with different schedules.

I have tested that the events linked to the bots execute correctly by moving the test application to deployment and continually resetting the event schedules to give me almost immediate results in the actual execution of the bots. I found that although the bot event schedule reflect the same schedule, the bots do get executed based on the โ€˜realโ€™ schedule that is reflected within the event under the โ€˜Eventsโ€™ section.

Based on this I have concluded that there must be a visual issue under bot-event-schedule specifically, however I have been unable to remedy this. I have attempted to see differences across different computers as well as browsers, however the โ€˜visual bugโ€™ remains. So still not quiet sure what the issue is or how to resolve it, either way it is somewhat bothersome as this should not be the intended behavior within the editor.

Thanks so much for the detailed repro steps @Markus_Malessa. We will get this fixed.

@Dan_Bahir one additional detail to note.

Earlier I changed the schedule under the Bot for the weekly event schedule for 2pm my local time. I did this in my actual production application because the event never executed last week so I still needed the event to happen anyways. The bot did NOT execute based on the assigned event schedule.

I went back to the event under the EVENT section instead and adjusted the schedule to run at 2:20pm my local time. In this case the scheduled BOT did execute. So the takeaway appears to be that when editing a schedule under EVENT section it properly registers the schedule, when editing the event schedule under the BOT section the schedule does not correctly persist.

Very nice and informative analysis!!! It helps more than you know.

This is fixed

@jared @Dan_Bahir thank you for the prompt attention to this and the quick fix. Really appreciate it. I can confirm that this displays correctly now within my application.

Top Labels in this Space