# Separate tag chain

**URL:** <https://forum.inductiveautomation.com/t/separate-tag-chain/60513>\
**Category:** Ignition\
**Tags:** ignition80, database, vision\
**Created:** [June 8, 2022, 8:00pm UTC](https://forum.inductiveautomation.com/t/separate-tag-chain/60513 "2022-06-08T20:00:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio.sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@antonio.sanchez](https://forum.inductiveautomation.com/u/antonio.sanchez)\
**Post date:** [June 8, 2022, 8:00pm UTC](https://forum.inductiveautomation.com/t/separate-tag-chain/60513/1 "2022-06-08T20:00:49Z")

</div>

Hello everyone, I have an event tag to store information.

I have an event tag to store the information displayed on the screen

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

it’s just sending me an error

```auto
([default]Botones/Linea_FBW/Falla Linea FBW, valueChanged) Error executing tag event script: Traceback (most recent call last): File "<tagevent:valueChanged>", line 21, in valueChanged at com.inductiveautomation.ignition.common.script.builtin.AbstractDBUtilities.error(AbstractDBUtilities.java:362) at com.inductiveautomation.ignition.common.script.builtin.AbstractDBUtilities.runPrepUpdate(AbstractDBUtilities.java:258) at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) java.lang.Exception: java.lang.Exception: Error executing system.db.runPrepUpdate(INSERT INTO PAROS (Linea, Maquina, TipoParo, TiempoParo, Fecha, MODELO) VALUES (?, ?, ?, ?, ?, ?), [Linea_FBW, 23, 1, 00:03:00, Tue Jun 07 19:11:16 CDT 2022, [DC-A8F0-00, Good, Mon Jun 06 11:40:25 CDT 2022]], TOPY_MW, , false, false)

```

I know that the error is in how I am reading the tag “Model”.

I would like to know how I can make it show me only the data I need **(“DC-A8F0-00”)** and not send me the whole string.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [June 8, 2022, 8:24pm UTC](https://forum.inductiveautomation.com/t/separate-tag-chain/60513/2 "2022-06-08T20:24:09Z")

</div>

Do not post screenshots when possible, instead post the script and format it with the `</>` button.  
Tag reads are fully qualified values and should be read in groups for optimization.

```auto
tagPaths = ["[.]Tipo_Falla", "[.]Maquina","Linea de RIM/SH-1/ProductionData/PartNumber", "[.]TimeDiff-FBW"]
tags = system.tag.readBlocking(tagPaths)

Tipo = tags[0].value
Maquina = tags[1].value
Modelo = tags[2].value
timeDiff = tags[3].value

```

You used the value property on the timeDiff read which is interesting why you didn’t on the others. The other properties you can use are `quality` and `timestamp`.
