> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/connectors/pos/cegid/events-and-operations/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://docs.thewalletcrew.io/~gitbook/mcp).

# Troubleshooting

Resolve common Cegid Retail Y2 connector errors involving customer enrolment, loyalty cards, store routing, receipts, and authentication.

Cegid integration issues often stem from Cegid configuration or reference data. This page lists common symptoms, likely causes, and practical remedies.

## Where to look first

The **Logs** page of the admin console (**Settings → Monitoring → Logs**) is the starting point for any Cegid problem. Filtering on the Cegid fault prefix isolates errors Cegid itself raised, as distinct from connector errors.

{% hint style="warning" %}
Two filters mislead. Searching logs for the Cegid fault prefix as plain text also matches pass identifiers, which can inflate an apparent error count by an order of magnitude. Searching for the Cegid host name matches wallet links that embed it. Both filters need narrowing to the relevant log category before the counts mean anything.
{% endhint %}

## Common failures

| Symptom                                                                        | Cause                                                                                                                                                          | Remedy                                                                                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Cegid reports an unknown card number                                           | A card referenced on a pass no longer resolves in Cegid.                                                                                                       | Confirm the card still exists and is active in Cegid. Where it does not, clear the card identifier from the pass so the customer's current card is resolved.                                                                                                                 |
| Failure to generate a customer code automatically (fault `WP006`)              | The store's counter is exhausted, or the store has no counter. Not a credentials problem, despite often appearing alongside one.                               | Extend the counter range in Cegid for that store. See [Cegid-side prerequisites](https://docs.thewalletcrew.io/connectors/pos/cegid/setup-and-configuration/cegid-side-prerequisites.md).                                                                                    |
| Enrolment succeeds but the customer is attributed to an unexpected store       | The store has no connection of its own, or the connection name does not exactly match the store identifier, so the default connection's credentials were used. | Add a connection named for the store, or bind the store to the correct connection. See [Connections and stores](https://docs.thewalletcrew.io/connectors/pos/cegid/setup-and-configuration/connections-and-stores.md).                                                       |
| An existing customer is matched intermittently, or the wrong record is updated | Several Cegid records match the email address or telephone number; the most recently modified is used.                                                         | Resolve the duplicates in Cegid. Until then the behavior will vary as records are modified.                                                                                                                                                                                  |
| Cegid reports more than one country for an ISO code                            | Duplicate country rows in the Cegid reference table share one ISO-2 code.                                                                                      | De-duplicate the country table in Cegid.                                                                                                                                                                                                                                     |
| Cegid reports no country found for an ISO code                                 | The market's country row is missing from the Cegid reference table, or carries no ISO-2 code.                                                                  | Add or correct the row in Cegid.                                                                                                                                                                                                                                             |
| A country returned by Cegid cannot be mapped                                   | Cegid holds a country identifier that does not correspond to a recognized ISO code.                                                                            | Correct the reference data. The record is otherwise processed; only the country is dropped.                                                                                                                                                                                  |
| Cegid reports the program is not associated with a campaign for the store      | Usually a deactivated loyalty card referenced by a pass, rather than a campaign problem. Less often, the store really is absent from the campaign.             | Clear the card identifier from the pass (see [Loyalty cards and programmes](https://docs.thewalletcrew.io/connectors/pos/cegid/customer-data-and-loyalty/loyalty-cards-and-programmes.md)). If the problem affects every customer at a store, add the store to the campaign. |
| Authentication is rejected                                                     | The service-user password has expired or been changed, or a retired store's credentials are still configured.                                                  | Follow the credential rotation procedure in [Operations runbooks](https://docs.thewalletcrew.io/connectors/pos/cegid/events-and-operations/operations-runbooks.md#rotate-credentials), or remove the connection for a store no longer trading.                               |
| Receipt generation fails                                                       | The configured receipt template does not exist, or the requested document cannot be found.                                                                     | Verify the template identifier on the connection concerned, and that the document exists in Cegid.                                                                                                                                                                           |
| Enrolment fails only for some markets                                          | Cegid rejects certain characters in address fields even where it accepts them elsewhere in the record.                                                         | Normalize the affected fields in the mapping script, using the `ensureLatin` global (see the [Scripting reference](https://docs.thewalletcrew.io/connectors/pos/cegid/developer-reference/scripting-reference.md#helpers-available-to-scripts)).                             |
| A store can sign in from head office but not from the shop                     | Repeated failed sign-in attempts from the shop's address have triggered a protective block on that address.                                                    | The account itself is unaffected. The block clears in time; repeated attempts extend it.                                                                                                                                                                                     |

## Mapping problems

Where a field is written but never appears, or appears in the wrong place, see the do and don't table in [Customize the mapping](https://docs.thewalletcrew.io/connectors/pos/cegid/customer-data-and-loyalty/customise-the-mapping.md). If **no** customization appears to take effect at all, a syntax error in any script file, not necessarily the mapping file, will have prevented every script from loading.

A consent is written only when the channel it governs has data on the same submission: see the consent warning in [Cegid Retail Y2 fields mapping](https://docs.thewalletcrew.io/connectors/pos/cegid/customer-data-and-loyalty/cegid-retail-y2-fields-mapping.md).

## What to send to support

* Tenant, and the environment (production or staging).
* Connection name and store identifier.
* Time window of the failure.
* The Cegid fault text and fault code from the **Logs** page.
* The pass identifier, when a pass is concerned.

## FAQ

<details>

<summary><strong>An error appeared once and has not recurred. Is action needed?</strong></summary>

Isolated faults on individual records are usually data-specific, such as an unusual character or a missing reference value, and resolve with the record. A pattern affecting a whole store or market is the one to escalate.

</details>


---

# 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://docs.thewalletcrew.io/connectors/pos/cegid/events-and-operations/troubleshooting.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.
