Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / July 2008

Tip: Looking for answers? Try searching our database.

Damage to file message when exporting to excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Swanson - 15 Aug 2005 16:21 GMT
I am getting a "Damage to the file was so extensive that repairs were not
possible.  Excel attemted to recover your formulas and values, but some data
may have been lost or corrupted." in some instances when exporting to excel.

I have noticed that a couple other list members have also reported this
issue, but have been unable to narrow down the exact cause of the problem
(see post by DJJIII on 7/13/2005 subject:  excel export /collapsed fails to
render excel file)

The interesting thing in my case is that I have a fairly complex report with
many charts and tables.  My "top level" report throws this excel error.  
However, if I add parameters ("drill down report") the structure of the
report is exactly the same with charts and tables, just less (or different)
data and then it renders fine.  Incidentally the top-leve report has params
too, so having parameters itself is not the issue.  I am not using groups at
all, so I don't think the issue is directly related to the use of groups as
was suspected in the post by DJJIII.

My guess is there is some data-related issue as our same report (both
top-level and drilldown) with different data works fine.

Our report actually is a collection of 10 or so subreports, so I will be
doing a little debugging by removing subreports to see if I can identify the
subreport or data that is causing the issue.

Microsoft, please let us know if there has been a confirmed issue related to
this and what causes the problem.  I would be happy to provide an RDL, excel
file, etc. to help you resolve the issue.

Thanks, David
Cory - 15 Aug 2005 18:44 GMT
I have run into the exact same issue except - my report is essentially a flat
file export.  I do not have multiple leves, diagrams or charts.

The only difference I can isolate is a "comments" field that is provided to
users.  They record pages and pages of text in this field.  If I remove the
field it renders just fine. If I include it then error.  So, either the field
length limit in excel? or a special character the users are including that
excel cannot handle?  Just guesses.

Any help or fixes would be appreciated.  Without this information & the
ability to export to excel the report is considered useless by the users.

Thank you.

--Cory

> I am getting a "Damage to the file was so extensive that repairs were not
> possible.  Excel attemted to recover your formulas and values, but some data
[quoted text clipped - 26 lines]
>
> Thanks, David
Peter Yang [MSFT] - 16 Aug 2005 06:32 GMT
Hello David & Edgar,

There is a known issue that when exporting a report from Reporting Services
SP2 to Excel format results in the following error when trying to open the
Excel workbook:

Microsoft Office Excel File Repair Log

Errors were detected in file 'C:\Documents and Settings\<username>\Local
Settings\Temporary Internet Files\Content.IE5\4H4BKNSF\Report2[1].xls'

The following is a list of repairs:

Damage to the file was so extensive that repairs were not possible. Excel
attempted to recover your formulas and values, but some data may have been
lost or corrupted.

Further investigation indicates that this problem can occur if a field of
data type NTEXT contains more than 4110 characters.

This issue is supposed to be fixed in next edition of SQL reporting service
(sql 2005). If you believe this has big business impact, please contact CSS
open a Support incident with Microsoft Product Support Services so that a
dedicated Support Professional can work with you to evaluate this:

For a complete list of Microsoft Product Support Services phone numbers,
please go to the following address on the World Wide Web:
http://support.microsoft.com/directory/overview.asp

Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Thread-Topic: Damage to file message when exporting to excel
| thread-index: AcWhwO0iSuq0BbqxT5u6w58E6hDj9Q==
[quoted text clipped - 66 lines]
| >
| > Thanks, David
Fred - 08 Mar 2006 20:47 GMT
I'm experimenting the same thing on one of my reports. I've occurs only when
I'm displaying point labels on which I apply this function :

=ROUND((Fields!CHANGE.Value)*100).TOSTRING & " %"

so there are no ntext field involved here. (I have a work around for my
problem but it requires quit a bit of code change database side)

I'm on RS 2000 sp1 (we haven't applied sp 2 yet because of custom code that
crashes under sp 2. We will be migrating to SQL 2005 in 2 to 3 months.)

thx

Fred

> Hello David & Edgar,
>
[quoted text clipped - 129 lines]
> | >
> | > Thanks, David
Anabela Silva - 30 Jun 2008 11:25 GMT
Hi there,

the same is happening in SQL Server 2005 Reporting Services SP2, when
exporting a simple report, with a table of 6 fields, to Excel format.
The table doesn't have ntext fields but nvachar(MAX) fields.
I've tried to remove the only nvarchar(MAX) field that was in the report,
and when i exported it, it worked just fine.

I've looked int the DB and some of the records have a lot of information in
this field (it is used for extensive description by the users).

I really need to have this situation solved, because i've created some
subscriptions that are sent to department directors.

Thks for any help,

Anabela

url:http://ureader.com/msg/11574946.aspx
Anabela Silva - 10 Jul 2008 10:16 GMT
Hi again,

i've discovered that the problem is that the maximum number of characters
for an Excel cell is 32767, and one of the records exported has 40878
characters in one field.

I don't like the ideia of limit the characters in the application... but
i'll have to do it

Best regards,

Anabela

url:http://ureader.com/msg/11574946.aspx
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.