Synchronization

When the school works with a local installation of ClassMata (on a computer at the school), its data stays on site. The Synchronization page sends it to the online database and fetches the updates, so the online portal and the local installation tell the same story. Accessible from Administration → Synchronization.

Permissions. The page requires access to Administration and the Synchronization permission (see Role Management).

Where to run it? Synchronization is launched from the school's local installation. From the online portal, the button answers "Impossible to run a synchronization from the online portal". In the mobile app, the page is not offered.

The page

Synchronization page

It has three elements:

  1. The Online master connection and This PC panels;
  2. The Launch sync and Check only buttons;
  3. The conflict cards and the history table of synchronizations.

Online master connection

Online master connection panel

This panel is used to give the connection to the online database once: paste the online master connection string given to you by the ClassMata team, then click Save ("Online master connection saved."). As long as it is not filled in, the panel is open and shows the warning "The online master connection is not configured.".

Confidentiality. This string gives access to the school's online database: do not share it and do not copy it into a document.

Launch a synchronization

Launch sync starts the exchange. Meanwhile, the button shows "Syncing…" and a progress bar shows the table being processed and the percentage done. At the end:

  • the message "Sync complete." confirms success, otherwise "Sync failed." (with the reason when it is known);
  • two chips sum up the checks made: Tenant verified / Tenant not verified and Version up to date / Version outdated. An outdated version means your ClassMata is behind the server's version.

This PC's code

Every computer that synchronizes has a 2-capital-letter code (for example K2), assigned by an administrator at install. Type it in the This PC panel, then Save. The code appears in the numbers the PC issues: student number ELV-2026-K2-00001, receipt K2-458. Two computers can therefore never issue the same number. Until the code is set, the PC can neither synchronize nor create a student, staff member or receipt. Two PCs cannot share a code: the second one is refused with a message.

The three steps

  1. Check: reads both databases without changing anything and tells you what would be sent, received, fixed, and whether there are conflicts. Do it as often as you like.
  2. Review: if something needs a decision, a card appears (see below).
  3. Synchronize: exchanges the data. Everything is written in one go: if anything fails, nothing is kept and you can simply try again.

Only one PC synchronizes at a time. If another one is running you are asked to try again in a few minutes. The computer's clock must also be right (at most 3 minutes away from the server): the most recent edit wins, and recency is read from the clock.

Conflicts

When two different records cannot coexist (same number, same code, the same payment entered twice…), the synchronization stops before writing anything and shows one card per problem, in plain language, with the version on this PC on the left and the online (official) version on the right. Each card offers buttons; the recommended one is marked ★:

Button Effect
Keep the online one and merge mine into it Your copy goes away; everything that used it points to the online version.
Rename mine You type another value for your copy; both stay.
Give mine a new number Your copy takes the next free number (the login account follows).
Keep both It is not a duplicate: the question will not be asked again.
Cancel the one on this PC / the online one For a payment or student entered twice: one of the two is cancelled.

Your choice is saved and then applied by a new check, which shows the next problem or "Everything is ready".

Who can decide? Each card needs the access right of the page it belongs to (finance for a payment, students for a student…). Without it the card shows a padlock: ask someone who has the right to run the synchronization on this PC.

Receipts are never renumbered without you, because they may already have been handed to parents. A renumbered receipt keeps the old number in its notes.

Fixed automatically

Some problems are sorted out without bothering you: a subject or room created on both sides with the same code and the same name is merged into the online version (the online version is the reference). The Fixed automatically list shows what was done.

Replaced edits

If the same record was edited on two PCs since the last synchronization, the most recent edit wins. The other one is not lost: it appears under Edits replaced by a more recent version with a Restore button (the restored version is sent at the next synchronization). For financial data the line is marked To review (finance).

History

Each synchronization leaves one row in the table:

Column Content
Date Start of the synchronization
Status success, failed, check (check only) or blocked (stopped before writing: conflict, missing code, clock…)
Pushed Number of rows sent to the online database
Pulled Number of rows received from the online database
Version ClassMata version that launched the synchronization
Message Detailed result, for example "Sync complete. Pushed 6, pulled 0."

Tip. If a synchronization fails, run it again once the internet connection is back; if it keeps failing, pass the text of the Message column on to the ClassMata team.

Last updated: