{"record":{"id":"bcbda81dea902dfc","repo":"apache/hadoop","slug":"taskattemptid-string-str-is-not-properly-form","errorCode":null,"errorMessage":"TaskAttemptId string : ${str} is not properly formed","messagePattern":"TaskAttemptId string : (.+?) is not properly formed","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskAttemptID.java","lineNumber":201,"sourceCode":"          if(t != null) {\n            return new org.apache.hadoop.mapred.TaskAttemptID\n            (parts[1],\n             Integer.parseInt(parts[2]),\n             t, Integer.parseInt(parts[4]), \n             Integer.parseInt(parts[5]));  \n          } else\n            exceptionMsg = \"Bad TaskType identifier. TaskAttemptId string : \"\n                + str + \" is not properly formed.\";\n        }\n      }\n    } catch (Exception ex) {\n      //fall below\n    }\n    if (exceptionMsg == null) {\n      exceptionMsg = \"TaskAttemptId string : \" + str\n          + \" is not properly formed\";\n    }\n    throw new IllegalArgumentException(exceptionMsg);\n  }\n\n}\n","sourceCodeStart":183,"sourceCodeEnd":205,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskAttemptID.java#L183-L205","documentation":"Error \"TaskAttemptId string : ${str} is not properly formed\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/TaskAttemptID.java:201 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a properly formed attempt ID string (e.g. attempt_<jtIdentifier>_<jobId>_<m|r>_<taskId>_<attempt>) to forName()."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-23T01:17:44.959Z"}