# Syntax error while configuring scripting for scheduled

**URL:** <https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [August 14, 2023, 6:20am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797 "2023-08-14T06:20:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [August 14, 2023, 6:20am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/1 "2023-08-14T06:20:34Z")

</div>

Hell dear,

I got error while configuring scheduled scripting in gateway event script.

Error : syntexError : mismatched input 'paths' expecting INDENT

PFA attached picture of the error and code.

 ![ERROR](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b7d0445d287be684ada589d29267e8842b45cd52.png)  
 ![SCRIPT](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/1/212c49df7bf1c58bdcd5b3a1eebf706ae838454e.png)

---

<div class="post-metadata">

**Author:** ![Carel\_de\_Jager](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carel_de_jager/32/50760_2.png) [@Carel\_de\_Jager](https://forum.inductiveautomation.com/u/Carel_de_Jager)\
**Post date:** [August 14, 2023, 9:03am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/2 "2023-08-14T09:03:33Z")

</div>

You need to indent everything from line 2 and down.  
Highlight everything from line 2 downwards and press tab once.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 14, 2023, 9:32am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/3 "2023-08-14T09:32:49Z")

</div>

The error message says it clearly:

> SyntaxError: mismatched input 'path' **expecting INDENT**

You'll also need to surround the path with quotes, as it should be a string:

```python
paths = "[Sample_Tag]Writeable/WriteableInteger2"

```

---

<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:** [August 14, 2023, 10:17am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/4 "2023-08-14T10:17:50Z")

</div>

Also, your values line will need to be aligned with your paths line.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 14, 2023, 12:31pm UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/5 "2023-08-14T12:31:47Z")

</div>

Also, also `system.tag.writeBlocking()` takes a list of paths and a list of values, so you’ll need to surround the parameters with square brackets at least.

```auto
system.tag.writeBlocking([paths],[values])

```

---

<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:** [August 14, 2023, 12:37pm UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/6 "2023-08-14T12:37:16Z")

</div>

> [@lrose](#):
>
> takes a list of paths and a list of values

I believe you can do single tag / single value now, but I will agree that it's better to get into the habit of always using lists.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 14, 2023, 12:51pm UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/7 "2023-08-14T12:51:33Z")

</div>

especially when the variable names are path **s** and value **s**

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 14, 2023, 1:05pm UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/8 "2023-08-14T13:05:17Z")

</div>

You can, but I try to keep that secret to myself.

---

<div class="post-metadata">

**Author:** ![govind](https://avatars.discourse-cdn.com/v4/letter/g/ac91a4/32.png) [@govind](https://forum.inductiveautomation.com/u/govind)\
**Post date:** [August 16, 2023, 4:57am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/9 "2023-08-16T04:57:01Z")

</div>

I also tried this option.

But, it's not worked.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 16, 2023, 6:08am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/10 "2023-08-16T06:08:13Z")

</div>

What did not work ? What errors do you get ?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 16, 2023, 11:47am UTC](https://forum.inductiveautomation.com/t/syntax-error-while-configuring-scripting-for-scheduled/77797/11 "2023-08-16T11:47:44Z")

</div>

This is what your script should look like, try it and report back the actual error message.

"it's not worked" is not an adequate description of the issue. We can't help you if we don't know what's going wrong.

```python
def onScheduledEvent():
    paths = ['[Sample_Tag]Writeable/WriteableInteger2']
    values = [76]
    system.tag.writeBlocking(paths,values)

```
