# TypeError: setValue(): 1st arg can't be coerced to com.inductiveautomation.ignition.common.Dataset

**URL:** <https://forum.inductiveautomation.com/t/typeerror-setvalue-1st-arg-cant-be-coerced-to-com-inductiveautomation-ignition-common-dataset/20722>\
**Category:** Ignition\
**Created:** [November 9, 2018, 5:47pm UTC](https://forum.inductiveautomation.com/t/typeerror-setvalue-1st-arg-cant-be-coerced-to-com-inductiveautomation-ignition-common-dataset/20722 "2018-11-09T17:47:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [November 9, 2018, 5:47pm UTC](https://forum.inductiveautomation.com/t/typeerror-setvalue-1st-arg-cant-be-coerced-to-com-inductiveautomation-ignition-common-dataset/20722/1 "2018-11-09T17:47:52Z")

</div>

In UDT, i wanted to populate memory dataset tag with value of OPC tags. I am using scrip as shown in picture. It giving me error on system.dataset.setValue(), even though 1st arg is supposed to be dataset.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/43ee1e8dac3957c6d7758eccefbc174b710d2a53.PNG) ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3bc0ade42e0dda1894135709ece0b8c4d9ea00ec.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 9, 2018, 5:49pm UTC](https://forum.inductiveautomation.com/t/typeerror-setvalue-1st-arg-cant-be-coerced-to-com-inductiveautomation-ignition-common-dataset/20722/2 "2018-11-09T17:49:25Z")

</div>

`"[.]../Dataset.value"` is just a literal string. If you want the value of the _tag_ defined by that reference, you need to use `system.tag.read`:  
`table = system.tag.read("[.]../Dataset").value`

---

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [November 9, 2018, 6:11pm UTC](https://forum.inductiveautomation.com/t/typeerror-setvalue-1st-arg-cant-be-coerced-to-com-inductiveautomation-ignition-common-dataset/20722/3 "2018-11-09T18:11:08Z")

</div>

Ohh, I totally forgot, thank you. 🙂
