When using the Salesforce Data Import Wizard, you may see the error "You can import only CSV files." This happens when the file you're trying to import doesn't have a proper ".csv" extension, or when the file name contains an extra period other than the one separating the extension. File name validation became stricter starting with the Summer '25 release.
This article explains the two causes of the "You can import only CSV files" error in the Data Import Wizard, and how to correct your file name for each.
This error occurs if you attempt to directly import a file such as an Excel file (.xls, .xlsx) or a text file (.txt).
Solution: Save the file again in CSV (Comma-separated values) (*.csv) format using your application, and then import that file.
Due to a specification change in the Summer '25 release or later, an error may occur if the part of the file name before ".csv" contains a period.
Solution: Change the periods in the file name (before the extension) to another character, such as an underscore ("_"). For example: data.2025.01.csv → data_2025_01.csv
As a result of this specification change, if a part of the file name separated by a period has five or fewer characters, that part is considered an extension, which will cause an error.
For instance, an admin trying to import a file named report.2025.csv gets the error because "2025" is treated as an unexpected extension segment. Renaming the file to report_2025.csv resolves the error and allows the import to proceed.
005224438

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.