Replication System
The Replication System window is where all replication is managed. You define the distributor, the publisher and the subscribers, run and stop synchronization, and follow the job history and the conflicts. It opens only from the publisher file. For the general idea read Understanding replication, and for the steps Open the replication system.
Opening the window
- From the ribbon: Systems > Replication > Replication. The conditions and messages are in Open the replication system.
- The button appears when the program licence includes the replication feature. The Operations page of Users Management has a permission named Replication.
- The window opens maximized and stays open beside the rest of the program, so it does not stop you from working in other windows.
The window title is Replication System. The ribbon is at the top, the Providers panel on the left, the three tabs in the middle, the Properties panel on request, and the status bar at the bottom.
The ribbon
The ribbon has a Main page, and a Tools page that appears according to the selected node. Refresh is also on the quick access toolbar at the top of the window. The buttons of this ribbon need no extra permission.
Main page
| Button | Group | What it does |
|---|---|---|
| Refresh | Replication | Reloads the providers tree and the Summaries tab, clears the selected node, and rechecks which buttons are enabled. |
| Settings | Settings | Opens the Settings wizard to define the distributor. It works only when the file has no distributor. |
| Delete Replication | Settings | Deletes the replication system from the file. It works only when a distributor exists. The program asks first (Messages). When you agree, it deletes the articles, the subscriptions and the replication settings stored in the file, and removes replication from the database. It cannot be undone. |
| Restore Subscribers | Restore Subscribers | Recreates the articles and subscribers that the program saved before a file update (Update files). It works only when the file holds saved settings. When it finishes, the display refreshes. If the database version of a subscriber is older than the publisher's, a message appears (Messages). The saved settings of every subscriber that was recreated are deleted, and so are those already added. |
| Create Publisher | Create | Opens the Publisher wizard. It works only when a distributor exists. |
| Create Subscriber | Create | Opens the Subscriber wizard. It works only when the file has at least one published article. |
| New Server | Add | Opens Add Database Server. |
| Custom Fields | Add | Adds the custom field tables that are not yet published to the Custom Fields article, then reinitializes its subscriptions. The program asks first, and after the command finishes it shows "Successfully completed" (Messages). The button is always enabled. |
| Properties | View | A toggle: opens the Properties panel at the side of the window and closes it. The window starts with the panel closed. |
| Save | Style | Writes the tab layout to the layout file. The window does not read this file when it opens. |
| Reset | Style | Sets a flag so that the default layout is written back to the file the next time the window opens. No message appears. |
| Close | Close | Closes the window (Messages). |
Tools page
The Tools category appears above the ribbon when you select the main database node, an article node or a subscriber node in the Providers panel. It does not appear when you select servers.
| Button | Group | What it does by node |
|---|---|---|
| Sync | Start | On the main database node: runs synchronization of all subscribers for all articles. On an article node: runs the snapshot of that article. On a subscriber node: runs that subscriber's job for that article. No message appears, then the display refreshes. |
| Stop Sync | Start | Stops the running job of the selected article or subscriber. It is enabled when you select the node if its job is running at that moment, and does not change until you select another node or click Refresh. No message appears. |
| Sync Subscriber | Subscriber | Appears when a subscriber is selected. Runs the jobs of this subscriber for all articles. |
| Edit | Subscriber | Appears when a subscriber is selected. Opens the Edit Subscriber wizard for the article of the node. |
| Delete | Subscriber | Appears when a subscriber is selected. Deletes the subscription of this article after a question (Messages). |
| Delete | Publisher | Appears when an article is selected. Deletes the publication of the article after a question, and refuses if it has subscribers (Messages). |
The Providers panel
A tree without column headers. All nodes are expanded when it opens, and each node has an icon.
| Node | What it holds | What happens when you select it |
|---|---|---|
| Servers (root) | A heading for the registered servers. | Nothing is selected in the other panels. |
| A server description | Each server registered in Add Database Server. | Its data shows in the Properties panel. |
| Publisher (second root) | Appears when the file has at least one published article. | Nothing. |
| The main database name | The database of the open file. | The Tools category appears. Sync runs for all subscribers. |
| An article name, such as Main Article | Every published article, according to the article types. | Its run history shows in Replication Details. The Publisher group appears in the ribbon. |
| A subscriber database name | Under each article, the subscribers of that article. | Its synchronization history shows, with the conflicts of the article and the Subscriber group in the ribbon. |
Below the tree is the line Details:, followed by the server name and the name of the selected node. It is empty when no node is selected.
Replication Details tab
It shows the run history of the article or subscriber selected in the right-hand panel. It shows nothing when the main database or the servers are selected.
| Field | Description | Values and rules |
|---|---|---|
| Preview | Sets the period or kind of runs shown. | The initial value is Sync Last 24 Hours. Values: Sync Last 24 Hours, Sync Last 2 Days, Sync Last Week, Sync Last 100, Sync Errors Only, Sync All. The list reloads when you change it. |
| Column | Meaning |
|---|---|
| State | Start, Succeeded, In Progress, Idle, Retry or Failed. |
| Start Date | When the run started. |
| End Time | When the run ended. |
| Duration (Seconds) | How long the run took. |
| Operations count from Subscriber to Publisher | The uploaded operations. It shows when a subscriber is selected. |
| Operations count from Publisher to Subscriber | The downloaded operations. It shows when a subscriber is selected. |
| Last Message | The message the job recorded in its last step. |
The grid is read-only and has no right-click menus.
Conflicts tab
It works when a subscriber is selected. For the idea read Conflicts.
| Field | Description | Values and rules |
|---|---|---|
| Conflict Type | Sets which conflicts appear in the list. | The initial value is Records modified in publisher and subscriber. The ten values are in the table below. |
| Conflicts Count | The number of all conflicts of the selected article. | A read-only number. It covers all types and all subscribers of the article, not only the selected type. |
| The list | A line for each conflict of the selected type: the date, then the name of the affected table. | Selecting a line shows its details in the grid below. Its height is fixed. |
| Lower grid | Description |
|---|---|
| Fields Name | The name of each column in the record. |
| Conflict Winner | The value that stayed in the publisher. |
| Conflict Loser | The value that was replaced and kept for review. |
Conflict types in the list:
| Type |
|---|
| Records modified in publisher and subscriber |
| Records modified in subscriber, and deleted in publisher |
| Records modified in publisher, and deleted in subscriber |
| Records inserted in subscriber, but not posted to publisher |
| Records inserted in publisher, but not posted to subscriber |
| Records deleted in subscriber, but not in publisher |
| Records deleted in publisher, but not in subscriber |
| Records modified in subscriber, but not in publisher |
| Records modified in publisher, but not in subscriber |
| Other |
The tab has no buttons. It does not delete conflicts and does not restore the losing value.
Summaries tab
A tree with columns that shows the last run and the next run of the file's jobs, without selecting a node. The Refresh button updates it. The first row of each article is its snapshot, and the subscriber rows are under it.
| Column | Meaning |
|---|---|
| Articles Name | The article name on the snapshot row; empty on a subscriber row. |
| Database Name | The publisher database on the article row, and the subscriber database on its row. |
| Server Name | The publisher server, or the subscriber server. |
| State | The state of the last run: Failed, Succeeded, Retry, Cancelled, In Progress or Running. |
| Date | The date and time of the last run. |
| Duration D:H:M:S | How long the last run took. |
| Next Run Time | The next time in the schedule. |
Properties panel
It opens with the Properties toggle in the ribbon, and closes with it. It shows the data of the server selected in the tree, and edits it. When you select an article it shows the publisher's server, and when you select a subscriber it shows the subscriber's server.
| Field | Description | Values and rules |
|---|---|---|
| Password | The server password. | Shown masked. |
| Server Name | The SQL Server name. | Text. |
| Description | The name that shows in the tree. | Text. |
| Authentication Type | How to sign in to the server. | WINDOWS or SQLSERVER. |
| User Name | The SQL Server user name. | Text. |
| Button | What it does |
|---|---|
| Save | Tries to connect to the server with the values you typed, and saves them if it succeeds. No message appears either way. |
| The close button in the panel header | Closes the panel like the Properties toggle. |
Status bar
It shows, on the left (in an English interface): the description of the selected server, then the replication type: Branches and Types or Types.
Database creation progress window
A small window without a frame, with the text Creating Database above a moving progress bar and a Cancel button that closes it. It opens when a subscriber is created with a new database, but the subscriber wizard does not offer the new-database option, so it does not appear.
Messages
| Message | When it appears | What to do |
|---|---|---|
| The replication system will be permanently deleted, and you cannot undo. Do you want to continue? | You clicked Delete Replication. | Click Yes to delete, or No. |
| The publisher system will be permanently deleted, and you cannot undo. Do you want to continue? | You clicked Delete in the Publisher group. | Click Yes or No. |
| Cannot delete the publisher! there are one or more subscribers related to it | You agreed to delete the article and it has subscribers. | Delete the subscribers of the article first. |
| The subscriber system will be permanently deleted, and you cannot undo. Do you want to continue? | You clicked Delete in the Subscriber group. | Click Yes or No. |
| Make sure to sync all data before custom fields sync to avoid data loss, are you sure? | You clicked Custom Fields. | Synchronize all data, then answer Yes. |
| Successfully completed | You answered Yes to the custom fields question. It appears when the command ends, even if it did not succeed. | Check the article in the Replication Details tab. |
| Old database version for one or more subscribers, you need to update before continue | You clicked Restore Subscribers and the database version of a subscriber is older than the publisher's. | Update the subscriber database, then try again. |
| Are you sure you want to close the replication system? | You clicked Close and the warning option On exit is on. The text appears as the title of the question. | Confirm the close, or cancel it. |
If an unexpected error happens in the window, the program closes it and shows the error window.
Related
This page applies to alameen ERP 10, version 10.1.79.764.