ERROR: permission denied for relation campaign_lea...
# ask-ai
s
ERROR: permission denied for relation campaign_leads @kapa.ai
k
The error message
ERROR: permission denied for relation campaign_leads
indicates that the database user configured for your Airbyte connection does not have the necessary permissions to access the
campaign_leads
table (or view) in your database. While the knowledge sources provided do not mention this specific table, they do show that similar permission errors occur when the database user lacks the required privileges to access certain tables, views, or schemas. For example, a similar error is shown for Redshift when the user does not have permission for the
pg_tables
relation, and the solution would be to grant the necessary permissions to the user in question. The same principle applies here: you need to ensure that the user Airbyte is using has at least
SELECT
permission on the
campaign_leads
relation in your database. If you do not have the ability to grant these permissions, you will need to contact your database administrator to do so for you. If you are using a managed database or have limited access, you may need to request the appropriate permissions from your database administrator, as was the case in the Redshift example, where a limited account could not access certain relations and this blocked Airbyte from working properly [source-redshift error example](https://github.com/airbytehq/airbyte/issues/48533). If you need more specific instructions for your database type, please provide that information. If you are using Airbyte with an external database, make sure the user has the necessary privileges to read from all required tables and schemas. I'm sorry, but the knowledge sources do not contain more detailed, database-specific steps for resolving this error.