# Tag config - historyEnabled issue

**URL:** <https://forum.inductiveautomation.com/t/tag-config-historyenabled-issue/103468>\
**Category:** Ignition Early Access\
**Tags:** ignition81\
**Created:** [March 10, 2025, 5:51pm UTC](https://forum.inductiveautomation.com/t/tag-config-historyenabled-issue/103468 "2025-03-10T17:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [March 10, 2025, 5:51pm UTC](https://forum.inductiveautomation.com/t/tag-config-historyenabled-issue/103468/1 "2025-03-10T17:51:34Z")

</div>

I have a simple script that browse tags contains certain string in name, after I get result I loop through all tags to get configuration and want to print the "path" and the "historyEnabled", somethings goes wrong, only the first tag is printed then the script stop without any explanation.

```python
tags = system.tag.browse(pathToBrowse, filter={"name":"*something","recursive":True})
result = []
for tag in tags:
	config = system.tag.getConfiguration(tag["fullPath"])[0]
	result.append({"path": config["path"], "historyEnabled": config["historyEnabled"]})

for r in result: print r

```

---

<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 10, 2025, 6:04pm UTC](https://forum.inductiveautomation.com/t/tag-config-historyenabled-issue/103468/2 "2025-03-10T18:04:34Z")

</div>

If you want to collect some tag properties while browsing tags, you should use `system.tag.query()` instead of `system.tag.browse()` and `system.tag.getConfiguration()`.

Use the designer's tag report tool to prepare a query that finds the tags you want, and set its output configuration to include the properties you need. Then use the menu option to show you the sample script that does exactly what you want in a single `system.*` call.
