> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Column data type mismatch

> Resolve the error returned when the data type of a column doesn't match the data type your pipeline expects.

## Error message

```text wrap theme={null}
Expected: <column name>:<data type> Actual: <column name>:<data type>
```

This error can appear when using any component.

### Explanation

The expected data type of a column doesn't match its actual data type. For example, the message might appear as `Expected: Quantity:VARCHAR(40) Actual: Quantity:VARCHAR(2000)`.

### Potential causes

* The schema of your source data is different from the schema your pipeline expects.
* The column's data type is set incorrectly.
* A transformation component is changing the column's data type.

***

## Resolve the error

1. Find the component where the column is defined and check the column's data type. If it isn't correct, update the data type.
2. If the data type is correct, check the schema of your source data. If it's different from your pipeline configuration, change your pipeline configuration to match.
3. If the schema is the same as your pipeline configuration, check the configuration of your transformation components to make sure that a component isn't changing the column's data type.
4. Re-run the pipeline.
5. If you still need help, [contact Maia Support](https://support.matillion.com/s/) and include the items listed below.

   * The full error text.
   * The root pipeline execution ID.
   * The Maia runner ID and time of failure (UTC).

### Prevent future errors

To prevent this error occurring again, [sample the data](https://docs.maia.ai/docs/guides/sampling-output.md) as you build your pipeline, so that you're aware of any differences between the data types in your source data and your pipeline configuration.


## Related topics

- [Column cannot have null entries](https://docs.maia.ai/docs/errors/column-cannot-have-null-entries.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.