Skip to main content

Replication wizards

Four wizards open from Replication System: Settings (defines the distributor), Create Publisher, Create Subscriber and Edit Subscriber. The ordered steps are in Create a publisher and a subscriber. For the roles and terms read Understanding replication.

Opening the wizards​

All are dialogs that open in the centre of the screen at a fixed size. They work only from the Replication System window, and the window refreshes after the first three (Settings, Create Publisher and Create Subscriber) close.

WizardHow it opensCondition
SettingsThe Settings button in the Settings groupThe file has no distributor.
Create PublisherThe Create Publisher buttonA distributor exists.
Create SubscriberThe Create Subscriber buttonAn article is published.
Edit SubscriberThe Edit button in the Subscriber group of the Tools pageA subscriber is selected in the tree.

Wizard buttons​

ButtonWhat it does
NextGoes to the next page, after the checks of the current page if it has any.
BackReturns to the previous page.
StartAppears on the page that ends the wizard (in the Publisher wizard: the articles page). Runs what you chose.
CancelAsks "Do you want to cancel the operation ?"; Yes closes the wizard without saving, and No keeps it.

The welcome page of the first three wizards shows three fixed paragraphs and a side picture, and has no fields. They say that the wizard guides you step by step, that the operation is done once (for the distributor and the publisher) or for every new subscriber, and they explain the Next, Back and Cancel buttons.

Settings wizard​

It defines the distributor and the replication type. You run it once, and need it again only if you delete the replication system and want to set it up on another server. Its title is Settings, and its pages are titled Initializing Replication Settings.

Page 1: Welcome​

Three paragraphs: "This wizard will guide you in an easy and step by step way through initializing replication system", "You should do this only once, and you don't need to do this again unless you want to initialize the replication on other server", and a paragraph about the navigation buttons.

Page 2: Folder, replication type and Windows account​

The page header reads: "You should specify sharing folder path, in condition that path is a network and permits reading and writing for both publisher and subscriber".

FieldDescriptionRequiredValues and rules
Folder PathThe sharing folder where the initial replication snapshots are kept.YesAn existing network path that starts with \\, such as \\SRV01\ReplData. If the server already has a defined folder, the program fills it in and disables the field.
Replication TypeThe replication type (Types).YesBranches and Types (initial) or Types.
Account NameThe Windows account that runs the replication jobs.YesContains \, such as ALWAHA\replsvc. A hint under it, written in English, reads "example : Domain\AccountName".
PasswordThe account password.YesShown masked.

On Next the program checks the account name and password in the domain or on the computer itself; if they do not pass, you stay on the page (Messages). The group of the last two fields is titled Windows Account.

Page 3: Server​

The page header reads: "The current server credentials is used in Alameen, please modify them in case of using ( VPN connection) or any other method to connect."

FieldDescriptionRequiredValues and rules
Server NameThe server the program records for the distributor; it checks the connection to it with the SQL credentials.YesYou type the server name in it. The initial value is the server of the open file.
DescriptionThe server's name in the replication lists.YesThe initial value is MainServer.
Windows AuthenticationA disabled option.NoIt cannot be selected.
SQL AuthenticationThe selected option.No
User NameThe SQL Server user.With SQL authenticationThe program fills it from the open file's connection if that uses a SQL password.
PasswordThe user's password.With SQL authenticationThe program fills it the same way.

A moving progress bar shows at the bottom of the page while it runs, and the other buttons are disabled.

What Start does​

  1. If the type is Branches and Types and the branches system is not enabled with at least one branch card, the program stops with a message (Messages).
  2. It checks that the folder path is a network path that exists, that Account Name contains \, and that Password is not empty. A missing field shows the mark "Field is required".
  3. It checks the server name and the description, and the connection to the server with the SQL credentials.
  4. It then works in the background: it checks the Windows account, creates the distributor and the distribution database on the server of the open file, if it has none yet, and sets the sharing folder, then saves in the file the server record (under the name you typed), the replication type, the Windows account and the main source record (0000 named Main Database).
  5. On success "Successfully added" appears and the window closes. If any of these steps fails, the account message appears (Messages).

Publisher wizard​

It creates the published articles, and later adds to them or removes from them. Its title is Create Publisher. It opens only when a distributor exists.

Page 1: Welcome​

