# No viable alternative to .... after \[default\]path/to/tag

**URL:** <https://forum.inductiveautomation.com/t/no-viable-alternative-to-after-default-path-to-tag/61908>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 14, 2022, 3:40pm UTC](https://forum.inductiveautomation.com/t/no-viable-alternative-to-after-default-path-to-tag/61908 "2022-07-14T15:40:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_Flora](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Paolo\_Flora](https://forum.inductiveautomation.com/u/Paolo_Flora)\
**Post date:** [July 14, 2022, 3:40pm UTC](https://forum.inductiveautomation.com/t/no-viable-alternative-to-after-default-path-to-tag/61908/1 "2022-07-14T15:40:48Z")

</div>

Hello I am quite new to ignition.  
I need to update two memory tags only when the user clicks on a button so I am trying to build a list of parameters in order to call system.tag.writeblocking(Varl\_list, Value\_list, timeout)

here is my code:  
# Create a list with the tag paths to be updated.  
paths = [“[default]Produzione/ActDiametro”,“[default]Produzione/ActSpessore”]

```
# Create a list with the update values, one value for each path.
values = [{[default]configurazioni/SelectedCode[0,1]},{[default]configurazioni/SelectedCode[0,2]}]
 
# Execute the write operation.
system.tag.writeBlocking(paths, values,500)

```

I get the error:

org.python.core.PySyntaxError  
File “function:runAction”, line 9  
values = [{[default]configurazioni/SelectedCode[0,1]},{[default]configurazioni/SelectedCode[0,2]}]  
^  
SyntaxError: no viable alternative at input ‘configurazioni’

How can I fill in the values list with the value taken from other tags ?

Thank you.

---

<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:** [July 14, 2022, 3:50pm UTC](https://forum.inductiveautomation.com/t/no-viable-alternative-to-after-default-path-to-tag/61908/2 "2022-07-14T15:50:50Z")

</div>

You have to read the tags using `system.tag.readBlocking()`. This function will return a list of qualified values, 1 for each supplied tag path. The order of the QV’s in the list will match the order of the tag paths.

Something like:

```python
readPaths = ["[default]Produzione/ActDiametro","[default]Produzione/ActSpessore"]
readValues = [qValue.value for qValue in system.tag.readBlocking(readPaths)]

writePaths = ["[default]configurazione/SelectedCode","[default]configurazioni/SelectedCode"]

system.tag.writeBlocking(writePaths,readValues)

```

Obviously, I don’t know your tag structure so this may well not work for what you’re actually trying to do, just trying to illustrate what is needed.

From your syntax, it appears as though you are mixing the expression language and scripting. They are not the same.

---

<div class="post-metadata">

**Author:** ![Paolo\_Flora](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Paolo\_Flora](https://forum.inductiveautomation.com/u/Paolo_Flora)\
**Post date:** [July 15, 2022, 6:39am UTC](https://forum.inductiveautomation.com/t/no-viable-alternative-to-after-default-path-to-tag/61908/3 "2022-07-15T06:39:37Z")

</div>

Noted, now it works.

Thank you
