# Tag history for single array element

**URL:** <https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501>\
**Category:** Ignition\
**Tags:** ignition81, perspective, database\
**Created:** [August 29, 2023, 9:37am UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501 "2023-08-29T09:37:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luca\_Hofmann](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@Luca\_Hofmann](https://forum.inductiveautomation.com/u/Luca_Hofmann)\
**Post date:** [August 29, 2023, 9:37am UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501/1 "2023-08-29T09:37:04Z")

</div>

Hi,

is it possibel to configure tag history on an single array element of a tag (data type: string array).

E.g. only write the string values of Tag[0] to my Database. I don't need the other array elements of that tag ( Tag[1-200] ).

Thanks in advance.

Greetings,

Luca

---

<div class="post-metadata">

**Author:** ![Luca\_Hofmann](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@Luca\_Hofmann](https://forum.inductiveautomation.com/u/Luca_Hofmann)\
**Post date:** [August 29, 2023, 11:02am UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501/2 "2023-08-29T11:02:30Z")

</div>

Found an easy workaround. If there is a better way please let me know.

Note: it's only viable if a limited number of elements need to be historized

Workaround:

- create a ReferenceTag that gets its value by refering to the array tag element like: Tagpath/value[0]
- use tag history on the reference tag, so i indirectly get only the Values of Tag[0] written into my Database.

---

<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 29, 2023, 12:08pm UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501/3 "2023-08-29T12:08:31Z")

</div>

Good solution. I doubt there's a better one: It's simple, clear, and uses basic built-in features.  
You should probably mark your own post as solution.  
Maybe note that it's only viable if a limited number of elements need to be historized.

---

<div class="post-metadata">

**Author:** ![Luca\_Hofmann](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@Luca\_Hofmann](https://forum.inductiveautomation.com/u/Luca_Hofmann)\
**Post date:** [August 29, 2023, 12:13pm UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501/4 "2023-08-29T12:13:29Z")

</div>

Alright, thanks for the reply.  
I'll keep it "unsolved" until tomorrow, just in case there is a another good idea.

---

<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 29, 2023, 12:14pm UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501/5 "2023-08-29T12:14:37Z")

</div>

You can always change the marked post if a better solution comes along.

---

<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:** [August 29, 2023, 12:24pm UTC](https://forum.inductiveautomation.com/t/tag-history-for-single-array-element/78501/6 "2023-08-29T12:24:19Z")

</div>

If the source of the string array is an Ignition native driver, you might consider just making a separate OPC tag for that one element. (Or all of them. No performance hit for a native driver--it'll optimize anyways.)
