# Function node flags octal assignments with leading 0's, warns at deploy but runs fine

**URL:** <https://discourse.nodered.org/t/function-node-flags-octal-assignments-with-leading-0s-warns-at-deploy-but-runs-fine/31346>\
**Category:** General\
**Created:** [9 August 2020 15:17 UTC](https://discourse.nodered.org/t/function-node-flags-octal-assignments-with-leading-0s-warns-at-deploy-but-runs-fine/31346 "2020-08-09T15:17:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 August 2020 15:17 UTC](https://discourse.nodered.org/t/function-node-flags-octal-assignments-with-leading-0s-warns-at-deploy-but-runs-fine/31346/1 "2020-08-09T15:17:08Z")

</div>

If you enter the following into a `function` node, no statement is flagged in the editor:

```auto
msg.payload = 0755
return msg;

```

![Screen Shot 2020-08-09 at 11.11.23 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fbf6ff43fe15aa09444fb0da9b9c4f036c36d82c.png)

However when you look at the flow diagram, the function node is flagged (red triangle) with a noerr:  
 ![Screen Shot 2020-08-09 at 11.13.19 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96f3f9fbd032948f51275c98859490903041086a.png)

and you get a message at deploy time:  
 ![Screen Shot 2020-08-09 at 11.13.06 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f49410d88df75d5160354e880b07de97663924f9.png)

and if you do deploy, the node works correctly:

 ![Screen Shot 2020-08-09 at 11.15.34 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/22b587d7028bd3d570efc39de3f737f8516319fe.png)

@dceejay or @knolleary bug??

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [8 October 2020 15:17 UTC](https://discourse.nodered.org/t/function-node-flags-octal-assignments-with-leading-0s-warns-at-deploy-but-runs-fine/31346/2 "2020-10-08T15:17:13Z")

</div>

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