Focal Point
[CLOSED] Excel Output Error - File Format or File Extension is not Valid

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4387045476

February 02, 2015, 12:37 PM
Frank Cole
[CLOSED] Excel Output Error - File Format or File Extension is not Valid
We are using Excel 2013 on our desktops. When we create a report using EXL07 as an output type we receive the "File Format or File Extension is not Valid" message.

When we use EXL2K we get a message "The File Format and Extension of WFServlet.xls don't match". If you click ok you get the same "File Format or File Extension is not valid" message as EXL07. The only difference being that the EXL2K version will open when you select OK. The EXL07 error does not allow you to open the file.

We are using WF 8009 on Windows Server 2008R2.

We would like to have the Excel reports open correctly on our users desktops without any error messages. I have read all of the available forum posts but the solutions either don't work (Add SET EXCELSRVURL = '') or won't be allowed by internal security (Change the Registry to cancel extension hardening).

Are there any solutions that I'm missing?

Thanks for the assistance.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 8.009
Windows 2008R2 x64
HTML, PDF, AHTML, Excel
February 03, 2015, 11:28 AM
Ram Prasad E
Are you able to reproduce this using CAR sample file. If so can you share the fex code. Also try running the report directly in server(from webconsole) and also try executing using WFServlet(using Client).


WebFOCUS 8.1.05
Windows
http://ibiwebfocus.wordpress.com
https://www.facebook.com/groups/ibi.webfocus/
February 04, 2015, 01:23 PM
Frank Cole
I get the same results when I use CAR.

TABLE FILE CAR
PRINT
CAR.COMP.CAR
CAR.CARREC.MODEL
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K
END

and this won't open at all through Excel.

TABLE FILE CAR
PRINT
CAR.COMP.CAR
CAR.CARREC.MODEL
CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT XLSX
END

I've never seen the XLSX format before. Usually, Excel 7 uses EXL07

The output failure is consistent through the client, webconsole, or self service URL.


WebFocus 8.009
Windows 2008R2 x64
HTML, PDF, AHTML, Excel
February 05, 2015, 03:53 AM
Wep5622
If you save the file with ON TABLE HOLD FORMAT EXL07:
Is there anything around the binary content if you open it with a text or hex editor?

If not, can you open the file in Excel 2007 or what you have?

Can you unzip it? If you can, do the contents look valid?
You can compare the contents with the unzipped contents of a valid xlsx file if you're unsure.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
June 22, 2015, 04:25 PM
WFDevConsultant
Is this resolved for you?

I am seeing the same error.


8.2.06
Windows, All Formats
January 15, 2018, 09:47 AM
DWaybright
I am experiencing this as well. Any solutions? We are using Excel 365.
Thanks.


WebFOCUS 8.2.03 (production), 8.2.06 (testing)
AppStudio, InfoAssist
Windows, All Outputs
January 15, 2018, 10:30 AM
Frans
Only thing that helps is changing registry to my knowing. Don't see the security threath, the message you get is a warning, the user clicks OK and it opens. With the registry change you just disable the message.

And it's a very common warning with a lot of tools that export to Excel.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
January 15, 2018, 11:12 AM
Francis Mariani
Agreed.

Microsoft Support - Error opening file: "The file format differs from the format that the file name extension specifies

Other reading: WebFOCUS and Excel - several issues


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server