Error in node-Red

Hello I want to modify an OPC UA item via Node-Red, but I can not just use the Inject node. So, i use a Switch Node, to prepare the data to send (via json), and I send it. And here is what i get : Capture In the first part, you can see an error : Wrong inject type. The msg.injecttype has to be write. In the second part, you can see the content of what is sent : the injecttype is correctly set to inject. So, what can be the problem? Here is the flow : [{“id”:“e49844ac.af9d58”,“type”:“change”,“z”:“10110044.30b59”,“name”:“”,“rules”:[{“t”:“set”,“p”:“payload”,“pt”:“msg”,“to”:“{"topic":"","nodetype":"inject","injectType":"write","addressSpaceItems":[{"name":"xSend","nodeId":"ns=5;s=Arp.Plc.Eclr/MainInstance.xTest","datatypeName":"Boolean"}],"payload":false}”,“tot”:“json”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:657.01953125,“y”:639.00390625,“wires”:[[“a6b3e89a.5f1b48”,“1b4c06d.0742df9”]]},{“id”:“4ba9a4f7.395bbc”,“type”:“OPCUA-IIoT-Response”,“z”:“10110044.30b59”,“name”:“”,“compressStructure”:false,“showStatusActivities”:false,“showErrors”:false,“activateUnsetFilter”:false,“activateFilters”:false,“negateFilter”:false,“filters”:,“x”:1098.01953125,“y”:626.0039129257202,“wires”:[[“d166869f.3d1c58”]]},{“id”:“d166869f.3d1c58”,“type”:“debug”,“z”:“10110044.30b59”,“name”:“”,“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“x”:1268.01953125,“y”:626.0039129257202,“wires”:},{“id”:“c174f2b7.b5c62”,“type”:“inject”,“z”:“10110044.30b59”,“name”:“”,“topic”:“”,“payload”:“”,“payloadType”:“date”,“repeat”:“”,“crontab”:“”,“once”:false,“onceDelay”:0.1,“x”:441.8984375,“y”:642.953125,“wires”:[[“e49844ac.af9d58”]]},{“id”:“a6b3e89a.5f1b48”,“type”:“OPCUA-IIoT-Write”,“z”:“10110044.30b59”,“connector”:“21582029.3743a”,“name”:“Envoi datas préparées”,“justValue”:true,“showStatusActivities”:true,“showErrors”:true,“x”:896.0195159912109,“y”:632.0038890838623,“wires”:[[“4ba9a4f7.395bbc”]]},{“id”:“1b4c06d.0742df9”,“type”:“debug”,“z”:“10110044.30b59”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“false”,“x”:852.89453125,“y”:725.6875,“wires”:},{“id”:“21582029.3743a”,“type”:“OPCUA-IIoT-Connector”,“z”:“”,“discoveryUrl”:“”,“endpoint”:“opc.tcp://127.0.0.1:4840”,“keepSessionAlive”:true,“loginEnabled”:false,“securityPolicy”:“Basic128Rsa15”,“securityMode”:“SIGNANDENCRYPT”,“name”:“LOCAL SERVER”,“showErrors”:true,“individualCerts”:false,“publicCertificateFile”:“”,“privateKeyFile”:“”,“defaultSecureTokenLifetime”:“”,“endpointMustExist”:false,“autoSelectRightEndpoint”:false,“strategyMaxRetry”:“”,“strategyInitialDelay”:“”,“strategyMaxDelay”:“”,“strategyRandomisationFactor”:“”,“requestedSessionTimeout”:“”,“connectionStartDelay”:“”,“reconnectDelay”:“”,“maxBadSessionRequests”:“10”}]

Hi Michele, this is quite tough because we are also not that Deep into node.red and all of the extensions. I guess it would be the best to search in the nod.red community and/or stackoverflow. cu Frank

finally, i still don’t know what was the error, but I have used an other node from OPCUA contrib to write an item. The solution is available in the blog explaining how to send a mail.