I am working in node-red program and I use an OPCUA node that returns in the payload an array of objects.
I need to get some variables of the objects, for example, the nodeId of the item; and I try with the next format:
var newMsg = { payload: msg.payload[0].item.nodeId };
return newMsg;
But it does not work.I can see the error "Error: invalid identifierType in NodeId : 2" I tried a lot of formats but I do not find the correct way.
Do you know How I could get the data of the array of objects?
Thanks.


identifierTypeis not valid. But since you just want to use the program this most likely doesn't help you. You could try to get other values and on earlier levels to see if that isn't working either.