com.microsoft.sqlserver.jdbc.SQLServerException: The index "1" is out of range.

Stack Overflow | xehpuk | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Executing Stored Procedure with TVP

    Stack Overflow | 9 months ago | xehpuk
    com.microsoft.sqlserver.jdbc.SQLServerException: The index "1" is out of range.

    Root Cause Analysis

    1. com.microsoft.sqlserver.jdbc.SQLServerException

      The index "1" is out of range.

      at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError()
    2. com.microsoft.sqlserver
      SQLServerCallableStatement.setStructured
      1. com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:191)
      2. com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setterGetParam(SQLServerPreparedStatement.java:933)
      3. com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setValue(SQLServerPreparedStatement.java:943)
      4. com.microsoft.sqlserver.jdbc.SQLServerCallableStatement.setStructured(SQLServerCallableStatement.java:2262)
      4 frames
    3. Unknown
      Main.main
      1. Main.main(Main.java:15)
      1 frame