I am looking for either confirmation that others are having this issue
…OR that others have successfully implemented a similar process.
Depending on answers I will open a ticket to support.
EDITED: From another conversation thread, I added a Wait step into the Bot between the Script call and the row update. all rows are now properly updating. The theory is that the update step runs before the returned values are ready to be used. This is a workaround that adds to the overall run time. For my use case it is acceptable. Hopefully, AppSheet will resolve this obvious design issue soon.
I have 2 Bots that retrieve miles and hours values from Google Directions service using the exact same function in a Google script. Bot #1 runs via button tapped by the user for a single row. Bot #2 is a Scheduled Bot designed to update a batch of rows that did not get the directions results - i.e it runs on a list of rows.
Images below.
Issue…
When the Scheduled Bot runs, every row reflects in the logs that there ARE indeed returned values from the script. BUT…only a row or 2 (out of batch of 30 plus) actually updates the associated row. The remainder are not updated. There are no errors logged.
If I then manually run each of those rows via the button to execute Bot #1, same process, the rows are updated.
Additionally, if I limit Bot #2 to a single row, the row will properly update. If I limit it to 3 rows, only the first row updates
Attempts to Resolve…
I have tried configuring the Google Script to return an Array of values, as well as an Object. I have also tried turning off all options on Bot #2 - triggering other bots, wait for Sync. The results are always the same.
Conclusion…
I believe that there is an AppSheet bug for Scheduled Bots running with a Script that returns values. Only a few random rows are successfully updating and potentially none at all.
Images
Step to call Google Script
Step that Saves returned values
Log entry reflecting Script return values - good for every row
Expected log result - only occurs for 1 or 2 out of 30 rows
Usual Log result - most rows are not getting updates in the Save Results step




