If, before a conviction, a prosecutor determines that a defendant was issued a citation, charged, indicted, or otherwise prosecuted as the result of mistaken identity, the prosecutor must dismiss or move to dismiss the action or proceeding and must state in writing or on the record that mistaken identity is the reason for the dismissal.
Minn. Stat. § 609A.017