Three paragraphs: "This wizard will guide you in an easy and step by step way through the publisher creation", "You should do this only once, and you don't need to do this again unless you want to create a new publisher", and the buttons paragraph. If the replication type is All, Next jumps from here to the schedule page.

Page 2: Specify Articles for Publisher​

The page header reads: "You should select the articles you want to deal with them in synchronization process. Ones you select an article, the articles related to it will be defined directly".

FieldDescriptionRequiredValues and rules
Database NameThe open file and its database as "File (Database)".Read-only.
Articles NameThe list of articles.Main Article, Materials and Groups and Accounts are always selected and disabled. The rest: Entries, Bills, Commercial Papers, POS and Restaurant, Manufacture, Orders, Distribution, Log File, Users Messages, Archiving, Loyalty Cards, Options, Assets, Custom Fields, Shipping. Articles published before start selected. Selecting an article selects its parent (Articles).
Sync Direction of Main ArticleThe direction in which changes move.Bidirectional (initial unless the file saved another), To Subscriber with edit or To subscriber without edit. Enabled while Main Article is not yet published.
Clear syncing tables afterHow long synchronization data is kept.A check box, not selected, with a number and the word day beside it. The number is enabled only after you select the box. If selected, the period (in days) is applied to the articles created in this run.

A moving progress bar shows while it runs.

  • What you selected is the state requested after Start: what you selected and was not published is created, and a published article that you cleared is deleted.
  • No subscriber is created here.

Page 3: Schedule Details​

This is the shared schedule page. The start and end dates and times pass from it to the snapshot schedule, but the program replaces the frequency type and its intervals with a single run for each snapshot. You reach this page from the first page when the replication type is All. With Branches and Types and Types, the operation ends when you click Start on the articles page.

What Start does​

  1. In the background it creates what you selected (or deletes what you cleared), article after article, and sets a snapshot schedule for each article (it runs once). With type All the program creates one publication that covers all tables, whatever articles are selected.
  2. On success "Successfully added" appears and the window closes. On failure the operation stops and the progress bar disappears without a message, and the page stays open.

Subscriber wizard​

It links another file to the publisher for the articles you choose. Its title is Create Subscriber. It opens when an article is published.

Page 1: Welcome​

Three paragraphs: "This wizard will guide you in an easy and step by step way through the subscriber creation", "You should do this only once, and you don't need to do this again unless you want to create a new subscriber", and the buttons paragraph.

Page 2: Select Subscriber Details​

The page header reads: "You should select the server and one of databases exist in it to be related to the subscriber to use it later, or create a new database dedicated to the subscriber".

FieldDescriptionRequiredValues and rules
Server NameThe subscriber's server.YesThe registered servers, by description (Add Database Server). Choosing a server fills the database list.
Initialize Subscriber (should be used when setting up Replication for the first time)Sets how synchronization starts.NoNot selected at first. If you select it, the program moves the initial data to the subscriber automatically. If you leave it, the program assumes the subscriber database already holds the same data.
Select DatabaseThe company database on the subscriber's server.YesOnly Alameen databases on the server.
BranchThe subscriber's branch.In Branches and TypesIt shows only in this type, with branch names. If the database already has a subscription it is disabled, and the program fills in the current branch.
Source codeThe subscriber's source code.YesIf the database is already registered as a source, the field is disabled and the program fills it. It cannot repeat.
Source nameThe source name.NoTreated like Source code for filling and disabling. The program does not stop you leaving it empty, but it checks it is not repeated.

On Next the program checks, in this order: the fields (server, database, branch and code), then the connection to the server, then a repeated code, then a repeated name, then the subscriber database version against the publisher's (Messages). If all pass, it loads the published articles on the next page. With replication type All it goes straight to the schedule page.

Page 3: Specify Articles for Subscriber​

A grid with a line for each published article.

ColumnDescription
Check box (no heading)Three states: selected, cleared, and partly selected when you choose some of the article's types.
Article NameThe article name.
  • A line expands to a list of the article's types (a check box and a name). Selecting the article selects all its types, and clearing it clears them all. Selecting a child article selects its parent. The list does not show for articles that have no types.
  • The types shown are the records of the article (Articles). With Branches and Types they are limited to the types of the subscriber's branch.
  • Clearing an article the subscriber is already subscribed to deletes its subscription at Start.

Page 4: Schedule Details​

This is the shared schedule page. It sets when the job of each article runs at this subscriber. With type All you reach it directly from the details page.

