I'm working on a Node-RED flow to insert random data into an Oracle database table at regular intervals, but I'm facing an issue where all the inserted values end up being NULL. I need help identifying where I might be going wrong.
I'm using this node, doing many inserts. I don't know how to solve your issue, but I just specify the whole SQL block in msg.query, and it works perfectly.
At a random guess, should/could the payload be an array instead of hash? I've not worked with the Oracle node so I'm only guessing but since the field mappings screenshot states "always use field mappings (even if msg.payload is an array)" - so payload can also be an array.
Second question: is the syntax :column1 (i.e. colon followed by column name) the correct syntax in the SQL query tab?