> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules/rule-condition-is-not-a-valid-gtin-number.md).

# Find invalid GTINs and EANs

Find items with an invalid GTIN or EAN value.

Use **`Is not a valid GTIN number`** to find items with an invalid GTIN or EAN:

* **IF** `gtin` **`Is not a valid GTIN number`** selects items with an invalid GTIN.
* **IF** `ean` **`Is not a valid GTIN number`** selects items with an invalid EAN.

{% hint style="info" %}

#### Why is this imporant?

Some channels, including Amazon, require a GTIN or EAN.
{% endhint %}

{% hint style="info" %}

#### Requirement

In **Setup > Edit mapping**, map the field as a GTIN or EAN field. This condition only works with those field types.
{% endhint %}

Valid GTINs contain 8, 12, 13, or 14 digits. Channable also validates the [check digit](#check-digits).

<details>

<summary>Check digits</summary>

The last digit of a barcode number is a computer [check digit](https://www.gs1.org/services/check-digit-calculator). It confirms that the barcode number is correctly composed.

All fixed-length, numeric GS1 Identification Keys use a check digit to confirm the key's integrity. Component/Part Identifier (CPID) and Global Individual Asset Identifier (GIAI) don't use one. Global Model Number (GMN) uses two check characters instead.

</details>

***

### Example invalid-GTIN usage

Use this condition to prevent invalid product identifiers from reaching a channel:

* **Exclude invalid items:** Select the condition **`Is not a valid GTIN number`**, then use the **`Exclude item(s)`** action to exclude items with invalid `gtin` values.
* **Review invalid values:** Select the condition **`Is not a valid GTIN number`**, then use the **`Set value`** action to set a custom field to `invalid GTIN` for items with invalid `ean` values.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules/rule-condition-is-not-a-valid-gtin-number.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
