On the same day that an affidavit for change of judge or magistrate is filed, the party by whom or on whose behalf it is so filed, or his attorney, shall serve a copy of such affidavit, either personally or by mailing, upon all adverse parties, or their attorneys of record. The failure to make such service shall not in any manner destroy the effect of such affidavit so filed, but the party on whose behalf it is filed shall reimburse the other parties to the action and their witnesses for expense incurred by reason of such failure, the amount thereof and the terms under which the same shall be paid to be fixed and imposed by the court upon hearing.
SDCL 15-12-31