HNode hNode = f.getHNode(hNodeId);
final JSONArray transformedRows = new JSONArray();
final JSONArray errorValues = new JSONArray();
try {
this.generateTransformedValues(workspace, worksheet, f, hNode, transformedRows, errorValues, 5);
return new UpdateContainer(new PythonPreviewResultsUpdate(transformedRows, errorValues));
} catch (Exception e) {
logger.error("Error while creating python results preview", e);
String message = e.toString();
return new UpdateContainer(new ErrorUpdate("Error executing python script: " + message));
}