{"record":{"id":"cad9b5ccc34c7087","repo":"phacility/phabricator","slug":"the-publisher-key-s-is-already-in-use-by-anothe","errorCode":null,"errorMessage":"The publisher key \"%s\" is already in use by another publisher.","messagePattern":"The publisher key \"(.+?)\" is already in use by another publisher\\.","errorType":"validation","errorClass":"PhabricatorApplicationTransactionValidationException","httpStatus":null,"severity":"error","filePath":"src/applications/packages/editor/PhabricatorPackagesPublisherEditor.php","lineNumber":42,"sourceCode":"  protected function getMailTo(PhabricatorLiskDAO $object) {\n    return array();\n  }\n\n  protected function didCatchDuplicateKeyException(\n    PhabricatorLiskDAO $object,\n    array $xactions,\n    Exception $ex) {\n\n    $errors = array();\n    $errors[] = new PhabricatorApplicationTransactionValidationError(\n      PhabricatorPackagesPublisherKeyTransaction::TRANSACTIONTYPE,\n      pht('Duplicate'),\n      pht(\n        'The publisher key \"%s\" is already in use by another publisher.',\n        $object->getPublisherKey()),\n      null);\n\n    throw new PhabricatorApplicationTransactionValidationException($errors);\n  }\n\n}\n","sourceCodeStart":24,"sourceCodeEnd":46,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/packages/editor/PhabricatorPackagesPublisherEditor.php#L24-L46","documentation":"Uniqueness validation in the Packages publisher editor: a duplicate-key violation on the publisher key unique index was caught and re-raised as a form validation error — the publisher key is already taken.","triggerScenarios":"Thrown at src/applications/packages/editor/PhabricatorPackagesPublisherEditor.php:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pick a different publisher key","Rename or remove the existing publisher that holds the key"],"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"}