It looks like the JIRA ticket Calle referenced has a simpler/less risky fix than what I’d done, so I’d follow those instructions:
https://jira.dhis2.org/browse/DHIS2-7301
If you don’t have a Jira account, I’ll copy the instructions here:
Temporary workaround to fix programs that has been broken by a blank data entry form:
- Open the program in maintenance.
- Go to “3. Create data entry form”
- Select the “Custom” tab
- Click the delete button at the bottom of the screen (this deletes the blank custom form from the server directly)
- Do not click the “Save” button at the bottom of the screen - as long as the current bug exists, this would reintroduce a blank custom form. Close the maintenance app without any further actions.
- Clean cache and open the Capture app - everything should work normally again.
I hope this fixes your problem!