A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Try these targeted checks and fixes for CSV import failures via Data > Get Data > From File > Text/CSV:
- Confirm the CSV file actually has data
- Open the CSV directly in Excel using File > Open (or double‑click it in File Explorer).
- If it opens but is empty, the import can fail with a generic error. In that case, re‑export the data from the provider system and verify the CSV contains rows and columns before using Get Data again.
- Test with a known‑good CSV
- Create a simple test CSV from Excel:
- Enter a few rows of sample data in a new workbook.
- Save As > CSV (Comma delimited).
- Close the file, then use Data > Get Data > From File > From Text/CSV to import this test CSV.
- If the test file imports but the provider file does not, the issue is likely with the provider file’s content or format (for example, malformed text, encoding, or structure). Re‑download or regenerate that file.
- Create a simple test CSV from Excel:
- Try opening instead of Get Data
- Use File > Open, set file type to Text Files or All Files, and open the same CSV.
- Excel will either:
- Open it directly, or
- Run the Text Import Wizard.
- If this also fails, the file is likely corrupt or not a valid text/CSV file and needs to be recreated by the data provider.
- Check for special characters in the file name or path
- If the CSV file or any folder in its path contains characters like
[ ],?,<,>,:,|, or*, Excel can fail to access it from outside Excel. - In File Explorer, rename the file and/or folders to remove these characters, then retry the import.
- If the CSV file or any folder in its path contains characters like
- Move the file to a simpler location
- Copy the CSV from Downloads to a simple path such as
C:\Data\test.csv(no special characters, short path) and try Get Data again.
- Copy the CSV from Downloads to a simple path such as
- Repair Office if all CSVs fail
- If every CSV (including a simple test one) fails with the same error, Office components may be corrupted.
- Run an Online Repair of Microsoft 365 from Windows Settings > Apps > Installed apps > Microsoft 365 > Modify > Online Repair, then retry the import.
If, after these steps, only the provider’s CSVs fail while test CSVs work, the provider’s export format or file integrity must be corrected on their side.
References:
- Import or export text (.txt or .csv) files
- Fix problems importing contacts to Outlook
- Excel doesn't fully support some special characters in the filename or folder path
- When I open an excel file it shows - We're sorry, but excel has run into an error that is preventing it from working correctly, Excel will need to be closed as a result. would you like us to repair now? then shows the option "repair now","help","close" - Microsoft Q&A