Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331089 - Error shows when opening an exported report, confirm it related with bookmark expression format in the report.
Summary: Error shows when opening an exported report, confirm it related with bookmark...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.0   Edit
Assignee: Yu Chen CLA
QA Contact: Xiaodan Wang CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 03:05 EST by Hai Feng Luo CLA
Modified: 2011-05-26 13:32 EDT (History)
2 users (show)

See Also:


Attachments
Opening error (9.65 KB, image/gif)
2010-11-25 03:07 EST, Hai Feng Luo CLA
no flags Details
exported excel file (3.93 KB, application/vnd.ms-excel)
2010-11-25 03:08 EST, Hai Feng Luo CLA
no flags Details
error log (177 bytes, text/plain)
2010-11-25 03:08 EST, Hai Feng Luo CLA
no flags Details
report design (9.51 KB, application/xml)
2010-11-25 03:09 EST, Hai Feng Luo CLA
no flags Details
data source file (145 bytes, application/xml)
2010-11-25 03:10 EST, Hai Feng Luo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hai Feng Luo CLA 2010-11-25 03:05:15 EST
Build Identifier: 2.3.2.v20090601-0700

An error "Problems During Load" being prompted when opening an exported excel from my report. The log under C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.MSO shows as below:

XML ERROR in Workbook Setting
REASON:	Bad Value
FILE:	C:\Documents and Settings\Administrator\桌面\Test cases1.xls
GROUP:	Names
TAG:	NamedRange
ATTRIB:	Name
VALUE:	R2A

Open the file by notepad, found this sentence
<Names>
		<NamedRange ss:Name="R2A" ss:RefersTo="=Sheet1!R3C1"/>
</Names>

If I changed R2A to RA, then the excel can be opened successfully. Seems R2A is an illegal format for Name of NamedRange.

In my investigation I found it's related with this element in my report
<expression name="bookmark">row["name"]</expression>
When the row["name"] is R2A, the error occurs.

 The same problem to some formats like C99_NhiTC, r1, etc. 

The problem is that the bookmark expression support those formats, but excel doesn't support that.

I also tried that on 2.5.2, the error still be there.

Reproducible: Always

Steps to Reproduce:
1.build the report I uploaded, use the uploaded xml file as the datasource. Using /root/user/name as the xpath expression when creating Data Set.
2. run the report by view report in web viewer, and names are displayed, then export that as excel
3. open excel, error should be prompted.
Comment 1 Hai Feng Luo CLA 2010-11-25 03:07:28 EST
Created attachment 183828 [details]
Opening error
Comment 2 Hai Feng Luo CLA 2010-11-25 03:08:00 EST
Created attachment 183829 [details]
exported excel file
Comment 3 Hai Feng Luo CLA 2010-11-25 03:08:47 EST
Created attachment 183830 [details]
error log
Comment 4 Hai Feng Luo CLA 2010-11-25 03:09:37 EST
Created attachment 183831 [details]
report design
Comment 5 Hai Feng Luo CLA 2010-11-25 03:10:02 EST
Created attachment 183832 [details]
data source file
Comment 6 Hai Feng Luo CLA 2010-11-25 20:39:09 EST
Hi, would you pls give a workaround asap, our product are waiting for this to be fixed. Thanks!
Comment 7 Yu Chen CLA 2011-01-11 02:40:35 EST
Fixed.