Caveat: running v8 of Report Studio, I hear rumors that this behavior changes slightly in later .x revisions.
When you create burst reports or run any Report Studio report so that it sends the results out as an email, you have a few options on the format in which the file goes out. Some of them don’t work so well in our environment because of restrictions on file types that we have in our email systems, so .htm or .html files will never make it past our filters: that one is obvious. What other types can you send reports out as?
- CSV: success!
- XML: success!
- PDF: success!
- Excel: FAIL!
That last one is a little confusing, to say the least. I would expect XML to fail before XLS. There’s a reason it does fail, though: no matter how you attempt to send an Excel attached file, Cognos actually sends out an .mht file instead, albeit with a MIME type of application/vnd.ms-excel. In my mind this is astonishingly backwards, especially considering there is no indication of what it’s going to do and why.
In any case, here’s how to fix it: you must add a server parameter to send the mht file using an .xls extension. This means you’re still sending an .mht file, but it at least looks like, and behaves like, an Excel file. To do this you must add a server parameter.
Steps:
- Click the Tools menu in the Cognos portal and select “Server Administration”
- Select “Set Properties” for ReportService
- Select the “Settings” tab
- In “Advanced Settings” (usually the first option), click the ‘Edit…’ link
- Select “Override”
- In the first empty set of boxes, type in the parameter name RSVP.FILE.EXTENSION.XLS and set the value to TRUE
Repeat the above steps to Set Properties for BatchReportService, and when you send the reports send them as Excel 2002 (NOT as Excel 2000 or Excel single sheet).
Not very smart, misleading, and the cause of the error you get when you try to open an “Excel” file that came from Cognos, where it states that the file is not in the format that the extension indicates. An error that you get every. time. you. open. the. file.
January 29, 2009 at 2:22 pm
Absolutely correct. Thanks for the tip!
August 7, 2009 at 1:42 am
Hi
I have tried this but it’s not working, the files are still with mht extension. I’m runing them as Excel 2002 but again i see mt files ( i save reports in file system)
Im using C 8.2
August 27, 2009 at 3:41 pm
Hello Sir! You are great.
This has really worked.
Just wondering, from where did you get this tips..
Saby
October 7, 2009 at 4:20 am
Seems like that works for emailing only, when saving to the file system, it will render the file as a XLWA file :( (After using the “RSVP.FILE.EXTENSION.XLS” setting)