Getting Data In

Getting Error while upload CSV : "Encountered the following error while trying to save: File has no line endings"

Naa_Win
Path Finder

While I'm trying to upload my csv file as lookup, encountering the error like  - "Encountered the following error while trying to save: File has no line endings"

I had tried by removing extra space and special characters from the header but still facing this issue. Along with that I had tried saving as different format of csv's line utf-8, csv-ms doc etc., but NO LUCK 

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

How was the file created?  Have you tried changing the line endings (notepad++ can do this, perhaps other editors can as well)?

---
If this reply helps you, Karma would be appreciated.
0 Karma

Naa_Win
Path Finder

Basically we export from Airtable as a csv. 

I changed in notepad++,  view->show symbols-> show all characters, and  edit->EOL Conversion->Windows Format. but that doesn't work.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

>>> Basically we export from Airtable as a csv. 

Just after getting the above CSV file, Could you pls try to upload to Splunk(without notepad++ tasks). 
if the above CSV file upload fails, open the file in notepad(hoping that the file is not big enough) and inspect manually, if all looks good, maybe pls try to upload once again. 

maybe could you copy paste a screenshot of the error(after editing/masking/hiding sensitive details), thanks. 

0 Karma

Naa_Win
Path Finder

I had tried the way you told but I got the same error as above.

These are the last two values of my csv file in notepad + + 

Naa_Win_0-1704733042127.png

 



Does every line should have CRLF ?

 

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Rather than 2 events, I see 11.  Eight of them contain a single value and the remainder contain different numbers of values. 

A well-formed CSV file will have the same number of values in each event.  Any values with embedded CRLFs must be enclosed in quotation marks.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Is the CSV file well-formatted?  Missing quotes or unescaped embedded quotes (or commas) may affect how the file is loaded.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...