I get error "Cannot read properties of undefined (reading 'id')"when saving changes to my dashboard in metabase

I'm encountering an error when attempting to save changes to my dashboard:
"Cannot read properties of undefined (reading 'id')".

Additionally, I'm unable to duplicate any dashboards. When I try, I receive a generic error message:
"An error occurred."

Could you please assist in resolving these issues?

Please share more details about your setup and steps to reproduce this issue: Want to get help faster?

IIRC I've gotten these errors when the database user didn't have access to some of the database objects. Check the logs for any query errors when these errors appear.