SAP Knowledge Base Article - Public

2860714 - Connector Error: Input size doesn't match with declared headers at line Number

Symptom

Connector job doesn't run and it returns the following error:

Error while reading content of file : <connector filename>txt. Invalid Input file. Input size doesn't match with declared headers at line Number : <line number>.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Learning

Cause

The error is due to the additional columns or extra character in the input file, which doesn't match the column headers. For example:

Capture.png

Resolution

  1. On the connector job, click "Show Archived Input Files" > Save it on your local machine 
  2. Open Excel > Data > Get Data > From File > From Text/CSV 
  3. Select the connector file and import it > Don't forget to define the correct delimiter 
  4. Refer to the line number on the error, then check for extra characters 
  5. Make the necessary changes, then re-run the connector.

It's possible to download connector templates to see sample import files with the correct format (System Administration > Connectors > Download Connector Template).

It's recommended to engage the SAP team that delivers services or an SAP Certified Partner to review and perform adjustments in the connector configuration/file. 

See Also

Keywords

input size doesn't match with declared headers, error while reading content of file, connector, learning, error, processing, exception, header, input, size, read, reading, run, running , KBA , LOD-SF-LMS-CON , Connectors , Problem

Product

SAP SuccessFactors Learning all versions