If trial is not had on any indictment, information, or complaint contemplated by § 23-24A-3 or 23-24A-10 prior to the return of the prisoner to the original place of imprisonment, 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-11