---
title: "Getting configuration error while enabling a module"
date: "2023-09-27T16:59:58+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/94011-getting-configuration-error-while-enabling-module"
id: "4e958205-b253-460e-a5a5-72efb1ca0e32"
---

### Issue:

Getting the following configuration error when you are enabling a module:

    /var/www/html/xxx.prod/docroot$ drush pm-enable acquia_connector --uri=sitename
    In PreExistingConfigException.php line 65:
      Configuration objects (acquia_connector.settings) provided by acquia_connector already exist in active configuration

### Resolution:

Check your config via \`drush cget\` to see if the config exist.

    /var/www/html/xxx.prod/docroot$ drush --uri=sitename cget
     Choose a configuration:
      [0  ] Cancel
      [1  ] access_unpublished.settings
      [2  ] acquia_connector.settings
      .
      .
     > 2

if exist you can run the following command to delete it:

    drush config-delete module_name.settings

If for any reasons you got the following error:

    [error]  Config acquia_connector.settings does not exist

This means the config table exist in your config but for some reason it is an empty array. To resolve this issue you need to manually go to your Database and remove it. Always make sure that you have a backup of your Database.