private void writeToSalesForce(Object[] rowData) throws KettleException
{
try {
if (log.isDetailed()) logDetailed(BaseMessages.getString(PKG, "SalesforceInsert.WriteToSalesforce", data.iBufferPos, meta.getBatchSizeInt()));
if ( data.iBufferPos < meta.getBatchSizeInt()) {
<BUG>ArrayList<MessageElement> insertfields = new ArrayList<MessageElement>();
for ( int i = 0; i < data.nrfields; i++) {
if(!data.inputRowMeta.isNull(rowData, data.fieldnrs[i])) {
insertfields.add(SalesforceConnection.createMessageElement( meta.getUpdateLookup()[i], rowData[data.fieldnrs[i]], meta.getUseExternalId()[i]));</BUG>
}

private void writeToSalesForce(Object[] rowData) throws KettleException
{
try {
if (log.isDetailed()) logDetailed(BaseMessages.getString(PKG, "SalesforceInsert.WriteToSalesforce", data.iBufferPos, meta.getBatchSizeInt()));
if ( data.iBufferPos < meta.getBatchSizeInt()) {
ArrayList<MessageElement> insertfields = new ArrayList<MessageElement>();
ArrayList<String> fieldsToNull = new ArrayList<String>();
for ( int i = 0; i < data.nrfields; i++) {
if(data.inputRowMeta.isNull(rowData, data.fieldnrs[i])) {
fieldsToNull.add(meta.getUpdateLookup()[i]);
} else {
insertfields.add(SalesforceConnection.createMessageElement( meta.getUpdateLookup()[i], rowData[data.fieldnrs[i]], meta.getUseExternalId()[i]));
