If trial is not had on any indictment, information or complaint contemplated hereby prior to the prisoner's being returned to the original place of imprisonment pursuant to § 23-24A-27, such indictment, information or complaint shall not be of any further force or effect, and the court shall enter an order dismissing the same with prejudice.
SDCL 23-24A-26