My Oracle Support Banner

Passing an array of Dates to a Database Stored Procedure Returns in Error: "Java Exception: Invalid Pl/Sql Index Table Element Type" (Doc ID 1148206.1)

Last updated on AUGUST 18, 2022

Applies to:

JDBC - Version 10.2.0.4 to 11.2.0.4.0 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Symptoms

When calling a database PL/SQL procedure and passing an array with Date elements to that procedure, following error is thrown:

Exception
java.sql.SQLException: Invalid PL/SQL Index Table element type
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)

 

The code of the PL/SQL procedure used looks like:


The above error will occur.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.