After a Microsoft Office update, users may receive the following warning when opening a report exported from Salesforce in XLS format:
"The file you are trying to open, '[filename].xls', is in a different format than the specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?"
This warning appears in Microsoft Excel 2007 and later versions.
This warning is a user-notification feature built into Microsoft Excel 2007 and later. It appears when the actual file format does not match the file extension. When Salesforce exports a report in XLS format, the file is internally formatted as HTML, which triggers this Excel notification. The file is safe to open. Clicking Yes on the prompt opens the file normally. This is not a Salesforce error — it is a Microsoft Excel compatibility warning.
Excel 2007 and later versions include a format validation check. Because Salesforce generates the XLS export as an HTML document with an .xls extension (for compatibility reasons), Excel detects the mismatch and displays the warning. The content of the file is not corrupted.
For more information on this Excel behavior, refer to the Microsoft support articles in the Additional Resources section below.
file is in a different format than its extension indicates in Excel
Error opening file: "The file format differs from the format that the file name extension specifies"
000386986

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.