# Invalid Record Length

{% hint style="info" %}
By default, Stockeo requires CSV files to have the same number of columns in every row. If the error message *Invalid Record Length: expected x, got y on line z* appears, it means that row z has a different number of columns than the previous rows.
{% endhint %}

Strict parsing of CSV files offers several advantages. For example, it helps prevent column misalignment when a product description contains a comma, but the value is not enclosed in quotes. This issue could lead to incorrect data mapping, such as mistakenly assigning the cost as the retail price if those fields are adjacent.

However, differences in the number of columns may still occur, often due to varying numbers of image URLs at the end of each row. The *Ignore inconsistent number of columns* checkbox lets you instruct the app to skip rows in the CSV file that don't match the column count of the header row. This is helpful when some rows have missing or additional data.

<figure><img src="/files/zun0IL16mAq247zwvAIe" alt=""><figcaption><p>Stockeo - Ingore inconsistent number of columns in CSV files</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.stockeo.solvenium.com/troubleshooting/invalid-record-length.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
