issue #20026: Fix scenario where an auto number can be superceded by the system.
Merge pull request #390 from jrogelstad/20026

issue #20026: Fix scenario where an auto number can be superceded by the...