What Start does​

  1. It compares the current number of subscribers with what the licence allows (Messages).
  2. With Types it gives the subscriber a host name automatically if it has none, and registers the source if it is new.
  3. It creates a subscription for each selected article, sets its schedule with the Windows account entered in the Settings wizard, and saves the types you chose.
  4. On success "Successfully added" appears and the window closes. If creating a subscription fails, the operation stops and the wizard stays open without a message, and the articles before it may have been created.

Edit Subscriber wizard​

It edits one subscriber's subscription to one article: its types and the schedule of its job. Its title is Edit Subscriber. Open it by selecting the subscriber under the article and clicking Edit.

Page 1: Article Type​

FieldDescriptionRequiredValues and rules
Article TypeA caption above the list.
The listA check box for each type of the article.Shows what is currently selected for this subscriber. Multiple selection.

If the article has no types (such as Main Article), the wizard starts on the schedule page and hides Back there.

The list menu (right-click)​

ItemWhat it does
Select All (the standard text of the system command)Selects all types. Shortcut Ctrl+A.
Unselect AllClears all types. Shortcut Ctrl+U. Its text is in English in both languages.

Page 2: Schedule Details​

This is the shared schedule page. It starts with its initial values, not with the schedule of the current subscription, and its values replace the subscription's schedule at Start.

On Start: the program updates the schedule of the subscription, saves the selected types (unless the replication type is All), and "Successfully added" appears.

The shared schedule page​

The same page repeats in the three wizards, titled Schedule Details.

The Schedule group​

FieldDescriptionRequiredValues and rules
Schedule type listSets the days on which the job runs.YesDaily (initial), Weekly or Monthly. The fields below change accordingly.
Repeat every with a number and Day onWith Daily: every how many days.YesA whole number, 1 or more. Initially 1.
Repeat every with a number and Weeks onWith Weekly: every how many weeks.YesA whole number, 1 or more. Initially 1.
Days of the weekWith Weekly: the days it runs.Sunday, Monday, Tuesday, Wednesday, Thursday, Friday and Saturday, not selected at first.
Repeat every with a number, then Repeat every with a number and MonthWith Monthly: the first number is the day of the month, the second is every how many months.YesWhole numbers, 1 or more.

The Time group​

The group is titled Time.

FieldDescriptionRequiredValues and rules
One Time with a timeRuns the job once a day at the time.The initial option. The initial time is 00:00:00.
Repeat every with a number and a listRepeats the job during the day.The number is 1 or more, initially 5. The list: Hours (first), Minutes or Seconds.
Start atThe time of the first run in the day when repeating.A time. It shares its value with the first time field.
End atThe time of the last run in the day.A time. Initially 23:59:59.
From DateThe first day the job runs.A date.
End DateThe last day the job runs.A date, enabled by selecting End Date.
No DateNo end date.The initial option.

What does not belong to the selected choice between One Time and Repeat every is disabled.

Messages​

MessageWhen it appearsWhat to do
Do you want to cancel the operation ?You clicked Cancel in any wizard.Click Yes to close the wizard, or No.
Incorrect windows username or passwordIn the Settings wizard: the Windows account check failed on Next, or a step failed after Start (this message appears for any cause).Check the account, password, folder and server.
You should define a branch card to specify the replication type by branches and formsYou chose Branches and Types and the branches system is not enabled, or no branch card exists.Enable branches and define a branch, or choose Types.
Incorrect SQL username or passwordIn the Settings wizard: the connection to the server failed with the values you typed.Correct the name and the SQL credentials.
Field is requiredA field is missing or invalid in Folder Path, Account Name, Password, Server Name or Description. It shows on the field.Correct the field.
Please fill all fieldsOn Next from the subscriber details page: the server, database, branch or source code is missing.Complete the fields.
Server Connection ErrorThe program could not connect to the subscriber's server.Check its data in the server card.
The source code already existsThe source code is registered.Type another code.
The source name already existsThe source name is registered.Type another name.
Subscriber Database version is out of date, you should update to complete the processThe subscriber database version is older than the publisher's.Update the subscriber database, then try again.
The allowed subscribers count has been exceededOn Start: the number of subscribers in the file is higher than the licence allows.Delete a subscriber or ask for a wider licence.
Successfully addedThe wizard finished successfully.Nothing.

This page applies to alameen ERP 10, version 10.1.79.764.