# UDT Tags dataset to be converted to pyDataSet issue

**URL:** <https://forum.inductiveautomation.com/t/udt-tags-dataset-to-be-converted-to-pydataset-issue/20652>\
**Category:** Ignition\
**Created:** [November 8, 2018, 1:58am UTC](https://forum.inductiveautomation.com/t/udt-tags-dataset-to-be-converted-to-pydataset-issue/20652 "2018-11-08T01:58:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faisal.Shibli](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Faisal.Shibli](https://forum.inductiveautomation.com/u/Faisal.Shibli)\
**Post date:** [November 8, 2018, 1:58am UTC](https://forum.inductiveautomation.com/t/udt-tags-dataset-to-be-converted-to-pydataset-issue/20652/1 "2018-11-08T01:58:23Z")

</div>

We have a custom UDT in Ignition in which one of the components is Tags with is 2R x 2C dataset as seen in the pictures below. I am trying to convert this dataset to PyDataSet under IsAvailable Component Scripting. Unfortunately when I try to convert the dataset to PyDataSet it only return 1R x 2C. I don’t think it should be that difficult but I am dumb founded as I spent almost all day and I can’t convert it from dataset to PyDataSet.

**Ignition Tag Custom UDT**

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/16f1a8c2a6a5165950b5534ec9e0f7b0cf195837.png)

**Tags Dataset (type string)**

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/322cbf2cbdc6726f4111236021bb7a597ff64472.png)

I am using the following syntax to convert the dataset to PyDataSet and I have also enclosed it in the pictures below  
**myList = system.dataset.toPyDataSet (system.tag.read("[.]Tags".value)**

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2d6a059f9598fc70cc4881365e3ebd4247453d97.png)

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2b994e7f97f507712dcbd7fdd7b1d8dc5921fb03.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 8, 2018, 3:37pm UTC](https://forum.inductiveautomation.com/t/udt-tags-dataset-to-be-converted-to-pydataset-issue/20652/2 "2018-11-08T15:37:38Z")

</div>

> [@Faisal.Shibli](#):
>
> `myList = system.dataset.toPyDataSet (system.tag.read("[.]Tags".value)`

Are you sure there's nothing else assigning to `myList` elsewhere in your code?  
If you add a logging statement (`system.util.getLogger("debug").info(str(myList))` immediately after you assign myList to the pyDataset, does it have the right value?

---

<div class="post-metadata">

**Author:** ![Faisal.Shibli](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@Faisal.Shibli](https://forum.inductiveautomation.com/u/Faisal.Shibli)\
**Post date:** [November 8, 2018, 7:21pm UTC](https://forum.inductiveautomation.com/t/udt-tags-dataset-to-be-converted-to-pydataset-issue/20652/3 "2018-11-08T19:21:16Z")

</div>

Thank you for the respone PGriffith. I didn’t do anything different but today for some odd reason that syntax line is able to read the dataset.

Appreciate your help.
