2020-07-07T13:59:30,863][WARN ][logstash.filters.jdbc.lookup] Exception when executing Jdbc query {:lookup_id=>"lookup-1", :exception=>"Java::JavaSql::SQLSyntaxErrorException: Syntax error: Encountered ":" at line 1, column 46.", :backtrace=>["org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(org/apache/derby/impl/jdbc/SQLExceptionFactory)", "org.apache.derby.impl.jdbc.Util.generateCsSQLException(org/apache/derby/impl/jdbc/Util)", "org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(org/apache/derby/impl/jdbc/TransactionResourceImpl)", "org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(org/apache/derby/impl/jdbc/TransactionResourceImpl)", "org.apache.derby.impl.jdbc.EmbedConnection.handleException(org/apache/derby/impl/jdbc/EmbedConnection)", "org.apache.derby.impl.jdbc.ConnectionChild.handleException(org/apache/derby/impl/jdbc/ConnectionChild)", "org.apache.derby.impl.jdbc.EmbedStatement.execute(org/apache/derby/impl/jdbc/EmbedStatement)", "org.apache.derby.impl.jdbc.EmbedStatement.executeQuery(org/apache/derby/impl/jdbc/EmbedStatement)"]
I have two lookup tables and two lookup queries both of them sometimes give this error and sometimes they give correct result what is the reason?
local_lookups => [
{
prepared_parameters => ["[memberidentifier]"]
query => "select * from usersClaim where alternateid = ?"
target => "jv_user_information"
},
{
prepared_parameters => ["[claimid]"]
query => "select * from claims where alternateid = ?"
target => "jv_claim_information"
}
]