ok so I figured out somewhat, what was happening. We tried to upgrade right to 2.021.24b. In doing so a migration was run that added the synced_with_backend field to the assetfile model. We then discovered the exporting zipped media from a form would always fail. So we rolled back the version to 2.021.24 but this left the migration for 2.021.24B in place. This of course caused sync_kobocat_media_files to fail as the synced_with_backend field wasnt populated.
I upgraded BACK to 24B, ran the sync_kobocat_media_files and sync_kobocat_xforms. This appeared to work until I realized that the media zip export still did not work. at this point I rolled back to 2.021.24 but then could not upload media files to any forms since there was an extra column in kpi_assetfile. Well, I dropped that extra column since it or any associated code wasnt added until 24b and that was the only migration. At first it seemed to work and i was able to upload media files and export zipped media on 2.021.24 UNTIL I tried to deploy any forms or create and deploy a new form. Then I got the below issue. Any ideas how this may have happened or how to recover from it so I can continue testing/troubleshooting?
I cant for the life of me figure out how to get the form links back. The forms are still there, and can be accessed with existing links I have, but I cannot access directly from KPI…
Again thanks in advance!

