{"record":{"id":"523bad8bc73e0751","repo":"phacility/phabricator","slug":"configuration-key-s-is-not-set-in-s-configurat","errorCode":null,"errorMessage":"Configuration key '%s' is not set in %s configuration!","messagePattern":"Configuration key '(.+?)' is not set in (.+?) configuration!","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php","lineNumber":53,"sourceCode":"    $key = $argv[0];\n\n    if (count($argv) > 1) {\n      throw new PhutilArgumentUsageException(\n        pht('Too many arguments: expected one key.'));\n    }\n\n\n    $use_database = $args->getArg('database');\n    if ($use_database) {\n      $config = new PhabricatorConfigDatabaseSource('default');\n      $config_type = 'database';\n    } else {\n      $config = new PhabricatorConfigLocalSource();\n      $config_type = 'local';\n    }\n    $values = $config->getKeys(array($key));\n    if (!$values) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          \"Configuration key '%s' is not set in %s configuration!\",\n          $key,\n          $config_type));\n    }\n\n    if ($use_database) {\n      $config_entry = PhabricatorConfigEntry::loadConfigEntry($key);\n      $config_entry->setIsDeleted(1);\n      $config_entry->save();\n    } else {\n      $config->deleteKeys(array($key));\n    }\n\n    $console->writeOut(\n      \"%s\\n\",\n      pht(\"Deleted '%s' from %s configuration.\", $key, $config_type));\n  }","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php#L35-L71","documentation":"Lookup guard in bin/config delete execute(): the requested key is not set in the selected configuration source (local config file, or database when --database is used), so there is nothing to delete and the source name is included in the message.","triggerScenarios":"Thrown at src/applications/config/management/PhabricatorConfigManagementDeleteWorkflow.php:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check where the value is actually stored: try without --database if it is in local config, or with it if in the database","Run bin/config get <key> to see the current source of the value"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}