Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
A message "data contains X columns, expected Y" appears while importing a CSV file using Data sources - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • A message "data contains X columns, expected Y" appears while importing a CSV file using Data sources
KB0727707

A message "data contains X columns, expected Y" appears while importing a CSV file using Data sources


5455 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

You will recognize the problem if:

  • The data is NOT imported into the target table
  • Error similar to "data contains 25 columns, expected 26" is observed

Cause

There are inconsistent data columns in the CSV file being imported. In this occasion, while the CSV file was expected to contain rows of 26 data columns, some rows in the file were 25.

Resolution

Validate the CSV file being imported to ensure that there are consistent columns within the CSV file.

  1. Remove the extra columns in the file
  2. Alternatively, add the expected columns to the incomplete rows
Note: Ensure that the inconsistent CSV file is removed from the Data Source and the amended one is added after the changes are made

 

 

As a workaround, you may create the below system property to skip the non parseable row and load the correct rows. 

Name: com.glide.csv.loader.ignore_non_parseable_lines
Type: true | false
Value: true
Description: If any row in a CSV file is non parseable for whatever reason, skip loading of that row and move on to the next one.

This will ignore the row that has a mismatch in column numbers and move on to the next row instead of stopping the load then and there.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

No attachments found

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.