Automation Web

Hi all, Iโ€™m still in the process of getting familar with appsheet automation processes but I have been having difficulty getting one of them to work. Itโ€™s a webhook workflow that we have been developing for some time. We originally created this in test apps as a workflow, but was still in development when the automation function was deployed.

It seems as though each time I create and test the process it works perfectly, but I have tried deploying it 3 times now and it keeps breaking or just partially functions?

I donโ€™t feel confident enough in the process to deploy it again. For example, I tried to complete the process this morning and received an error in the monitor app - pictured below.
3X_7_6_76937bc5b3b0be955cfc7bb7adb9d97abfd4d960.png

And then tried again a few minutes later and the BOT worked as expected. See below two operations today.
3X_1_f_1fe71e6c3fc85de742c830fb30c8d6ae25a1c3da.png

I donโ€™t want to deploy this BOT in live projects because it hasnโ€™t proven to be stable?
Most of the time when it doesnโ€™t work I donโ€™t get any error feedback in the monitor app.
How can it go from working to broken on a day to day basis like this?

I will attach screenshots of the automation below if there is anything Iโ€™m doing incorrectly. I have had communication with support heavily during the creation process.

BOT:

Material Added:

BODY:
{
โ€œActionโ€: โ€œAddโ€,
โ€œPropertiesโ€: {
โ€œLocaleโ€: โ€œen-GBโ€,
โ€œLocationโ€: โ€œ48.220599, 16.239976โ€,
โ€œTimezoneโ€: โ€œGMT Standard Timeโ€
},
โ€œRowsโ€: [
<<START: SELECT([Related Material Take Offs][Line Reference],IN([Line Reference],[Request Material]))>>
{
โ€œOrder Noโ€:โ€œ0โ€,
โ€œLine Referenceโ€:"<<[Line Reference]>>",
โ€œMech/Elecโ€:"<<[Mech/Elec]>>",
โ€œRequested Dateโ€:"<<TODAY()>>",
โ€œLocation Areaโ€:"<<[Block]>>",
โ€œRequest Typeโ€:โ€œDraw Offโ€,
โ€œSub-Areaโ€:"<<[Level]>>",
โ€œTake Off Groupโ€:"<<[Take Off Group]>>",
โ€œProduct Groupโ€:"<<[Product Group]>>",
โ€œProduct Sub-Groupโ€:"<<[Product Sub-Group]>>",
โ€œProductโ€:"<<[Product]>>",
โ€œProduct Codeโ€:"<<[Product Code]>>",
โ€œQty Requestedโ€:"<<IF(ISNOTBLANK([Required Qty]), [Required Qty], [Take Off Qty])>>",
โ€œQty Orderedโ€:"<<IF(ISNOTBLANK([Required Qty]), [Required Qty], [Take Off Qty])>>",
โ€œUnitโ€:"<<[Unit]>>",
โ€œRequested Byโ€:"<<[Requested By]>>",
โ€œDate Requiredโ€:"<<[Take Off Group].[Date Required]>>",
โ€œRequested Delivery Timeโ€:"<<[Take Off Group].[Required Start Time]>>"
}
<>
]
}
Update Status:

BODY:
{
โ€œActionโ€: โ€œEditโ€,
โ€œPropertiesโ€: {
โ€œLocaleโ€: โ€œen-GBโ€,
โ€œTimezoneโ€: โ€œGMT Standard Timeโ€
},
โ€œRowsโ€: [
<<START: SELECT([Related Material Take Offs][Line Reference], IN([Line Reference],[_THISROW].[Request Material]))>>
{
โ€œLine Referenceโ€: โ€œ<<[Line Reference]>>โ€,
โ€œRequest Statusโ€: โ€œRequestedโ€

}
<>
]
}

Reset Material List:

0 12 308
12 REPLIES 12

Because the error message says that it is a time out issue, the โ€œproblemโ€ is likely that your process can vary from short enough to taking too long. If you look at like sync times, they can vary even on the same device with no changes by, in my case, like 30%+.

Can I ask why you use a webhook to do the datachange? Is this table not in the base app?

Yes it is, should I use the Reset on edit options within the column itself instead of the webhook?

In my humble opinion, new BOT is not stable enough to move to Production, bunch of stuffs should be addressed and improved before that.
I hope Appsheet/Google team will reconsider their schedule to transform workflow onto Automation rather than starting it now.
After Google aquition, we are not sure if users voice is reaching to them, so I become speachless โ€ฆ

If the transformation from workflow to Automation happens now, I bet the bunch of issues would arise and we , all app creators would be in troubles for sure.

This is another example.

How does my exisiting workflow will be transformed while the new bot configulation does not have target table seeting for scheduled event?

If it is transformed, i m pretty much sure the new bot (App) will be broken.

Totally agree. We as users were very happy with the Workflow process. It was simple to implement, did what we needed and was reliable. Additional functionality is great but only if it has been thoroughly tested before implementation. I really donโ€™t understand the rush to implement these buggy Bots. Put in Beta and let us as users test it.

These are the execution times reported in the monitor yesterday from the two different tests.

Your JSON body expression for select coupled with nested IN () expression. This is one of the most โ€œheaviestโ€ expresion among other in Appsheet. If your table is large enough, it takes sometime, wihch may result in timeout error.

This is what I noticed.

Steve
Platinum 4
Platinum 4

This may be unrelated but since youโ€™re getting a โ€œtook too long to processโ€ error you might be impacted by the same issue weโ€™re having. TL;DR recent drop in performance is causing some of our processes to fail.

If it worked previously but only started having issues in the past several days, it could be related.

  1. Did you get a change to look at the performance analyzer to understand which parts of your execution take the most time ? If there are expressions that take long to compute they might exceed the timeout under some system conditions.

  2. If you can use a data-action instead of a webhook that is preferred.

What is defined as too long? How much time do we have? What is timeout set to?

The reason we changed to a webhook was because action was taking too long. Was taking half an hour to add 50 rows to a table. The webhook takes about a minute when it actually works.

Top Labels in this Space