> 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/manage-product-and-improve-data-fr/regles-modifier-et-enrichir-en-masse/comment-utiliser-les-conditions-si-dans-les-regles/condition-de-regle-gtin-ou-ean-non-valide.md).

# Condition de règle : GTIN ou EAN non valide

### Cas d'utilisation

* Détecter et exclure les produits avec des GTIN ou EAN non valides (pour certains canaux, comme Amazon, les GTIN ou EAN sont obligatoires)

### est valide

Utilisez le **est valide** action pour vérifier que les valeurs GTIN ou EAN sont valides. Le format GTIN correct est de huit, douze, treize ou quatorze chiffres.

### n'est pas valide

Utilisez le **n'est pas valide** action pour vérifier si le format GTIN ou EAN est correct. Cette action [calcule un chiffre de contrôle](https://www.gs1.org/services/check-digit-calculator) (qui permet de s'assurer que le code-barres est correctement constitué).

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/OY6JJIFuVUi0s1i42Uu8/360014391599" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Dans **Installation > Modifier mapping**, assurez-vous que le champ est mappé correctement et qu'il s'agit du bon type, car ces actions ne peuvent être utilisées que pour les champs GTIN et EAN.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/3mueuiG2h0GLzjfsBAgP/12336072381842" alt=""><figcaption></figcaption></figure>


---

# 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/manage-product-and-improve-data-fr/regles-modifier-et-enrichir-en-masse/comment-utiliser-les-conditions-si-dans-les-regles/condition-de-regle-gtin-ou-ean-non-valide.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.
