[SP-487] Backport for PDI-2753

Original issue: PDI-2753 validation failing in "Get sequence value from database" step