I am trying to integrate a new PLC with an existing Oracle DB using Ignition. I need to call some stored procedures which I am trying to call using Named Queries, but I am getting an error message.
Following two screenshots, one of what I am trying to do and another with the error message, any help / guidance would be appreciated:
Simply based on the exception, something is attempting to create an array with a size of -1 which will throw an exception in java. Do you have access to the stored procedure to see what the code is actually doing?
You should verify that all of your values are the correct types.
On another note, I believe this is attempting to retrieve a value and return it to the client correct?
I think stored procedures like this require an output variable in oracle and then you will need to actually select that output variable for the Named Query to actually return that value. I am not an oracle master by any means so I may be mistaken.
I don't believe that the BEGIN and END will work. Not 100% certain but I think that may be considered SQL scripting which isn't strictly supported by the JDBC specification.