Event code: 3005 preventing export to Excel from SQL Reporting Services

At the end of this post is an error that we are experiencing when exporting to Excel 2007 from SQL Reporting Services 2005.

This event is occurring on the IIS box when we attempt and export to excel from our SQL Reporting Services 2005 instance: The report is an execution snapshot that runs to 4500 pages. The message below will also be thrown if the report is run on demand and then output to excel. It will also be thrown if the report is run as an email subscription with an excel attachment.
What should we look at to begin troubleshooting this?
Does it have anything to do with the metabase.xml file on the IIS box?  We are thinking that perhaps we can change the maximum file size for exporting to Excel.  It seems that this issue has to do with the rendering itself within SQL Reporting Services.

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/21/2011 11:33:32 AM
Event time (UTC): 4/21/2011 3:33:32 PM
Event ID: ebde0e8b193e4e8b811cc9ffa5e5e4e3
Event sequence: 33205
Event occurrence: 130
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/1/root/Reports-1-129475639238956018
    Trust level: RosettaMgr
    Application Virtual Path: /Reports
    Application Path: C:\Program Files\Microsoft SQL Server\MSSQL.1\Reporting Services\ReportManager\
    Machine name: WEBSERVER
Process information:
    Process ID: 3880
    Process name: w3wp.exe
Exception information:
    Exception type: XmlException
    Exception message: Data at the root level is invalid. Line 1, position 1.
Request information:
    Request URL: http://webserver/Reports/Reserved.ReportViewerWebControl.axd?ReportSession=mue23a2nr1hlrm2ctt1x5e45&ControlID=5ae4a32d27254bd2958c8fa848c37e88&Culture=1033&UICulture=9&ReportStack=1&OpType=Export&FileName=Summer+Planning+Report+SII+SIE+and+SICItemSiteSelectable&ContentDisposition=OnlyHtmlInline&Format=EXCEL 
    Request path: /Reports/Reserved.ReportViewerWebControl.axd
Who is Participating?
Eugene ZCommented:
65K was for before office 2007

Excel specifications and limits


Worksheet size 1,048,576 rows by 16,384 columns
apitechAuthor Commented:
Hello radcaesar:

I appreciate the response.  But, when I clicked on that link, it did not discuss the issue.

I'm unclear.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Eugene ZCommented:
check how to insert a page break after a certain amount of records.
Reporting Services 2005 - Export to Excel




Scroll down to the 'Page Breaks' section.

apitechAuthor Commented:
It's not a page break issue.  The end user has Excel 2007, which has no 65k row limit.
apitechAuthor Commented:
I already knew that!  LOL!  This user, by virtue of having Excel 2007, does not have to deal with this row limitation.
apitechAuthor Commented:
Thanks for the response, though, EugeneZ!  It is appreciated very much!!!
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.