# Node Red Addon - 17.0.4 (3.1.3) - Issues with Data Field

**URL:** <https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [2 February 2024 14:46 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148 "2024-02-02T14:46:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![leacho73](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Post date:** [2 February 2024 14:46 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/1 "2024-02-02T14:46:51Z")

</div>

Hi All,

I've just upgraded node red to HA Add-On version to 17.0.4 - and although it appears to be functioning ok - if I try and edit any call service nodes - I am getting an error with an empty data field, and also it doesn't like the variables I've used for domain/service etc.

 ![Screenshot 2024-02-02 144301](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/19e6bb98095ba89c406c181fcaac7c4e2d392d9b.png)

Has anyone else seen this? Everything was working fine before the update.

Thanks  
Leacho

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 February 2024 14:49 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/2 "2024-02-02T14:49:15Z")

</div>

> [@leacho73](#):
>
> empty expression field

Is the field supposed to be left empty?

---

<div class="post-metadata">

**Author:** ![leacho73](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Post date:** [2 February 2024 14:52 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/3 "2024-02-02T14:52:39Z")

</div>

Yep, its been empty in all my nodes until this latest update - just edited the original post to say data field, rather than expression - as its an expression you put inside the data field 🙂

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 February 2024 14:54 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/4 "2024-02-02T14:54:10Z")

</div>

Which node is this exactly?

---

<div class="post-metadata">

**Author:** ![leacho73](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Post date:** [2 February 2024 14:55 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/5 "2024-02-02T14:55:01Z")

</div>

Its the Call Service node

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 February 2024 15:11 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/6 "2024-02-02T15:11:28Z")

</div>

ok thanks.

Just checked its source to see if they had specified `required: true` or some other validator that requires the input to have a value. Seems [they have set `allowBlank: true`](https://github.com/zachowj/node-red-contrib-home-assistant-websocket/blob/13d4822405398e2cdc51f7d476e4ec9eccce121b/src/nodes/call-service/editor/index.ts#L76) on the `typedInput` validator

```auto
            validate: RED.validators.typedInput({
                type: 'dateType',
                allowBlank: true,
            }),

```

There was work in 3.1.x stream around improving surfacing validation errors so this _might_ be a bug.

I kinda recall some more work done in this area after the initial works in 3.1.0 release so it may be already fixed (assuming for 1 sec this is a bug) and would therefore be fixed in the next release - but Nick would need to confirm this.

@knolleary ^ (apologies for the direct tag)

---

<div class="post-metadata">

**Author:** ![leacho73](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Post date:** [2 February 2024 15:19 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/7 "2024-02-02T15:19:34Z")

</div>

Thanks @Steve-Mcl - I'll keep an eye on this topic if you or knolleary can update when you know that'll be great.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [2 February 2024 15:19 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/8 "2024-02-02T15:19:48Z")

</div>

The `dateType` type doesn't exist

It's

```js
validate: RED.validators.typedInput({
  typeField: "dataType",
  allowBlank: true,
}),

```

the correct way

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 February 2024 15:26 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/9 "2024-02-02T15:26:13Z")

</div>

hmmm, that could well be related! Well spotted 🦅 👁

Someone aught to raise an issue on the home assistant repo (and they should check all of their nodes)

---

<div class="post-metadata">

**Author:** ![leacho73](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Post date:** [2 February 2024 15:27 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/10 "2024-02-02T15:27:13Z")

</div>

Is this likely to be a breaking change, ie, more than just an annoyance with the node showing a red triangle? - can I assume the nodes will no longer function?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 February 2024 15:29 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/11 "2024-02-02T15:29:46Z")

</div>

> [@Steve-Mcl](#):
>
> Someone aught to raise an issue on the home assistant repo

would be useful if someone could verify this by altering the src on their HA system (I dont use HA)

> [@leacho73](#):
>
> can I assume the nodes will no longer function?

I am fairly certain this wont affect you (as your fields are blank). Easy enough to test though!

---

<div class="post-metadata">

**Author:** ![leacho73](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Post date:** [2 February 2024 15:37 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/12 "2024-02-02T15:37:13Z")

</div>

Ok, interestingly, I've just restarted Node-Red and now the issue has gone, not sure if its a post-update bug - but I've just tested it on an existing call-service node and a new flow, and its no longer erroring.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 May 2024 15:38 UTC](https://discourse.nodered.org/t/node-red-addon-17-0-4-3-1-3-issues-with-data-field/85148/13 "2024-05-02T15:38:14Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
