- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I get the error showed in the title when tying to upload a csv as lookup. I tried the solution mentioned here:
https://community.splunk.com/t5/Splunk-Search/What-does-the-error-quot-File-has-no-line-endings-quot...
but that doesn't work. Any suggestions?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I lessened the amount of fields in the csv and that solved the issue.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you able to open the file in a text editor, then copy the content to a new file, then save it as .csv? Perhaps there is a hidden part of the file which is causing issues. You could also try opening the lookup with the lookup editor app and then pasting the contents into the lookup editor interface, assuming the file is not too big.
Some other troubleshooting steps:
1. Can you upload other CSV files?
2. Can you truncate the problem file to a smaller csv file and try uploading it?
3. Can you try saving the .CSV file using a different text processor?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I lessened the amount of fields in the csv and that solved the issue.
![](/skins/images/89D5ADE867CBAF0B5A525B7E23D83D7E/responsive_peak/images/icon_anonymous_message.png)