# Problem with executing scripts in pipeline using splitter

**URL:** <https://forum.inductiveautomation.com/t/problem-with-executing-scripts-in-pipeline-using-splitter/103778>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [March 17, 2025, 1:30pm UTC](https://forum.inductiveautomation.com/t/problem-with-executing-scripts-in-pipeline-using-splitter/103778 "2025-03-17T13:30:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [March 17, 2025, 1:30pm UTC](https://forum.inductiveautomation.com/t/problem-with-executing-scripts-in-pipeline-using-splitter/103778/1 "2025-03-17T13:30:11Z")

</div>

Hello,

I am trying to trigger two scripts with a pipeline using a splitter. Only one script always executes if I connect both, in the first output of the splitter. The second one never executes. The scripts are correct because I tested it separately. What could be the reason for this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/d/3db548dd9fbc5e416ef2382c288be9d4aa9d851e.png)

Best regards,  
Michał

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 17, 2025, 2:12pm UTC](https://forum.inductiveautomation.com/t/problem-with-executing-scripts-in-pipeline-using-splitter/103778/2 "2025-03-17T14:12:47Z")

</div>

Are they slow scripts? Is there a possibility that it is executing after the first one completes?

---

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [March 17, 2025, 2:31pm UTC](https://forum.inductiveautomation.com/t/problem-with-executing-scripts-in-pipeline-using-splitter/103778/3 "2025-03-17T14:31:13Z")

</div>

```python
def handleAlarm(event):
		
	site = event['FullName']
	timestamp = system.date.now()
	description = event['displayPath']
	EmailNotification.EmailSentConfirmation.emailSent(site, timestamp, description)

```

```python
def handleAlarm(event):
	
	def createTagPath(itemPath):
	    listOfElements = itemPath.split('/')
	    ID = listOfElements[0]
	    tagPath = '[{}]'.format(ID) + '/'.join(listOfElements)
	    return tagPath

	    
	itemPath= event['itemPath']
	tagPath = createTagPath(itemPath)
	
	system.tag.writeBlocking(tagPath, False)

```

Nothing unusual - write to the tag or insert into the database in the second case

I put it in one and it works but I wonder why it didn't work before. I also tried connecting scripts in series with the option that the first one returned true as it finished and also the second one didn't work

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 17, 2025, 2:59pm UTC](https://forum.inductiveautomation.com/t/problem-with-executing-scripts-in-pipeline-using-splitter/103778/4 "2025-03-17T14:59:10Z")

</div>

Hmm. No idea.
