1 person found this helpful
In your code there is no reference to run_report_object. So, one of these procedures is probably wrong:
What is in these procedures?
I would guess that the problem is in the procedure run_report_for_last_query. There will be something like run_report_object. Could you post that code?