Some cards showing "You do not have permissions to run this query."

I have set my collection permission to "Curate" for this specific user group. All cards in the dashboard are present inside this collection. All the cards are running error-free on the dashboard.

When you click on each individual card, 3 of the cards in the whole dashboard are showing "You do not have permissions to run this query". Cards similar to them (using the same tables, just accessing different columns) are working completely fine when you open them. The issue is just with these 3 cards. How is it possible that other cards having the same sort of queries are working fine and these 3 aren't?

Diagnostic info:
{
"browser-info": {
"language": "en-PK",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "1.8.0_312-heroku-b05",
"java.vendor": "Oracle Corporation",
"java.vendor.url": "http://java.oracle.com/",
"java.version": "1.8.0_312-heroku",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "25.312-b05",
"os.name": "Linux",
"os.version": "4.4.0-1104-aws",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"postgres",
"h2"
],
"hosting-env": "heroku",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "12.11 (Ubuntu 12.11-1.pgdg20.04+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.23"
}
},
"run-mode": "prod",
"version": {
"tag": "v0.41.4",
"date": "2021-12-10",
"branch": "release-x.41.4",
"hash": "471cfb9"
},
"settings": {
"report-timezone": null
}
}
}

Hi @sanabasharat
There has been a lot of permission fixes since 0.41.4 - you should consider upgrading: https://github.com/metabase/metabase/releases/latest
The error indicates that it's a Data permission issue, not Collection permission issue.
Post the full stacktrace error from Admin > Troubleshooting > Logs.

Admin > Troubleshooting > Logs is not loading, even after waiting for more than 10 minutes.

As for Data permissions, I have tried with a user who has full access to all tables and collections. Even for that user, this error is occurring.

@sanabasharat Check the logs via the Heroku console logs.