Skip to main content

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​

ButtonGroupWhat it does
RefreshReplicationReloads the providers tree and the Summaries tab, clears the selected node, and rechecks which buttons are enabled.
SettingsSettingsOpens the Settings wizard to define the distributor. It works only when the file has no distributor.
Delete ReplicationSettingsDeletes 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 SubscribersRestore SubscribersRecreates 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 PublisherCreateOpens the Publisher wizard. It works only when a distributor exists.
Create SubscriberCreateOpens the Subscriber wizard. It works only when the file has at least one published article.
New ServerAddOpens Add Database Server.
Custom FieldsAddAdds 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.
PropertiesViewA toggle: opens the Properties panel at the side of the window and closes it. The window starts with the panel closed.
SaveStyleWrites the tab layout to the layout file. The window does not read this file when it opens.
ResetStyleSets a flag so that the default layout is written back to the file the next time the window opens. No message appears.
CloseCloseCloses 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.

ButtonGroupWhat it does by node
SyncStartOn 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 SyncStartStops 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 SubscriberSubscriberAppears when a subscriber is selected. Runs the jobs of this subscriber for all articles.
EditSubscriberAppears when a subscriber is selected. Opens the Edit Subscriber wizard for the article of the node.
DeleteSubscriberAppears when a subscriber is selected. Deletes the subscription of this article after a question (Messages).
DeletePublisherAppears 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.

NodeWhat it holdsWhat happens when you select it
Servers (root)A heading for the registered servers.Nothing is selected in the other panels.
A server descriptionEach 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 nameThe database of the open file.The Tools category appears. Sync runs for all subscribers.
An article name, such as Main ArticleEvery published article, according to the article types.Its run history shows in Replication Details. The Publisher group appears in the ribbon.
A subscriber database nameUnder 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.

FieldDescriptionValues and rules
PreviewSets 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.
ColumnMeaning
StateStart, Succeeded, In Progress, Idle, Retry or Failed.
Start DateWhen the run started.
End TimeWhen the run ended.
Duration (Seconds)How long the run took.
Operations count from Subscriber to PublisherThe uploaded operations. It shows when a subscriber is selected.
Operations count from Publisher to SubscriberThe downloaded operations. It shows when a subscriber is selected.
Last MessageThe 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.

FieldDescriptionValues and rules
Conflict TypeSets 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 CountThe 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 listA 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 gridDescription
Fields NameThe name of each column in the record.
Conflict WinnerThe value that stayed in the publisher.
Conflict LoserThe 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.

ColumnMeaning
Articles NameThe article name on the snapshot row; empty on a subscriber row.
Database NameThe publisher database on the article row, and the subscriber database on its row.
Server NameThe publisher server, or the subscriber server.
StateThe state of the last run: Failed, Succeeded, Retry, Cancelled, In Progress or Running.
DateThe date and time of the last run.
Duration D:H:M:SHow long the last run took.
Next Run TimeThe 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.

FieldDescriptionValues and rules
PasswordThe server password.Shown masked.
Server NameThe SQL Server name.Text.
DescriptionThe name that shows in the tree.Text.
Authentication TypeHow to sign in to the server.WINDOWS or SQLSERVER.
User NameThe SQL Server user name.Text.
ButtonWhat it does
SaveTries 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 headerCloses 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​

MessageWhen it appearsWhat 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 itYou 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 completedYou 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 continueYou 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.

This page applies to alameen ERP 10, version 10.1.79.764.