Error when editing Person profile in Capture app

Thanks! Please don’t worry much about the useNewDashboard error (see here.)

However, I think now that we’ve got rid of the "reading ‘code’ " issue, we’ll need to tackle the "reading ‘trackedEntityAttributeId’ "

There’s an issue with the TEAs, and it’s either sharing settings or some changes in the database with the trackedentityattibute table. If you’ve got all sharing settings properly, would you run a sql query and check if an error is returned or if values are returned:
SELECT * FROM trackedentityattribute;