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

# Odoo troubleshooting

> Read Sync History, understand automatic retries, and fix failed Odoo syncs.

Every sync is recorded on the **Sync History** tab of the Odoo integration page. Each row shows the lead, what triggered the sync, links to the Odoo lead and company, and how many notes and activities it posted.

## Read a job

| Status | Meaning |
| - | - |
| **Queued** | Waiting to run, or waiting for an automatic retry. The row says when it runs next. |
| **Running** | Syncing now. |
| **Success** | The lead is in Odoo. An amber note under it lists anything CAARD skipped. |
| **Error** | The sync stopped. The row explains why and offers **Retry**. |

The company badge says what happened to the lead's company: **Company linked** (an existing Odoo company was reused), **Company created**, **Company: no domain** (the lead has no website or work email to match on), **Company: no match** (no match, and creating companies is off), or **Company failed**.

## Automatic retries

Odoo servers get busy, restart, or sit behind a proxy that limits requests. CAARD retries these on its own, so most of them never reach Sync History.

**1. Each request**

A request that's refused for being too many, or because Odoo is briefly unavailable, is tried again up to three times within a few seconds. When Odoo says how long to wait, CAARD waits that long.

**2. The whole lead**

If Odoo is still refusing, the job goes back to **Queued** and runs again after about 30 seconds, then 2 minutes, then 5 minutes, or later if Odoo asks for a longer wait. The row shows the time and the attempt number.

**3. The rest of a bulk sync**

During a bulk sync, the leads after a rate-limited one wait out the same delay instead of adding to the load. Their rows read **Waiting its turn** and don't use up any retries.

**4. After the last attempt**

The job shows **Error**. Once Odoo is back, select **Retry**.

A retry never creates duplicates. If Odoo saved a contact, company, lead, note or activity but its answer got lost on the way back, the retry finds the record and carries on from there.

A sync that stops part-way, for example because CAARD's own worker was interrupted, is picked up again automatically, usually within half an hour.

## How to fix a failed sync

**1. Open Sync History**

Go to **Integrations → Odoo → Sync History** and find the job marked **Error**.

**2. Read the error**

The row shows a short title and what to do. Hover over it to see Odoo's own message.

**3. Apply the fix**

Look the title up in the [error reference](#error-reference) below.

**4. Check with a test lead**

On the **Overview** tab, select **Send test lead** to sync a sample lead with your current settings.

**5. Retry**

Select **Retry** on the failed job.

## Error reference

These are the titles on failed jobs in Sync History.

> [accordion] Odoo is rate-limiting us
>
> **What it means:** Odoo, or a proxy in front of it, refused requests for being too many, and kept refusing through every automatic retry.
>
> **Fix:** Wait a few minutes and select **Retry**. If it keeps happening during bulk syncs on a self-hosted server, ask whoever runs it to raise the proxy's request limit for the integration user, or add Odoo workers.

> [accordion] Odoo is unavailable
>
> **What it means:** Odoo didn't answer, timed out, or said it was temporarily unavailable, through every automatic retry. This is usually a restart, maintenance or an overloaded server.
>
> **Fix:** Check that you can open Odoo in your browser, then select **Retry**.

> [accordion] Records belong to different Odoo companies
>
> **What it means:** Your Odoo has several companies, and Odoo refused to link the lead to a record of another company.
>
> **Fix:** See [Odoo with several companies](https://docs.caard.net/integrations/odoo-multi-company.md). Pick the company on the Routing tab, give the integration user every company, and check field mappings that point at records belonging to one company.

> [accordion] A field value was rejected by Odoo
>
> **What it means:** Odoo refused a value CAARD sent, for example a required field left empty or a value an Odoo rule doesn't allow.
>
> **Fix:** Hover over the message to see which field Odoo complained about, then change that row on the **Field Mapping** tab. **Send test lead** shows where every field lands.

> [accordion] Your Odoo connection needs to be reconnected
>
> **What it means:** Odoo rejected the API key. It was deleted, expired, or the user was archived.
>
> **Fix:** Create a new API key in Odoo (**Preferences → Account Security**) and use **Update credentials** on the Overview tab.

> [accordion] Odoo is missing some permissions
>
> **What it means:** The integration user isn't allowed to do something the sync needs, such as creating a lead for another salesperson.
>
> **Fix:** In Odoo, give the integration user **Sales: All Documents**, and access to Contacts. Reconnecting isn't needed.

> [accordion] Odoo isn't connected
>
> **What it means:** Odoo was disconnected while the lead was waiting to sync.
>
> **Fix:** Connect Odoo again on the Integrations page, then sync the lead.

> [accordion] We couldn't sync this lead to Odoo
>
> **What it means:** Something unexpected went wrong, most likely on our side.
>
> **Fix:** Select **Retry**. If it fails again, select **Report an issue** to send us the details.

## Notes on successful jobs

A sync can succeed and still skip something. The amber note under the job says what:

| Note | What to do |
| - | - |
| Skipped unknown Odoo fields | A mapping points at a field your Odoo doesn't have: a typo, or a field renamed or deleted in Odoo. Fix its technical name on the Field Mapping tab (developer mode shows it on hover), or remove the row. Right after a field is deleted, the job first waits with *A mapped field no longer exists in Odoo* while CAARD reloads Odoo's fields. |
| Odoo computes … itself | The mapped field is calculated by Odoo, so CAARD can't write it. Map a different field. |
| Odoo had no matching option or record | A value didn't match any choice in Odoo, so that one field was skipped. |
| Odoo couldn't sync the company | Odoo refused the company record, so the contact synced without it. To stop the sync instead, set **On company step failure** to **Fail entire sync** on the Overview tab. |
| Routing skipped the sales team, tag, medium or source | It was deleted, archived, belongs to another company, or the integration user can't access its company. Pick another on the Routing tab. |
| The lead owner's Odoo salesperson doesn't work in the lead's Odoo company | See [Odoo with several companies](https://docs.caard.net/integrations/odoo-multi-company.md). |
| Couldn't post notes to the Odoo chatter, or couldn't update task activities | Odoo refused the post. CAARD tries again on the lead's next sync. |
| More notes and tasks will post on the next sync | A lead with a long history posts in batches. |
| This lead has more Odoo chatter history than CAARD tracks | CAARD keeps track of up to 2,000 notes and tasks it posted to one lead. Past that it posts nothing new to that lead's chatter, so nothing is ever posted twice. Contact support if you see this. |

## Connection messages

| Message | What to do |
| - | - |
| Odoo rejected the login or API key | Generate a new key and use **Update credentials** on the Overview tab |
| This server hosts several databases | Enter the database name. It's shown in the database selector on the Odoo login page |
| The CRM app isn't installed | Install CRM from Odoo's Apps menu, then connect again |
| That address isn't reachable from CAARD | Use your Odoo's public `https://` address, not an IP address or internal hostname |
| Your Odoo moved to a new address | Use **Update credentials** with the new address and pick **Same Odoo database, new address**. Leads already in Odoo keep updating the same records |
| This doesn't look like the same Odoo database | CAARD couldn't find the leads it synced before at the new address. If it really is a different Odoo (a staging copy counts), pick **A different Odoo** |


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