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. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...