# Nested paths on data type expressions?

**URL:** <https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279>\
**Category:** Ignition\
**Created:** [December 7, 2018, 3:22am UTC](https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279 "2018-12-07T03:22:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdixon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdixon/32/6899_2.png) [@pdixon](https://forum.inductiveautomation.com/u/pdixon)\
**Post date:** [December 7, 2018, 3:22am UTC](https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279/1 "2018-12-07T03:22:22Z")

</div>

I created a data type in which I will have a parameter to indicate an alarm condition. I want to use it with an indirect reference, so that that the Index will be used in the tag path on each instance as follows:

tag{“Tags/Ramp/Ramp”+{Index))\>250

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/dddd1b56ee4197fd94bc8378109da55df5ca3f89.jpg)

This produces an error in the instance “Nested paths not allowed”  
Error configuring tag for execution. Error:  
Scan Error: Nested paths not allowed. (Line 1 , Char 25)

Is there another way to do this?

---

<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:** [December 7, 2018, 1:44pm UTC](https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279/3 "2018-12-07T13:44:24Z")

</div>

Replace your curly braces with regular parenthesis.

---

<div class="post-metadata">

**Author:** ![pdixon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdixon/32/6899_2.png) [@pdixon](https://forum.inductiveautomation.com/u/pdixon)\
**Post date:** [December 7, 2018, 2:12pm UTC](https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279/4 "2018-12-07T14:12:22Z")

</div>

Thanks for your replies. I fixed the problem; the function tag() requires parens and the parameter Index requires curly braces.

---

<div class="post-metadata">

**Author:** ![sachin\_chavan](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sachin\_chavan](https://forum.inductiveautomation.com/u/sachin_chavan)\
**Post date:** [March 26, 2024, 9:56am UTC](https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279/5 "2024-03-26T09:56:16Z")

</div>

{[edge]AIT\_001/H\_Alarm}

I am getting the error, nested path not allowed.  
How I can use the indirect tag as **AIT\_001** in the expression?

---

<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 26, 2024, 11:27am UTC](https://forum.inductiveautomation.com/t/nested-paths-on-data-type-expressions/21279/6 "2024-03-26T11:27:44Z")

</div>

Create a custom property to retrieve the indirect tag. Use that property at that spot in your expression.
