All dashboards and Search Queries lost after to 3.2.1

the migration might went wrong - so you hit a bug.

But with the provided information no way to debug what had happend.

In addition you double post:

Roll back to your Backup you have done before the upgrade and stay on 3.1 until your issue is fixed. For that provide enough information that it can be identified.