# Error writing to tag; cannot coerce value

**URL:** <https://forum.inductiveautomation.com/t/error-writing-to-tag-cannot-coerce-value/65948>\
**Category:** Ignition\
**Created:** [November 1, 2022, 6:34pm UTC](https://forum.inductiveautomation.com/t/error-writing-to-tag-cannot-coerce-value/65948 "2022-11-01T18:34:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff1](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jeff1](https://forum.inductiveautomation.com/u/jeff1)\
**Post date:** [November 1, 2022, 6:34pm UTC](https://forum.inductiveautomation.com/t/error-writing-to-tag-cannot-coerce-value/65948/1 "2022-11-01T18:34:07Z")

</div>

I've gota simple script that should read on tag value and write it to another. Both tags are floats. When I exectute I get the following error:

Error writing to tag '[default]Node 6 Wells2/LIT\_Tank': Error\_TypeConversion("Cannot coerce value '[7.900000095367432]' into type: class java.lang.Float")

I don't understand where I am going wrong. 7.900000095367432 seems like a float to me.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 1, 2022, 6:34pm UTC](https://forum.inductiveautomation.com/t/error-writing-to-tag-cannot-coerce-value/65948/2 "2022-11-01T18:34:52Z")

</div>

Share the script. It looks like you're trying to write a _list_ of float values to the tag, not a scalar float value.

---

<div class="post-metadata">

**Author:** ![jeff1](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jeff1](https://forum.inductiveautomation.com/u/jeff1)\
**Post date:** [November 1, 2022, 6:45pm UTC](https://forum.inductiveautomation.com/t/error-writing-to-tag-cannot-coerce-value/65948/3 "2022-11-01T18:45:54Z")

</div>

You are correct. I was fast and loose with some extra brackets. Thank you.
