Loading

Salesforce Data Import Wizard Error: "You can import only CSV files."

Julkaisupäivä: May 24, 2026
Kuvaus

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.

Ratkaisu

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.

Cause 1: The File Extension Is Not ".csv"

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.

Cause 2: The File Name Contains a Period Other Than for the Extension

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

Note for Summer '25 and Later

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.

  • Allowed example: myFile.something.csv (because "something" has more than five characters)
  • Error example: myFile.hi.csv (because "hi" has five or fewer characters and is therefore considered an extension)

Example

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.

Knowledge-artikkelin numero

005224438

 
Ladataan
Salesforce Help | Article