Reports are running more than once

Why are some of my reports running multiple times?

 

I have several reports that send out emails to clients.  We get 4 emails sometimes for the same report.  This one is set up to send out an email daily(weekly) at 9 AM CST.  Yet I get 4 emails.  Why?

 

Tiger1_0-1650983796752.png

 

0 53 735
53 REPLIES 53

Are you using multiple emails in teh To, CC & BCC boxes?

Yes:

 

Tiger1_0-1651063226636.png

 

Try reducing to 1 email address and see if this solves issue

ok.  Is this a bug?  Or is that what we have to to do?

Did doing that test fix the duplicate issue?

No.  In fact now it sent 3 emails to only one recipient.  AND it kept the old recipients and sent 3 emails as well?    So I got 6 emails this time?

In the email To/Cc/BCC box are use using "me@email.com" or some formula?

me@email.com for each one

Are you sure you don't have three different bots all doing the same thing?

Yes.  Here are the bots and the corresponding email templates:

Tiger1_0-1651071927402.pngTiger1_1-1651071956234.png

Here is one email template - location 31:

Tiger1_2-1651071993692.png

 

Right the template has no bearing whatsoever

 

Disable all bots apart from one to see if that fixes it.  I think @Steve is looking right.  I suspect you have multple bots triggering.  You can check this by going into a box and selecting monitor and have a look if they all trigger together

For reference:
AppSheet Monitor

I found this for one location - 31?

Tiger1_0-1651073750827.png

 

I also checked - "trigger other bots" - it looks right to me:

Tiger1_1-1651073853097.png

 

I did find this....

If I look at monitor - it shows the same location process twice - 3 min apart?

Tiger1_0-1651074077042.pngTiger1_1-1651074102650.png

 

Ok.  I am now looking at my tasks.  This looks weird to me:

Tiger1_0-1651074313922.png

Tiger1_1-1651074326325.png

 

Task at the bottom are not associated with any table, that's why it says "Other".

Maybe you changed your tables recently

I never touched them - for about 6 months?

I cleaned up the tasks:

Tiger1_0-1651074751638.png

However,  I noticed under - Process, Events and Bots - "other" is there as well?

Tiger1_1-1651074804220.png

But when I click on them - it shows - "table" = Geoforce - which is correct...

Tiger1_2-1651074854821.png

 

 

 

 

I understand that it's confusing.

Try to read about each of the parts around automation:

Bots: The Essentials | AppSheet Help Center

Process: The Essentials | AppSheet Help Center

Event: The Essentials | AppSheet Help Center

Step: The Essentials | AppSheet Help Center

Task: The Essentials | AppSheet Help Center

Anyway, your process has no table.

SkrOYC_0-1651074709214.png

But as far as I know it doesn't need it because those are scheduled reports.

Again, be careful before changing anything

Yeah.  Since they are all "scheduled" - None is I guess the required entry.  I will see if this all works now. 

 

Thanks

Ok.  It seems to have cut it down from 4 emails to 2?

 

But why two?

Are you sure that the emails aren't duplicated on to, CC, BCC?

I don't know if that could be related but maybe..

Yeah - see below.  This is one of the bots:

Tiger1_0-1651160799057.png

 

Here are the bots - snapshots:

Tiger1_1-1651160856855.pngTiger1_2-1651160882041.pngTiger1_3-1651160900775.pngTiger1_4-1651160914307.png

 

Btw, this is a bot that should trigger for different locations?

Have you tried by making just 1 BOT and then branch on conditions to select which task should be executed?

This is 5 different bots.  They basically do the same thing.  Except each bot calls a slightly different email template.  In the templates I specify the location.  I have not tried cutting back to just one.

Can we use multiple bots per app?  Again, this is 5 bots for one app.  They are basically doing the same thing.  However, each calls a different email template.  So they are 5 different bots.  Is this not ok to do?

I think the question is this not okay to do is very subjective and should be looked at on a case-by-case basis.

What is efficient or easy to process for individuals may or may not be the best way to “program” a task in terms of platform (for a lot of different reasons such as speed, sync times, data integrity, etc.)

The question we should all ask ourselves is “Is there a better way to do this”.

Even without knowing the differences in your templates, I strongly would advise getting as close to one automation/bot as possible. You can achieve this with conditions, “dynamic” expressions and even third party integrations! 

I do not know how to write an expression to choose which email to send per [location_code] using one bot.

You can make one bot that triggers at 09:00 am.

Then you can have a step that branches on a condition to decide if a task should be executed and a step to a task if that condition is yes or no.

Then you can have multiple of the above step pairs as needed.

I have one bot that sends a certain generated pdf to different emails and create 4 emails in the process to different people that shouldn't know about each other's emails

Ok.  I see what you are talking about.  However, I can't make a condition because it is not looking at a table - its a scheduled event:

Tiger1_0-1651254444393.png

 

 

What do you see when you look in Audit History?
https://help.appsheet.com/en/articles/5317105-troubleshooting-emails
The Audit History is almost always the first place to look when trying to diagnose workflow emails.

It shows each bot twice:

 

Tiger1_0-1651495109298.png

 

Audit History shows each scheduled bot running once. There are two audit records because the first reflects the start and the second reflects the finish of the bot.

 

so technically its right?  Why do i get multiple emails PER bot?

The Audit History lists the people who will receive the email in the audit record.
What does it contain?

It shows each bot - twice.  One per process then one per task.  But it ONLY shows my email under users (I blacked them out)?

Tiger1_0-1651763060729.png

 

 

Something I am noticing,  I have a process emailing and the task?  Is that right?

 

Process:

Tiger1_0-1651763809175.png

Task:

Tiger1_1-1651763855055.png

 

Top Labels in this Space