{"record":{"id":"60411ad4d00a1efb","repo":"tensorflow/models","slug":"field-name-must-be-a-non-empty-string","errorCode":null,"errorMessage":"{field_name} must be a non-empty string.","messagePattern":"(.+?) must be a non-empty string\\.","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":344,"sourceCode":"    raise ConfigError(f\"{field_name} must be at least 1, got {value!r}.\")\n  return int(value)\n\n\ndef _require_non_empty_string(value: Any, field_name: str) -> str:\n  \"\"\"Validates that a value is a non-empty string.\n\n  Args:\n      value: The value to validate.\n      field_name: Field name used in the error message.\n\n  Returns:\n      The validated string, unchanged.\n\n  Raises:\n      ConfigError: If the value is not a non-empty string.\n  \"\"\"\n  if not isinstance(value, str) or not value.strip():\n    raise ConfigError(f\"{field_name} must be a non-empty string.\")\n  return value\n\n\ndef _require_allowed_folder_name(\n    value: Any, field_name: str\n) -> str:\n  \"\"\"Validates a folder-name field against its single allowed value.\n\n  Each folder-name knob has exactly one allowed value declared in\n  ``_ALLOWED_FOLDER_NAMES``. Any other value is rejected with a message\n  listing the allowed set.\n\n  Args:\n      value: The value to validate.\n      field_name: The top-level YAML field name (also the key into\n        ``_ALLOWED_FOLDER_NAMES``).\n\n  Returns:","sourceCodeStart":326,"sourceCodeEnd":362,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L326-L362","documentation":"Error \"{field_name} must be a non-empty string.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:344 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":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}