Automation Monitor or Audit History ? Which one should I trust ?

I am just frustrated spending few hours to figure out the issue.

Everything is working fine with BOT: Soft Delete | Product Transactions From Products Stock Adjustments | Execute Still SHOWS ERROR in automation monitor.

1/2 Action in process inside bot: Soft Delete | Product Transactions From Products Stock Transfer | Execute is working and 2/2 action which is setup exactly like above bot does not complete the second action to return value to parent table. SHOWS ERROR in automation monitor and Success in audit history

Show error in Automation Monitor Shows success in AUDIT History

![Screenshot 2023-02-13 at 12.25.44 PM.png
2686x1764](upload://5d5kHWTZVT4wTZtVgyxT3rTN2lj.png)

Not sure how to fix this now because both have same setup but in different table and I spent hours wasting time on it. Contacted support and no solutions till now.

4 Likes

There maybe or may not be solution and it could be an inherent bug between automation monitor and audit history.

However, if could share more details on your bot set up and relevant columns of the underlying table(s), there maybe a chance someone could suggest a workaround.

2 Likes

Thanks @Suvrutt_Gurjar . I have a bot that triggers two tables on delete.

ACTION 01: To run an action on table Product Transaction when row is deleted in Product Transfer table

Result of action 01:Works fine :white_check_mark:

Action 02: Call process that updates back Product Table to update available quantity. This process is used by multiple bots from different table to update back product table.

Does CALL PROCESS Trigger on DELETE?

This CALL process does not work for this table but works for other tables. But monitor still shows error.

Shows success here when I test it

I couldn’t find much detail about CALL A PROCESS anywhere

Spent around two hours with Appsheet support and they don’t have any answer to this but told me to wait for 24 hours. I have to see if they find whats wrong.

1 Like

BOT NAME: Soft Delete | Product Transactions From Products Stock Transfer | Execute

In app: ACTION 01 works. :white_check_mark: ACTION 02 Fails. :cross_mark:
In automation monitor: Shows Error :cross_mark:
In Audit History: Shows success :white_check_mark:

BOT NAME: Soft Delete | Product Transactions From Products Stock Adjustments | Execute

In app: ACTION 01 works. :white_check_mark: ACTION 02 Works. :white_check_mark:
In automation monitor: Shows Error
In Audit History: Shows success :white_check_mark:

Both Uses Same process to return value in product table. But only for second bot it returns value.

1 Like

This definitely a bug

1 Like

Thank you for all the details. Could you mention the entire bot process, meaning how the bot is invoked" .

On which table the bot event gets invoked? Something like below.

Edit: Sorry, I missed that you have already posted the screenshot of the evenyt

1 Like

Could you update step details of the process “Call | Update Available Quantity”

And (parent-child ) relationship between Product, Product Stock Transfer and Product Transactions tables?

Also you may want to share why you mention below?

You may want to share the expansion of the following step?

1 Like

Here is the expansion

1 Like

| The bot that triggers on delete record of table Product Stock Transfer |


|
| - | - |
|

Product Stock Transfer has columns PRODUCT ID and PRODUCT TRANSACTION ID on each row when creating the record.



Product transactions rows are already created in PRODUCT TRANSACTION table for each row

|

|
|

Here is the first action that triggers and updates as “DELETED” in Product Transactions table.

|

|
| Here is the result of successful trigger for first action |

|
| ACTION 02- This is the action that triggers a process in PRODUCT Table using reference PRODUCT ID that is shown in PRODUCT STOCK TRANSFER TABLE |

|
| Detail of above process that updates available quantity |

|

As per AppSheet Support he says the record is already DELETED so it is not updating AVAILABLE QUANTITY column because it is not returning the Product ID.

Then my question is how is the first action triggered and updated back in PRODUCT TRANSACTION TABLE same row has IDs and second action does not work.

Then what is the use of Automation bot with data change event DELETES ONLY ?

1 Like

Thank you very much for all details. Will go through in detail. But quickly following points to think about:

My current though is also exactly same. Please refer the discussion below.

Help with Grouped Action - execute a sequence of a… - Google Cloud Community

Also please refer the error displayed in the automation monitor, highlighted with orange arrow, which I believe related to deleted row?

You are correct in your question. I was also wondering how other subsequent actions/automation is firing on delete. That is why requested more details. Will delve over and revert if I come across something tangible. Now that you have shared excellent details, other community colleagues may also have insights.

3 Likes

If the delete action in Product Transfer table is invoked by the user through action button manually Instead of bot , then you could possibly create a group action in the sequence

  1. Action 1 you described

  2. Action 2 you described

  3. Delete action on the Product Transfer table

The user can then invoke the sequence by tapping on the group action.

2 Likes

Yes @Suvrutt_Gurjar you are right and I feel like this is a bug in automation and can cause soo much issues if root cause is not found. Usually we do not go into automation monitor to check this on daily basis.

Yes, correct. I hope AppSheet team looks into it on proper sync between audit history and automation monitor statuses.

In the meantime, you could test your functionality by rearranging the action sequence to get it going.

2 Likes

I am aware of this but I think it appears as prominent and will not be able to have it in top bar near sync button in mobile devices.

Also, wanted to use in BOT instead of changes in action. The available quantity must be updated by AppSheet server instead of device side update as it can cause errors if a user does not have latest value.

Automation is junk.

2 Likes

My entire day was gone trying to find issues in my setup and couldn’t find none. Also, TRYING to explain AppSheet support how it should behave when automation is used. But no hopes. Things were easy when @Aleksi was there and he used to understand issues in just couple of messages. I hope good days of AppSheet come back.

3 Likes

Oh okay. Are you able to save the product key from the Product Transfer table to the Product Transactions table in action 1 in the bot? You can then probably use that key value in action 2?

1 Like

It is passing values to product transactions table yes. And already have Product ID in transaction table. How is it used in action 02 ? This bot is triggered in Product stock transfer table. I might need another bot in product transaction table to trigger product table.