Substantial compliance with the provisions of this chapter, shall be sufficient to prevent the quashing or setting aside of any indictment of a grand jury chosen hereunder, unless irregularity in drawing, summoning or impaneling the grand jury resulted in depriving a defendant of some substantial right, but such irregularity must be specifically presented to the court on or before the cause is first set for trial. A substantial compliance with the provisions of this chapter, shall be sufficient to prevent the setting aside of any verdict rendered by a jury chosen hereunder, unless the irregularity in drawing, and summoning or impaneling the same, resulted in depriving a party litigant of some substantial right; provided, however, that such irregularity must be specifically presented to the court at or before the time the jury is sworn to try the cause.
Okla. Stat. tit. 38, § 29