ORA-24374: define not done before fetch or execute and fetch

We are correcting several Actuate reports for the ICM Application.

For one of the reports we have a select query imbeded in the Actuate report.

We run this query against the oracle 9i database.

This query works perfectly fine from Toad or Actuate Development Tool (erdPro ). But once we port the report executable on the Actuate server and try to run the report, we get following error message :

24374: ORA-24374: define not done before fetch or execute and fetch

Could you please help us identify the problem?
ashu2769Asked:
Who is Participating?
 
Computer101Commented:
PAQed with no points refunded (of 500)

Computer101
EE Admin
0
 
MikeOM_DBACommented:

Did you check out the error message?

ORA-24374: define not done before fetch or execute and fetch

Cause: The application did not define output variables for data being fetched before issuing a fetch call or invoking a fetch by specifying a non-zero row count in an execute call.

Action: Issue OCI define calls for the columns to be fetched.
0
 
ashu2769Author Commented:
Hi,
I am really not clear how can I fix this. Should I try writing SQL code in some other way?

Thanks and regards,
-Ashu
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.