Skip to main content
Octopia (Cdiscount)

‘Test the connection first’ in Octopia Connector: when it appears and what to do

It appears when you press Refresh Referentials on an Octopia account whose State is not Connected. The module stops the action before doing anything; you fix it by testing the connection until the state is Connected and pressing the button again.

FlexigoTech · Editor in charge: Víctor Gómez · Updated 5 November 2026

Key facts

Versions
Odoo 17, 18, 19 and 20
Checked
in the connector's source code, version 20.0 · against the sources linked at the end
Reading time
4 min

When exactly it appears

The message Test the connection first: referentials are read with a working connection. appears when you press the Refresh Referentials button on an Octopia account. That button is always visible, in Odoo 17, 18, 19 and 20: it does not disappear depending on the account's state, so the check happens when you press it.

The condition is this: before doing anything, the module looks at the State field of the accounts the action runs on. If any of them has a state other than Connected, it raises the message and the action stops, without saving anything it was about to change. The message is in the code published for Odoo 17, 18, 19 and 20.

Diagram showing the Octopia, Configuration, Accounts menu, the Refresh Referentials button, the State field and the Test the connection first message
Diagram made with code from the module's published code, not an Odoo screenshot. The labels are in English, the module's original text.
48 business hours to accept each Cdiscount order. Do it in Odoo
Video: 48 business hours to accept each Cdiscount order. Do it in Odoo

What it means

The message does not report a failed refresh: the refresh has not even started. It says the account is not in the Connected state, and that referentials are read with a working connection.

The State field has three values: Draft, Connected and Authentication Error. The default value in the code is Draft. You do not write it yourself: the Test Connection button fills it in. You can see it on the Octopia Accounts form and also in the list, where it is read-only. So if you get the message, the account is in Draft or Authentication Error.

With Odoo in Spanish, the message is Pruebe primero la conexión: los referenciales se leen con una conexión que funcione.; in German, Testen Sie zuerst die Verbindung: Die Referenzdaten werden über eine funktionierende Verbindung gelesen.; in French, Testez d'abord la connexion : les référentiels se lisent avec une connexion qui fonctionne.; in Italian, Verificare prima la connessione: i referenziali si leggono con una connessione funzionante.; in Portuguese, Teste primeiro a ligação: os referenciais são lidos com uma ligação a funcionar.

Diagram showing the same message in Spanish, German, French, Italian and Portuguese
Diagram made with code from the module's published translations, not an Odoo screenshot.

How to fix it, step by step

  1. Open the menu Octopia › Configuration › Accounts. If a part of the menu is missing, you lack a permission: Accounts requires Octopia Admin, Configuration requires Octopia Manager and Octopia requires Octopia User.
  2. Find the account you pressed Refresh Referentials on and look at its State, on the form or in the Octopia Accounts list.
  3. If it does not say Connected, press Test Connection. That is the button that fills in the State field; you do not write it yourself.
  4. Look at State again. For the refresh to go ahead it has to say Connected. If it is still Draft or Authentication Error, Refresh Referentials will keep giving the same message.
  5. Press Refresh Referentials. You will no longer get the error: a notice titled Referentials appears with the text The refresh is running in the background. The Sync Log shows the result.
  6. Check the Sync Log for the outcome of the refresh: the notice itself points you to it.

What the button does once the account is connected

Once the check is passed, the method does three things, in this order: it records on the account the request to refresh the referentials, it triggers the scheduled task that refreshes them, and it shows you the notice from step five.

Why in the background: according to the code itself, the brand catalogue alone has about 112,000 entries, too many for a web request, and a request that gets killed rolls back everything it had done. That is why the button does not wait for the result: it launches the refresh and you read the outcome afterwards in the Sync Log.

If the account was not connected, none of this happens: the request is not recorded and the task is not triggered. That is why, after fixing the state, you have to press Refresh Referentials again.

What to check if it keeps appearing

  • That you are looking at the same account you press the button from: the condition is evaluated on the accounts of that action.
  • That State says Connected right before you press Refresh Referentials, not only after you tested the connection at some earlier point.
  • That your user can reach the Octopia › Configuration › Accounts menu with the permissions above.

Price and help

Octopia Connector (Cdiscount & Octopia Marketplaces) is published for Odoo 17, 18, 19 and 20 as a one-off purchase per version (the price of each is on its listing) and needs the FlexigoTech Cloud subscription, Connector plan: €49 a month or €490 a year, excluding VAT. The connection goes through FlexigoTech Cloud, which stores the credentials encrypted, watches the synchronisation and emails you if it fails.

If you are implementing Odoo with Octopia, FlexigoTech implements Odoo 17, 18, 19 and 20 and builds custom connectors and integrations. For other buttons in the module, see the guide to Import and the one on Send to Octopia.

Keep reading

What the Submit to Octopia button of Octopia Connector does, step by stepWhat the Submit to Octopia button does in Bulk Invoice Imports: when it shows, what it checks, what it changes and the one error it can raise.What the Import button of Octopia Connector does, step by stepWhat the Import button of Octopia Connector does in Odoo: when it shows, what it imports, what changes, the notice it gives and the log entry it leaves.What the Create Vendor Bill button in Octopia Connector doesWhat the Create Vendor Bill button in Octopia Connector does in Odoo: when it shows, what it checks, what it creates and where it can stop.
Checked in the connector's source code (version 20.0) and the linked sources

Sources