# system.tag.browseHistorialTags and UDT in without folders

**URL:** <https://forum.inductiveautomation.com/t/system-tag-browsehistorialtags-and-udt-in-without-folders/56054>\
**Category:** Ignition\
**Created:** [February 12, 2022, 1:47am UTC](https://forum.inductiveautomation.com/t/system-tag-browsehistorialtags-and-udt-in-without-folders/56054 "2022-02-12T01:47:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rv.Batista](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rv.batista/32/3593_2.png) [@Rv.Batista](https://forum.inductiveautomation.com/u/Rv.Batista)\
**Post date:** [February 12, 2022, 1:47am UTC](https://forum.inductiveautomation.com/t/system-tag-browsehistorialtags-and-udt-in-without-folders/56054/1 "2022-02-12T01:47:20Z")

</div>

I’m implementing a dynamic chart, so I’m using system.tag.browseHistoricalTags to iterate throught it. Found out that if I have a UDT inside the tag provider without any folder holding it

```auto
 def browse(path='histprov:DB:/drv:server:tagprovider:/tag:'):
    for result in system.tag.browseHistoricalTags(path).getResults():
        print result
        if result.hasChildren():
            browse(str(result.getPath()))
browse()

```

will return

```auto
Result[displayPath=null, path=histprov:DB:/drv:server:provider:/tag:/anyfolder, hasChildren=true, type=null]
Traceback (most recent call last):
  File "<input>", line 6, in <module>
  File "<input>", line 5, in browse
  File "<input>", line 2, in browse
TypeError: 'NoneType' object is not iterable

```

If I put the UDT Instances inside a folder the code runs without any problem.
