Hello,
We have run into this issue in several scenarios: A Quick Report works fine, but if we try the “Export to Excel” option of running the report we get something like the following:
One scenario where this happens is when using “WITH” in the query. That can be overcome by wrapping the WITH in a SELECT.
Another scenario it happens with is when using parameters such as a date range, the kind that makes the calendar popup available.
But the most recent issue was with a a query using a pipelined result from a custom package method call, for example:
SELECT * FROM TABLE(BELL_CUSTOM_REPORT_API.GetCustomerInfo('B%'))
This is a custom API with a method called GetCustomerInfo() that uses PIPELINED data to return a “table-izable” result. It works fine in SQL Developer and when running the Quick Report directly. But if I use “Export to Excel” from the Quick Report screen I get the error listed in Excel that you see above. Putting “&AO” in front of the package name does not help.
Anyone know a way around this? Using nifty tricks in Quick Reports is not very helpful if the resulting queries are not usable for generating Excel output, as a lot of our business needs end with, “Then I would like the results in an Excel spreadsheet that gets emailed to me at a scheduled time...”
Thanks,
Joe Kaufman