{"record":{"id":"267f61c4a8f2990d","repo":"phacility/phabricator","slug":"activity-s-is-not-currently-marked-as-required","errorCode":null,"errorMessage":"Activity \"%s\" is not currently marked as required, so there is no need to complete it.","messagePattern":"Activity \"(.+?)\" is not currently marked as required, so there is no need to complete it\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php","lineNumber":48,"sourceCode":"    $activities = $args->getArg('activities');\n    if (!$activities) {\n      throw new PhutilArgumentUsageException(\n        pht('Specify an activity to mark as completed.'));\n    }\n\n    foreach ($activities as $type) {\n      $activity = id(new PhabricatorConfigManualActivity())->loadOneWhere(\n        'activityType = %s',\n        $type);\n      if (!$activity) {\n        if ($is_force) {\n          echo tsprintf(\n            \"%s\\n\",\n            pht(\n              'Activity \"%s\" did not need to be marked as complete.',\n              $type));\n        } else {\n          throw new PhutilArgumentUsageException(\n            pht(\n              'Activity \"%s\" is not currently marked as required, so there '.\n              'is no need to complete it.',\n              $type));\n        }\n      } else {\n        $activity->delete();\n        echo tsprintf(\n          \"%s\\n\",\n          pht(\n            'Marked activity \"%s\" as completed.',\n            $type));\n      }\n    }\n\n    echo tsprintf(\n      \"%s\\n\",\n      pht('Done.'));","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php#L30-L66","documentation":"Error \"Activity \"%s\" is not currently marked as required, so there is no need to complete it.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php:48 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"}