# Why is browseName included in NodeId when adding OPC-UA variables in Node-RED?

**URL:** <https://discourse.nodered.org/t/why-is-browsename-included-in-nodeid-when-adding-opc-ua-variables-in-node-red/96080>\
**Category:** Vendors\
**Tags:** opcua\
**Created:** [18 March 2025 06:21 UTC](https://discourse.nodered.org/t/why-is-browsename-included-in-nodeid-when-adding-opc-ua-variables-in-node-red/96080 "2025-03-18T06:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meloman](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/meloman/32/96137_2.png) [@Meloman](https://discourse.nodered.org/u/Meloman)\
**Post date:** [18 March 2025 06:21 UTC](https://discourse.nodered.org/t/why-is-browsename-included-in-nodeid-when-adding-opc-ua-variables-in-node-red/96080/1 "2025-03-18T06:21:18Z")

</div>

I'm using Node-RED to create an OPC-UA structure dynamically. Everything is working fine, but I noticed that the browseName is being appended to the NodeId when adding variables.

Here is how I'm adding a variable:

```
 messages.push({
     ...msg,
     payload: { opcuaCommand: "addVariable" },
     topic: `${variableId};browseName=${browseName};datatype=${opcuaType}`
});

```

And here’s what I see in Prosys OPC-UA Browser:

```
NodeId: ns=1;s=FESP_100140.Electricity.Phase1.ActivePower;browseName=ActivePower
BrowseName: 1:ActivePower
DisplayName: ActivePower

```

 ![96VjOSKN](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/2/42a7e7bd90b5642ea774f488c4d112a67e63a316.png)

Expected Behavior:  
The NodeId should remain clean (ns=1;s=FESP\_100140.Electricity.Phase1.ActivePower), while browseName should only affect the display name and browsing behavior.

Questions:

- Is this the expected behavior in Node-RED's OPC-UA implementation, or is this a bug?
- Should browseName be passed differently in Node-RED OPC-UA?
- How can I properly set the NodeId and browseName separately without concatenating them?

Any insights or fixes would be greatly appreciated!  
Thanks in advance.
