This article describes the standards that apply to the order of writing register records. All of the listed recommendations are mandatory unless noted otherwise.1. We recommend that you do not use explicit writing of register record sets (with the Write method) in document posting handlers. The writing should be performed implicitly by the platform during the completion of the posting handler execution.
If you ignore this recommendation, a parallel document posting by multiple users might cause deadlocks.
2. Scenarios, where data stored in registers is required by algorithms executed before the completion of posing handler execution, are an exception to this rule.
Next page: Catching exceptions in 1C:Enterprise script