Can not Understand the Sequence Behavior in a Distributed Infobase

The 1C:Enterprise developers forum

People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

In short: there is an office and a shop. There is a documents Sequence with a Warehouse dimension. In the Exchange Plan the automatic registration for this Sequence is set.
The problem: if the sequence is messed in the shop infobase, the sequence boundary is not transferred to the office infobase.
How to force the sequence to transfer the boundary to the office infobase?

People who like this:0Yes/0No
Timofey Bugaevsky


The answer to this complicated question is very simple: the document sequences should not to participate in the Data Exchange. So you should disable the automatic changes registration for the Sequence.
The document which is an Incoming Document for this sequence should be registered in the sequence only in one node of the distributed infobase. For this the document should have a single node ID where it will be registered in the sequence.
If during loading this document it is found that the document’s node ID does not match ID of the node where it is loaded into, the document registration should be canceled. You can do this by calling Clear() method for each item of the BelongingToSequences collection of the document. The clearing should be performed in the document’s BeforeWrite event handler.
Note that at the metadata level the document should be in the sequence, you should not disable it in any node. The sequence in DIB is split into separate independent.

Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.