Jump to content

invalid column index


harishbabul.y

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Working OK with me. Can't replicate your problem. You probarly have a problem with your sql or using a wrong Oracle jdbc driver (be sure to use Oracle's jdbc driver and not the bundled Tibco driver).

Try doing "SELECT * FROM <your table name>" to check if you can access data in your table.

Link to comment
Share on other sites

one thing i've found helpful is to check your parameter definitions against parameter references in the SQL code.

make sure they are all accounted for. 

i'm guessing that when you run the SQL query in a SQL tool (toad, SQLdeveloper, etc) you're commenting out the lines with the $P{} parameters since they won't run in P/L SQL, so naturally the query will run fine against the database.  This is what I do.

I can't say for sure this is the soluution to every instance of this error, but as a troubleshooting step it works well for me.

Link to comment
Share on other sites

  • 2 years later...

Hi,

same error for me - to be precise: I am getting the error with the Oracle JDBC (7) driver in Studio Pro 621.

With the Tibco JDBC driver for Oracle I am getting another error

net.sf.jasperreports.engine.JRException: Error preparing statement for executing the report query:

WITH alloc AS ( SELECT...

The same query works when using SQLDeveloper.

Ideas for solution are very welcome!

Kind regards,

Sebastian

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...