new Integer(j), err.getStatusCode(), err.getMessage()));
}
if (sendToErrorRow) {</BUG>
if(log.isDebug()) logDebug("Passing row to error step");
putError(getInputRowMeta(), data.outputBuffer[j], 1, errorMessage, null, "SalesforceUpdate001");
<BUG>}</BUG>
}
}
data.sfBuffer = new SObject[meta.getBatchSizeInt()];
data.outputBuffer = new Object[meta.getBatchSizeInt()][];
data.iBufferPos = 0;
<BUG>} catch (Exception e) {
throw new KettleException("\nFailed to update object, error message was: \n"+ e.getMessage());
} finally{</BUG>
if(data.saveResult!=null) data.saveResult=null;

new Integer(j), err.getStatusCode(), err.getMessage()));
}
String errorMessage = "";
for (int i = 0; i < data.saveResult[j].getErrors().length; i++) {
com.sforce.soap.partner.Error err = data.saveResult[j].getErrors()[i];
errorMessage+= BaseMessages.getString(PKG, "SalesforceUpdate.Error.FlushBuffer",
new Integer(j), err.getStatusCode(), err.getMessage());
}
if(log.isDebug()) logDebug("Passing row to error step");
putError(getInputRowMeta(), data.outputBuffer[j], 1, errorMessage, null, "SalesforceUpdate001");
}
}
data.sfBuffer = new SObject[meta.getBatchSizeInt()];
data.outputBuffer = new Object[meta.getBatchSizeInt()][];
