Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Can not Understand the Sequence Behavior in a Distributed Infobase

Forum

Search UsersRules
Can not Understand the Sequence Behavior in a Distributed Infobase
#1
Active user
Points:: 3
Joined:: Sep 16, 2011

Hello!
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?

Profile
#2
Guest
Points::
Joined::

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.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.