BC Friday Tips #13 Be careful with the hidden ๐๐ผ๐บ๐บ๐ถ๐!
Time for BCFridayTips for the BC consultants.
Be careful with the hidden ๐๐ผ๐บ๐บ๐ถ๐!
When a ๐๐ผ๐บ๐บ๐ถ๐ statement is executed, it ends the current write transaction and registers the changes in the database. If an error occurs after the Commit, those changes wonโt be rolled back, potentially leading to a partial commit issue.
Here’s an example:
Consider the table 99000786 โ๐ฅ๐ผ๐๐๐ถ๐ป๐ด ๐ฉ๐ฒ๐ฟ๐๐ถ๐ผ๐ปโ and its โ๐ฆ๐๐ฎ๐๐๐โ field validation.

In this code, a ๐๐ผ๐บ๐บ๐ถ๐ is triggered when the ๐ฆ๐๐ฎ๐๐๐ field is validated.
We need to be aware of this.
Why?
โ
๐๐๐ผ๐ถ๐ฑ ๐ฝ๐ฎ๐ฟ๐๐ถ๐ฎ๐น ๐ฐ๐ผ๐บ๐บ๐ถ๐. If an error occurs after a Commit, it is impossible to roll back everything completely.
Even though the commit statement isnโt used frequently, itโs important to check for it when working with any objects in BC so you can handle it accordingly.