> ## 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 cannot have null entries

> Resolve the error returned when a column contains null values but its data type doesn't allow them.

## Error message

```text wrap theme={null}
Column <column name> is of type <data type> and cannot have null entries
```

This error can appear when using any component.

### Explanation

A column is expected to contain entries of the specified data type, but it contains one or more null values.

### Potential causes

* Your source data contains null values.
* The data types in your source data and your pipeline configuration don't match.
* A transformation component has inadvertently added null values to your data.

***

## Resolve the error

1. Check your source data and clean it to remove any null values in this column. This might involve deleting rows or adding appropriate values.
2. If your source data doesn't contain any null values, find the component where the column is defined and check that the data type is correct.
3. If the data type is correct, check the configuration of your transformation components to make sure that a component isn't adding null values to the column.
4. If none of these steps work, add a component to your transformation pipeline to handle null values in the column, for example by replacing any null values with a default value of the correct data type.
5. Re-run the pipeline.
6. 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 null values in your columns.
* Add a component to handle null values in the column, for example [Calculator](https://docs.maia.ai/docs/components/calculator.md), [Data Cleanse](https://docs.maia.ai/docs/components/data-cleanse.md), or [Filter](https://docs.maia.ai/docs/components/filter.md).


## Related topics

- [Column data type mismatch](https://docs.maia.ai/docs/errors/column-data-type-mismatch.md)


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