# Null text / Bad stale

**URL:** <https://forum.inductiveautomation.com/t/null-text-bad-stale/83903>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 7, 2024, 6:29pm UTC](https://forum.inductiveautomation.com/t/null-text-bad-stale/83903 "2024-01-07T18:29:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 7, 2024, 6:29pm UTC](https://forum.inductiveautomation.com/t/null-text-bad-stale/83903/1 "2024-01-07T18:29:29Z")

</div>

```auto
try({../Table.props.selection.data[0].Name}, " ")

```

I have this code bound to a text prop on a label in perspective. After moving the view into an embedded view, the label starts with a text null found and bad quality error on it. It is an eye sore, what is the reason?

 ![Screenshot (10)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/9/4963a74b012fa0209eb442ec59068828e995695b.jpeg)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 7, 2024, 6:33pm UTC](https://forum.inductiveautomation.com/t/null-text-bad-stale/83903/2 "2024-01-07T18:33:41Z")

</div>

The `try()` function substitutes an alternative when a nested expression produces an error, but a null is not an error. And, it so happens, that Perspective property names/indices/object keys that don't exist don't throw an error. They return null, instead.

You likely need to use the `coalesce()` function instead of `try()`, or perhaps use both of them.

---

<div class="post-metadata">

**Author:** ![HelloWorld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@HelloWorld](https://forum.inductiveautomation.com/u/HelloWorld)\
**Post date:** [January 7, 2024, 6:43pm UTC](https://forum.inductiveautomation.com/t/null-text-bad-stale/83903/3 "2024-01-07T18:43:11Z")

</div>

```auto
try(coalesce({../Table.props.selection.data[0].Name}, " "), " ")

```

I am not sure if this is the proper way to use coalesce with a try, but it seems to have worked!
