{"record":{"id":"e2b5736b5bb1b880","repo":"phacility/phabricator","slug":"no-story-exists-with-key-s","errorCode":null,"errorMessage":"No story exists with key \"%s\"!","messagePattern":"No story exists with key \"(.+?)\"!","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/feed/management/PhabricatorFeedManagementRepublishWorkflow.php","lineNumber":42,"sourceCode":"    $viewer = $this->getViewer();\n\n    $key = $args->getArg('key');\n    if (count($key) < 1) {\n      throw new PhutilArgumentUsageException(\n        pht('Specify a story key to republish.'));\n    } else if (count($key) > 1) {\n      throw new PhutilArgumentUsageException(\n        pht('Specify exactly one story key to republish.'));\n    }\n    $key = head($key);\n\n    $story = id(new PhabricatorFeedQuery())\n      ->setViewer($viewer)\n      ->withChronologicalKeys(array($key))\n      ->executeOne();\n\n    if (!$story) {\n      throw new PhutilArgumentUsageException(\n        pht('No story exists with key \"%s\"!', $key));\n    }\n\n    $console->writeOut(\"%s\\n\", pht('Republishing story...'));\n\n    PhabricatorWorker::setRunAllTasksInProcess(true);\n\n    PhabricatorWorker::scheduleTask(\n      'FeedPublisherWorker',\n      array(\n        'key' => $key,\n      ));\n\n    $console->writeOut(\"%s\\n\", pht('Done.'));\n\n    return 0;\n  }\n","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/feed/management/PhabricatorFeedManagementRepublishWorkflow.php#L24-L60","documentation":"Lookup guard in the feed republish workflow: PhabricatorFeedQuery found no story with the given chronological key (or it is not visible to the executing viewer). The key syntax was accepted but does not correspond to any feed event.","triggerScenarios":"Thrown at src/applications/feed/management/PhabricatorFeedManagementRepublishWorkflow.php:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Double-check the story key copied from the feed URI","Verify the story has not been deleted","Run the command as a privileged user if visibility could be the issue"],"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"}