{"record":{"id":"7f260c8a30e479d2","repo":"tensorflow/models","slug":"did-not-pass-all-values-of-array-s","errorCode":null,"errorMessage":"Did not pass all values of array: %s","messagePattern":"Did not pass all values of array: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/modeling/hyperparams/params_dict.py","lineNumber":453,"sourceCode":"    if len(name_nested) > 1:\n      grouping = name_nested[0]\n      if bracketed_index:\n        value = '.'.join(name_nested[1:]) + bracketed_index + '=' + v\n      else:\n        value = '.'.join(name_nested[1:]) + '=' + v\n      nested_map[grouping].append(value)\n    else:\n      formatted_entries.append('%s : %s' % (name, v))\n\n  for grouping, value in nested_map.items():\n    value = ','.join(value)\n    value = nested_csv_str_to_json_str(value)\n    formatted_entries.append('%s : %s' % (grouping, value))\n\n  # Add array parameters and check that the array is fully initialized.\n  for name in array_param_map:\n    if any(v is None for v in array_param_map[name]):\n      raise ValueError('Did not pass all values of array: %s' % name)\n    formatted_entries.append('%s : %s' % (name, array_param_map[name]))\n\n  return '{' + ', '.join(formatted_entries) + '}'\n\n\ndef override_params_dict(params, dict_or_string_or_yaml_file, is_strict):\n  \"\"\"Override a given ParamsDict using a dict, JSON/YAML/CSV string or YAML file.\n\n  The logic of the function is outlined below:\n  1. Test that the input is a dict. If not, proceed to 2.\n  2. Tests that the input is a string. If not, raise unknown ValueError\n  2.1. Test if the string is in a CSV format. If so, parse.\n  If not, proceed to 2.2.\n  2.2. Try loading the string as a YAML/JSON. If successful, parse to\n  dict and use it to override. If not, proceed to 2.3.\n  2.3. Try using the string as a file path and load the YAML file.\n\n  Args:","sourceCodeStart":435,"sourceCodeEnd":471,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/modeling/hyperparams/params_dict.py#L435-L471","documentation":"Error \"Did not pass all values of array: %s\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/modeling/hyperparams/params_dict.py:453 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"}