{"record":{"id":"80b62f22544e25db","repo":"phacility/phabricator","slug":"more-than-one-source-matches-s-choose-a-narrow","errorCode":null,"errorMessage":"More than one source matches \"%s\". Choose a narrower query, or use an ID or PHID to select a source. Matching sources: %s.","messagePattern":"More than one source matches \"(.+?)\"\\. Choose a narrower query, or use an ID or PHID to select a source\\. Matching sources: (.+?)\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/nuance/management/NuanceManagementWorkflow.php","lineNumber":61,"sourceCode":"            'No source exists with PHID \"%s\".',\n            $source);\n          break;\n        default:\n          $message = pht(\n            'No source exists with a name matching \"%s\".',\n            $source);\n          break;\n      }\n\n      throw new PhutilArgumentUsageException($message);\n    } else if (count($sources) > 1) {\n      $message = pht(\n        'More than one source matches \"%s\". Choose a narrower query, or '.\n        'use an ID or PHID to select a source. Matching sources: %s.',\n        $source,\n        implode(', ', mpull($sources, 'getName')));\n\n      throw new PhutilArgumentUsageException($message);\n    }\n\n    return head($sources);\n  }\n\n  protected function loadITem(PhutilArgumentParser $argv, $key) {\n    $item = $argv->getArg($key);\n    if (!strlen($item)) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify a item with %s.',\n          '--'.$key));\n    }\n\n    $query = id(new NuanceItemQuery())\n      ->setViewer($this->getViewer())\n      ->setRaisePolicyExceptions(true);\n","sourceCodeStart":43,"sourceCodeEnd":79,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/nuance/management/NuanceManagementWorkflow.php#L43-L79","documentation":"Error \"More than one source matches \"%s\". Choose a narrower query, or use an ID or PHID to select a source. Matching sources: %s.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/nuance/management/NuanceManagementWorkflow.php:61 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"}