How to import a CSV file without headers?

jamesgb
Kilo Explorer

Hello,

I am wondering if it is possible to import a CSV file that it doesn't any header. I tried and ServiceNow says expected two columns but there is only one.

I checked out on google and I see that some peope having same requirement sometimes while working this type of no header data files.

Have you ever tried? Is there any feature in ServiceNow for this?

---

1 ACCEPTED SOLUTION

So the short answer is "You need headers to import a CSV in ServiceNow." How you get those headers in is up to you (or the upstream data provider.)



If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you


View solution in original post

13 REPLIES 13

Chuck Tomasi
Tera Patron

HI Mehmet,



Are you indicating that your CSV has no header row in it? It just starts out as



Chuck


Mehmet


Fred


Don



And no "name" or other indicator at the top to tell you what the field is?



If that's the case, then no. It won't work in ServiceNow. It needs something to reference to map the incoming field to the target field. I recommend opening the file in a text editor and put one in. Then you can do the proper mapping.


Yes, I mean that 'name' row that names to subsequent rows' column names.



So, I need to find out a another way.



I can change file but there are tons of file, this is not a one file to import and use. Those files come regularly from an external source that I have to have ServiceNow processing them.



Thank you!


corina
ServiceNow Employee
ServiceNow Employee

Hello Mehmet.



Maybe you could explore the workaround from here:



Re: Importing a csv file without column headers


Thank you Corina.



But the problem is that it is not just one or couple of files. Tons of.