Minn. Stat. § 554.13
(a) In ruling on a motion under section 554.09, the court shall dismiss with prejudice a cause of action, or part of a cause of action, if:
(3) either:
(ii) the moving party establishes that:
(A) the responding party failed to state a cause of action upon which relief can be granted; or
(B) there is no genuine issue as to any material fact and the moving party is entitled to judgment as a matter of law on the cause of action or part of the cause of action.