Question: How to setup the distributed infobases in 1C:Drive, when the subordinate databases will not be created from the main infobase, but already existing infobases will be made subordinate to the main infobase?
Answer: How to setup a distributed infobases functionality from scratch and how the data exchange is conducted with messages was described here:
We begin the process as described in the article above, until we have finished the “Configure data sending and receiving rules” step. Afterwards, without proceeding with the “Create initial image of DIB subordinate node” step, just close the “Data synchronization with Distributed infobase” dialog.
Continue with these steps:
-Make sure that the configurations and extensions of the main infobase and the subordinate infobase(s) are identical indeed.
-In the subordinate infobase, Settings -> Application settings -> Data sync, activate “Data sync” and designate “This infobase prefix”, if not already done so.
-In both the main infobase and the subordinate infobase, open the “Nodes of distributed Infobase” window. (All functions -> Exchange plans -> Distributed infobase). Note that in the “Nodes of distributed infobases” list of each of the Infobases, one node icon is marked with a green dot, this is the predefined node of the infobase and it represents the infobase itself. In the main infobase list, you will see the node representing the subordinate infobase too (which was created automatically during the automated setup process in the main infobase). Open this node by double clicking on it. On the other hand, in the subordinate infobase, open the predefined (with green dot) node of the subordinate infobase too, by double clicking on it. Now fill in the Code and Description of the predefined node of the subordinate infobase so that they match the values of it’s node which resides in the main infobase, then save and close.
-Now create a node in the subordinate infobase. This node will represent the main infobase so fill in the Code and Description of the new node of the subordinate infobase so that they match the values of the predefined (green dot) node of the main infobase. Save and close.
-In the subordinate infobase open the main infobase node -> More actions -> Data synchronization parameters -> Connection settings.
-In the subordinate infobase, fill in the “Data exchange transport settings” identical to how you had filled in those in the main infobase.
-In the subordinate infobase run the SetMasterNodeForDistributedInfobases.epf data processor which is attached to this article. Set the “Node to be set master” field of the data processor as the node representing main infobase. Click the `”Set as master” button.
-You will get a message telling that the chosen node is set as the master node. Moreover, the icon color of the node representing the main infobase will turn gold, implying that it is the main node.
-That’s it, now you can continue with running the data exchange between the Infobases.