{"record":{"id":"7ff147ea835b6a46","repo":"phacility/phabricator","slug":"the-objects-you-have-listed-include-objects-which","errorCode":null,"errorMessage":"The objects you have listed include objects which do not exist (%s).","messagePattern":"The objects you have listed include objects which do not exist \\((.+?)\\)\\.","errorType":"validation","errorClass":"DifferentialFieldParseException","httpStatus":null,"severity":"error","filePath":"src/applications/phid/query/PhabricatorObjectListQuery.php","lineNumber":191,"sourceCode":"    // extra API to loosen this. It's not clear that this will be useful\n    // elsewhere any time soon, so let's cross that bridge when we come to it.\n\n    if (!$this->getAllowPartialResults()) {\n      if ($invalid && $missing) {\n        throw new DifferentialFieldParseException(\n          pht(\n            'The objects you have listed include objects of the wrong '.\n            'type (%s) and objects which do not exist (%s).',\n            implode(', ', $invalid),\n            implode(', ', $missing)));\n      } else if ($invalid) {\n        throw new DifferentialFieldParseException(\n          pht(\n            'The objects you have listed include objects of the wrong '.\n            'type (%s).',\n            implode(', ', $invalid)));\n      } else if ($missing) {\n        throw new DifferentialFieldParseException(\n          pht(\n            'The objects you have listed include objects which do not '.\n            'exist (%s).',\n            implode(', ', $missing)));\n      }\n    }\n\n    if ($suffixes) {\n      foreach ($result as $key => $phid) {\n        $result[$key] = array(\n          'phid' => $phid,\n          'suffixes' => idx($suffix_map, $key, array()),\n        );\n      }\n    }\n\n    return array_values($result);\n  }","sourceCodeStart":173,"sourceCodeEnd":209,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/phid/query/PhabricatorObjectListQuery.php#L173-L209","documentation":"Variant of the PhabricatorObjectListQuery failure where all references are the right type but at least one resolved to nothing ($missing non-empty, $invalid empty) - a nonexistent object, a deleted object, or one invisible to the acting user. With partial results disallowed, the query throws DifferentialFieldParseException listing the unresolvable references.","triggerScenarios":"Reviewers field with a typo'd or deleted username; referencing a project monogram that was renamed/disabled; subscribers list containing users invisible to the editor due to policy; API clients sending PHIDs for objects deleted since export.","commonSituations":"Deleted or renamed accounts left in templates; policy-protected objects the viewer cannot see; stale data replayed by migration tooling.","solutions":["Correct or remove the nonexistent references named in the message","Verify each reference exists and is visible to the current editor before re-submitting","For tolerant programmatic imports, build the query with setAllowPartialResults(true) and log what dropped out"],"exampleFix":"// before\nSubscribers: alice, gone-user\n// after\nSubscribers: alice  // remove users that no longer exist","handlingStrategy":"validation","validationCode":"// Confirm every reference resolves before submitting the field\nforeach (explode(',', $raw_value) as $ref) {\n  $ref = trim($ref);\n  $object = id(new PhabricatorObjectQuery())\n    ->setViewer($viewer)\n    ->withNames(array($ref))\n    ->executeOne();\n  if (!$object) {\n    // nonexistent or policy-hidden: drop it and warn the user\n  }\n}","typeGuard":null,"tryCatchPattern":"try {\n  $phids = id(new PhabricatorObjectListQuery())\n    ->setObjectList($list)\n    ->setAllowedTypes($allowed)\n    ->execute();\n} catch (DifferentialFieldParseException $ex) {\n  // missing refs are listed in the message; show them per-field\n}","preventionTips":["Resolve each username/monogram before adding it to a field","Remember policy visibility: refs invisible to the editor count as missing","For tolerant imports use setAllowPartialResults(true) and log dropped refs"],"tags":["phabricator","differential","field-validation","object-list","missing-reference"],"backgroundTag":"reference-validation-failed","analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}