phacility/phabricator · error · PhabricatorApplicationTransactionValidationException

The version "%s" already exists for this package. Each versi

Error message

The version "%s" already exists for this package. Each version must have a unique name.

What it means

Error "The version "%s" already exists for this package. Each version must have a unique name." thrown in phacility/phabricator.

Source

Thrown at src/applications/packages/editor/PhabricatorPackagesVersionEditor.php:37

    return array();
  }

  protected function didCatchDuplicateKeyException(
    PhabricatorLiskDAO $object,
    array $xactions,
    Exception $ex) {

    $errors = array();
    $errors[] = new PhabricatorApplicationTransactionValidationError(
      PhabricatorPackagesVersionNameTransaction::TRANSACTIONTYPE,
      pht('Duplicate'),
      pht(
        'The version "%s" already exists for this package. Each version '.
        'must have a unique name.',
        $object->getName()),
      null);

    throw new PhabricatorApplicationTransactionValidationException($errors);
  }

}

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/packages/editor/PhabricatorPackagesVersionEditor.php:37 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/1d08354cd0e25705. Report an issue: GitHub.