{"record":{"id":"1c8e412eca347097","repo":"tensorflow/models","slug":"field-s-does-not-exist-1c8e41","errorCode":null,"errorMessage":"field %s does not exist","messagePattern":"field (.+?) does not exist","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/vision/utils/object_detection/box_list.py","lineNumber":138,"sourceCode":"\n  def get_field(self, field):\n    \"\"\"Accesses a box collection and associated fields.\n\n    This function returns specified field with object; if no field is specified,\n    it returns the box coordinates.\n\n    Args:\n      field: this optional string parameter can be used to specify a related\n        field to be accessed.\n\n    Returns:\n      a tensor representing the box collection or an associated field.\n\n    Raises:\n      ValueError: if invalid field\n    \"\"\"\n    if not self.has_field(field):\n      raise ValueError('field ' + str(field) + ' does not exist')\n    return self.data[field]\n\n  def set_field(self, field, value):\n    \"\"\"Sets the value of a field.\n\n    Updates the field of a box_list with a given value.\n\n    Args:\n      field: (string) name of the field to set value.\n      value: the value to assign to the field.\n\n    Raises:\n      ValueError: if the box_list does not have specified field.\n    \"\"\"\n    if not self.has_field(field):\n      raise ValueError('field %s does not exist' % field)\n    self.data[field] = value\n","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/vision/utils/object_detection/box_list.py#L120-L156","documentation":"Error \"field %s does not exist\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/vision/utils/object_detection/box_list.py:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the field with add_field before reading it, or check the field name for typos.","Use has_field to guard access to optional fields."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}