- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 08:37 AM
I have a CSV that has blank rows at the end. The import fails because it expected x number of columns. DBAs seem they can't control this on their export. I have my doubts.
Can do anything on the ServiceNow end to ignore blank rows during the import process? Would I also have to do the same for the transform to ignore blank records?
Just for clarification, this is during the load and not the transform. The export from the SQL query has blank rows and when ServiceNow loads it into a table, it will error at the end because it expects more than one column. You wouldn't be able to run any transform rules to work around it.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 03:35 PM
Create property "com.glide.csv.loader.ignore_non_parseable_lines" = true. This should ignore the error and load the data. The data can be validated after the load during the transform.
This property is not created in OOTB ServiceNow and needs to be created.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 08:49 AM
You can ignore rows with empty data using transform script in your transform map.
if(source.u_field1 == '' && source.u_field2 == '' && source.u_field3 == '')
{
ignore = true;
}
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 09:39 AM
Hi,
This could help you:
https://exceljet.net/lessons/how-to-quickly-remove-blank-rows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 09:51 AM
This is through an automated export so I wouldn't have any control over it unfortunately.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 09:58 AM
How are you processing these exports?
You must have some data sources, trasnform map , API to process these imports?
Regards,
Sachin