{"record":{"id":"fd5fec74901a0ad9","repo":"apache/hadoop","slug":"property-propertyname-not-found","errorCode":null,"errorMessage":"Property ${propertyName} not found","messagePattern":"Property (.+?) not found","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java","lineNumber":3657,"sourceCode":"    Document doc;\n    try {\n      doc = DocumentBuilderFactory\n          .newInstance()\n          .newDocumentBuilder()\n          .newDocument();\n    } catch (ParserConfigurationException pe) {\n      throw new IOException(pe);\n    }\n\n    Element conf = doc.createElement(\"configuration\");\n    doc.appendChild(conf);\n    conf.appendChild(doc.createTextNode(\"\\n\"));\n    handleDeprecation(); //ensure properties is set and deprecation is handled\n\n    if(!Strings.isNullOrEmpty(propertyName)) {\n      if (!properties.containsKey(propertyName)) {\n        // given property not found, illegal argument\n        throw new IllegalArgumentException(\"Property \" +\n            propertyName + \" not found\");\n      } else {\n        // given property is found, write single property\n        appendXMLProperty(doc, conf, propertyName, redactor);\n        conf.appendChild(doc.createTextNode(\"\\n\"));\n      }\n    } else {\n      // append all elements\n      for (Enumeration<Object> e = properties.keys(); e.hasMoreElements();) {\n        appendXMLProperty(doc, conf, (String)e.nextElement(), redactor);\n        conf.appendChild(doc.createTextNode(\"\\n\"));\n      }\n    }\n    return doc;\n  }\n\n  /**\n   *  Append a property with its attributes to a given {#link Document}","sourceCodeStart":3639,"sourceCodeEnd":3675,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java#L3639-L3675","documentation":"Error \"Property ${propertyName} not found\" thrown in apache/hadoop.","triggerScenarios":"Raised at runtime when the documented precondition or configuration requirement for this operation is violated.","commonSituations":"Misconfigured or missing property, invalid user input, or calling the API before its prerequisites are met.","solutions":["Set the named property in the configuration before reading it."],"exampleFix":"conf.set(\"property.name\", value) or add it to the *-site.xml.","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"}