Restoring form data

Ah, have you reset Elasticsearch? Most of the reports are pulling data from ES so you'll need to delete those indexes and re-create them after the restore:

Warning: this will delete your ES indexes and re-create them from the primary data
To just do forms and cases:

python manage.py ptop_reindexer_v2 sql-case --cleanup
python manage.py ptop_reindexer_v2 sql-form --cleanup

Or if you want to do everything (including users, applications etc):

python manage.py ptop_es_manage --code_red
python manage.py ptop_preindex --reset
1 Like