# System.tag.configure with dataset tag without getConfiguration

**URL:** <https://forum.inductiveautomation.com/t/system-tag-configure-with-dataset-tag-without-getconfiguration/74983>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 13, 2023, 9:48pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-dataset-tag-without-getconfiguration/74983 "2023-06-13T21:48:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 13, 2023, 9:48pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-dataset-tag-without-getconfiguration/74983/1 "2023-06-13T21:48:12Z")

</div>

Similar to [this](https://forum.inductiveautomation.com/t/system-tag-configure-with-dataset-tag/48147) post, except I'm not using `getConfiguration`. I am creating UDT instances via a script, which works, however one of the UDT tag members is a dataset and I can't seem to write/update while creating the instance. I can write/update other members, like memory strings (Cfg\_Desc/Label/Tag).

If `myDataset` is a dataset, the UDT data type will show as a document (the definition is dataset).  
Using a list gets me the closest, at least there are values in the dataset, but it shows type conversion error.

How do I update a dataset tag using `system.tag.configure`

```auto
baseTagPath = "Motors"
tagName = "Motor 1"
typeId = "Motor"
tagType = "UdtInstance"

props = [
		{'name': 'Cfg_Desc', 'value': '1'},
		{'name': 'Cfg_Label', 'value': '2'},
		{'name': 'Cfg_Tag', 'value': '3'},
		{'name': 'Cfg_TagGroup', 'value': myDataset}
		]

tag = {
            "name": tagName,         
            "typeId" : typeId,
            "tagType" : tagType,
            "tags" : props,
            "parameters" : {}
       }
       
system.tag.configure(baseTagPath, [tag], 'm')

```

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [June 14, 2023, 12:51pm UTC](https://forum.inductiveautomation.com/t/system-tag-configure-with-dataset-tag-without-getconfiguration/74983/2 "2023-06-14T12:51:35Z")

</div>

So I guess it can only take a string? I did a tag export and looked at how the data was presented and then used that in my script, taking the rows as a list and making it a string.

```auto
"{\"columns\":[{\"name\":\"Name\",\"type\":\"java.lang.String\"}],\"rows\":[[\"Value1\"],[\"Value2\"],[\"Value3\"]]}"

```

```auto
"{\"columns\":[{\"name\":\"Name\",\"type\":\"java.lang.String\"}],\"rows\":" + str(rowData) + "}"

```

Seems to work. As always, if there is a better way please let me know.
