# Ignition Report Scheduled, triggering too many times

**URL:** <https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595>\
**Category:** General Discussion\
**Created:** [May 11, 2023, 2:33pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595 "2023-05-11T14:33:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [May 11, 2023, 2:33pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/1 "2023-05-11T14:33:08Z")

</div>

Hello,

I have some reports scheduled to email users. Every things works fine but We are getting 3 emails for one scheduled email report at the same time. any ideas or have anyone of you experienced anything like this?

Thanks!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [May 11, 2023, 2:44pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/2 "2023-05-11T14:44:52Z")

</div>

Without seeing how you have the schedule set up, it's going to be tough to help. If you can't post your schedule and email action, put the `reporting.Data` logger onto debug, then filter by your project and report and see if that gives any clues.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 11, 2023, 3:30pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/3 "2023-05-11T15:30:12Z")

</div>

Any project inheritance involved in your setup?

---

<div class="post-metadata">

**Author:** ![Irfan\_Shaik](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@Irfan\_Shaik](https://forum.inductiveautomation.com/u/Irfan_Shaik)\
**Post date:** [February 6, 2024, 6:22am UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/4 "2024-02-06T06:22:19Z")

</div>

Was there any update on this ? I have a similar issue for a report that is configured in global project . Email is being triggered 11 times at scheduled time of 4AM daily . I have around 13 projects on this gateway including Global one. I have observed similar situation on the report that is configured on global project being triggered multiple times at a different site . Here are schedule details.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/1/e1eefcda28295623de5c5d41a88d0eaeede01972.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/b/0b1ba7ee9a3d32b44e58310b26ac6588efdda710.png)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 6, 2024, 11:19am UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/5 "2024-02-06T11:19:16Z")

</div>

> [@Irfan\_Shaik](#):
>
> a report that is configured in global project

Any leaf project inheriting it will also execute the report.

I put automated reports into their own leaf project.

---

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [February 6, 2024, 11:20am UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/6 "2024-02-06T11:20:40Z")

</div>

Configuring on global will trigger a report one for each project. We just moved the individual reports to the concerned project. But I am not sure if you can define for which project you can trigger the report when you configure it on global.

---

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [February 6, 2024, 12:48pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/7 "2024-02-06T12:48:51Z")

</div>

If you would like to not move the reports to the projects, you could use [system.report.executeReport] **system.report.executeReport(path, project, [parameters], fileType)**([https://docs.inductiveautomation.com/display/DOC81/system.report.executeReport](https://docs.inductiveautomation.com/display/DOC81/system.report.executeReport))  
and execute the report for the project you want to execute the report for.

in a case we configured a gateway timer script with a 15000 ms fixed delay and wanted to execute the report at around 4 pm. we needed to define a 20 second interval to trigger the execution because of the fixed delay. Not the best way to do it but it does the job for us. (note if your interval is longer then this code will trigger multiple times, in our case 20 seconds is perfect to not miss the schedule time and trigger just ones. works like a charm for us...)

```auto
#Sample:
target = system.date.now()
start = system.date.setTime(target, 16, 30, 00)
end = system.date.setTime(target, 16,30, 20)

if system.date.isBetween(target, start, end):
	#pdf report
	reportParameters = {"StartDate":system.date.addHours(system.date.now(), -10), "EndDate":system.date.now()}
	settings = {"to":["a.mad@go.com","ss.Conne@msre.com","Fcico.Sal@em.com",niel.cl@utot.com"], 
	"smtpServerName":"Mail Relay", "from":"Report@Ign.com", "subject":"Plant Daily Production data"}
	system.report.executeAndDistribute(path="reports/Daily Report", project="MES_Mobile", parameters=reportParameters, action= "email", actionSettings = settings)

```

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 6, 2024, 12:52pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/8 "2024-02-06T12:52:01Z")

</div>

Mahesh, please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).  
There's a pencil icon below your post so you can fix it.

Are you really posting company emails on the forum?

---

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [February 6, 2024, 12:53pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/9 "2024-02-06T12:53:21Z")

</div>

Thank you Transistor. i didn't know that... 😀

---

<div class="post-metadata">

**Author:** ![Mahesh\_Madapathi](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@Mahesh\_Madapathi](https://forum.inductiveautomation.com/u/Mahesh_Madapathi)\
**Post date:** [February 6, 2024, 12:54pm UTC](https://forum.inductiveautomation.com/t/ignition-report-scheduled-triggering-too-many-times/73595/10 "2024-02-06T12:54:28Z")

</div>

Nope. Those names and emails are dummy 🤣
