# { "message": "", "name": "FunctionNodeError" }

**URL:** <https://forums.losant.com/t/message-name-functionnodeerror/1786>\
**Category:** Bug Report\
**Created:** [May 8, 2019, 3:59pm UTC](https://forums.losant.com/t/message-name-functionnodeerror/1786 "2019-05-08T15:59:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Kondrov](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/alexander_kondrov/32/1392_2.png) [@Alexander\_Kondrov](https://forums.losant.com/u/Alexander_Kondrov)\
**Post date:** [May 8, 2019, 3:59pm UTC](https://forums.losant.com/t/message-name-functionnodeerror/1786/1 "2019-05-08T15:59:25Z")

</div>

I started to run into a Function Node Error in a Workflow. Losant Debug form shows the following message:

> {  
> “message”: “”,  
> “name”: “FunctionNodeError”  
> }

I tried to debug it, but the error goes away only if Function Node has no code in it.

The simple code like the following is also generating an error:

> var i = 1;  
> payload.debug\_i = i;

This is how workflow looks like:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/9/957ede9de0df9fb81e6664ef9f1c8874d255014d.png)

Could you I get an advice what could be the reason for that?

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [May 8, 2019, 4:27pm UTC](https://forums.losant.com/t/message-name-functionnodeerror/1786/2 "2019-05-08T16:27:08Z")

</div>

Hi @Alexander_Kondrov,

I will look into this and see what I can find, and get back to you shortly with a solution!

Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [May 8, 2019, 5:23pm UTC](https://forums.losant.com/t/message-name-functionnodeerror/1786/3 "2019-05-08T17:23:49Z")

</div>

@Alexander_Kondrov,

That’s a super funky error message, but we found what caused it. It has something to do with using `error` on the root of the payload along with the Function Node.

Our engineering team is looking into the root cause. But, for now, I would assume you have a payload path as `error` configured in the Validate Payload node. If you change that, all should work for now.

I’ll update once we have a fix found.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [May 9, 2019, 1:58pm UTC](https://forums.losant.com/t/message-name-functionnodeerror/1786/4 "2019-05-09T13:58:21Z")

</div>

@Alexander_Kondrov

I can confirm that this issue is now fixed 😃

Thank you so much for letting us know!

---

<div class="post-metadata">

**Author:** ![Alexander\_Kondrov](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/alexander_kondrov/32/1392_2.png) [@Alexander\_Kondrov](https://forums.losant.com/u/Alexander_Kondrov)\
**Post date:** [May 9, 2019, 2:17pm UTC](https://forums.losant.com/t/message-name-functionnodeerror/1786/5 "2019-05-09T14:17:41Z")

</div>

Hi Taron,

Thank you for the prompt replies as always. You were right, I used “error” name for an error path of Validate Payload node. I changed the name and din’t experience this issue anymore.
