Passing an array parameter in the database(ORACLE and DB2 Only1) service results into a runtime error similar to the following :
27 Jun 2017 15:59:33,232 [PVM:DB Process Worker-4] [ERROR] com.tibco.bx.core.BxSystemImpl - [ERROR] - {BX_TASK_REPORTED_ERROR} - BX-800009: Task reported an error �{extendedMessage=`Exception Cause is [null] Exception Message is [INTEGER_ARRAY] Exception Stack is [java.lang.Exception: INTEGER_ARRAY
at com.tibco.bx.extension.database.core.JDBCCommon.sqlTypeFromString(JDBCCommon.java:313)
at com.tibco.bx.extension.database.core.JDBCStatementActivity.evalPreparedStatement(JDBCStatementActivity.java:475)
at com.tibco.bx.extension.database.core.JDBCStatementActivity.performDatabaseOperation(JDBCStatementActivity.java:111)
at com.tibco.bx.extension.database.core.JDBCActivity.eval(JDBCActivity.java:1050)
at com.tibco.bx.extension.database.core.DatabaseTaskActivity.doWork(DatabaseTaskActivity.java:179)
at com.tibco.bx.extension.database.core.DatabaseTaskActivity.eval(DatabaseTaskActivity.java:106)
at com.tibco.bx.core.behaviors.activity.BxExtensionBehavior.doEval(BxExtensionBehavior.java:162)
at com.tibco.bx.core.behaviors.activity.BxActivityBaseBehavior.eval(BxActivityBaseBehavior.java:836)
Example :
A simple query as below is defined in the database task :
SELECT EC_WI_STATUS.WORK_ITEM_ID FROM EC_WI_STATUS WHERE TO_CHAR EC_WI_STATUS.WORK_ITEM_ID IN (?)
An integer array with values of workitem ids, is being passed as "IN" parameter to the database task. At runtime when this database task is executed the above error is thrown and the process gets halted.