Neither a departure from the form or mode prescribed in respect to any pleadings or proceedings, nor an error or mistake therein, shall render the pleading or proceeding invalid, unless it actually has prejudiced, or tended to prejudice, the defendant in respect to a substantial right.
A.R.S. § 13-3987