pentaho/pentaho-kettle · error · KettleXMLException

JobEntrySuccess.Meta.UnableToLoadFromXML

JobEntrySuccess.Meta.UnableToLoadFromXML

Error message

JobEntrySuccess.Meta.UnableToLoadFromXML

What it means

KettleXMLException with localized code JobEntrySuccess.Meta.UnableToLoadFromXML thrown by JobEntrySuccess.loadXML when the inherited JobEntryBase.loadXML call throws any Exception. The Success entry has no attributes of its own, so this almost always indicates malformed/invalid entry XML in the job file.

Solutions

  1. Inspect the wrapped cause for the exact failure from JobEntryBase.loadXML.
  2. Validate/repair the .kjb XML around the success entry node.
  3. Re-save the job in Spoon to regenerate the entry node.
  4. Ensure a non-null entrynode is passed to loadXML.

Example fix

// before
successEntry.loadXML(node, databases, slaveServers, rep, metaStore); // NPEs/wraps if node null
// after
if (node != null && "success".equals(XMLHandler.getNodeValue(XMLHandler.getSubNode(node, "type")))) {
  successEntry.loadXML(node, databases, slaveServers, rep, metaStore);
}
Defensive patterns

Strategy: validation

Validate before calling

if (entrynode == null) {
  throw new KettleXMLException("Null node passed to JobEntrySuccess.loadXML");
}

Type guard

boolean isUsableNode(Node n) {
  return n != null && n.hasChildNodes();
}

Try / catch

try {
  successEntry.loadXML(entrynode, databases, slaveServers, rep, metaStore);
} catch (KettleXMLException e) {
  logError("Success entry XML unreadable: " + e.getCause(), e);
}

Prevention

When it happens

Trigger: Calling loadXML on a 'success' entry node where super.loadXML throws: the node is null, lacks required child tags, or the XML is malformed enough that base parsing fails.

Common situations: Corrupted or hand-edited .kjb file; missing <entry> node passed in by mistake; older/newer serialization format differences in base attributes.

Understand the failure class

Background: JSON parse error: "Unexpected token" / "not valid JSON" / "failed to parse" — what JSON parsers are really complaining about — this error's family across 45 libraries.

Related errors


AI-assisted analysis of pentaho/pentaho-kettle@f3058517a1 (2026-09-13). Data as JSON: /api/errors/0461ee32b3f227dc. Report an issue: GitHub.

Appendix: source

Thrown at engine/src/main/java/org/pentaho/di/job/entries/success/JobEntrySuccess.java:70

  public Object clone() {
    JobEntrySuccess je = (JobEntrySuccess) super.clone();
    return je;
  }

  public String getXML() {
    StringBuilder retval = new StringBuilder();

    retval.append( super.getXML() );

    return retval.toString();
  }

  public void loadXML( Node entrynode, List<DatabaseMeta> databases, List<SlaveServer> slaveServers,
    Repository rep, IMetaStore metaStore ) throws KettleXMLException {
    try {
      super.loadXML( entrynode, databases, slaveServers );
    } catch ( Exception e ) {
      throw new KettleXMLException( BaseMessages.getString( PKG, "JobEntrySuccess.Meta.UnableToLoadFromXML" ), e );
    }
  }

  public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases,
    List<SlaveServer> slaveServers ) throws KettleException {
  }

  // Save the attributes of this job entry
  //
  public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ) throws KettleException {
  }

  /**
   * Execute this job entry and return the result. In this case it means, just set the result boolean in the Result
   * class.
   *
   * @param previousResult
   *          The result of the previous execution

View on GitHub (pinned to f3058517a1)