No proceedings brought under this chapter shall fail because of a defect, imperfection or omission in the annexation ordinance or the pleadings which does not affect the substantial rights of the parties or any other technical or procedural defect, imperfection or error, but the special court shall at any time allow amendment of the ordinance or the pleadings or make any other order necessary to ensure the hearing of the case on its merits.
Va. Code § 15.2-3216