{"record":{"id":"1d08354cd0e25705","repo":"phacility/phabricator","slug":"the-version-s-already-exists-for-this-package","errorCode":null,"errorMessage":"The version \"%s\" already exists for this package. Each version must have a unique name.","messagePattern":"The version \"(.+?)\" already exists for this package\\. Each version must have a unique name\\.","errorType":"validation","errorClass":"PhabricatorApplicationTransactionValidationException","httpStatus":null,"severity":"error","filePath":"src/applications/packages/editor/PhabricatorPackagesVersionEditor.php","lineNumber":37,"sourceCode":"    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      PhabricatorPackagesVersionNameTransaction::TRANSACTIONTYPE,\n      pht('Duplicate'),\n      pht(\n        'The version \"%s\" already exists for this package. Each version '.\n        'must have a unique name.',\n        $object->getName()),\n      null);\n\n    throw new PhabricatorApplicationTransactionValidationException($errors);\n  }\n\n}\n","sourceCodeStart":19,"sourceCodeEnd":41,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/packages/editor/PhabricatorPackagesVersionEditor.php#L19-L41","documentation":"Error \"The version \"%s\" already exists for this package. Each version must have a unique name.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/packages/editor/PhabricatorPackagesVersionEditor.php:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}