I have a data table where instead of blank or missing values there is the string value of “NULL”. I know that I can use the string manipulator or rule engine to replace the string NULL values and make them blank but this would be very tedious as this issue plagues my entire data table (which is over 30 columns). Is there anything I can do to transform all the instances of a NULL string value using one tool or method?
You can use manual or wildcard selection inside the String Manipulation (Multi Column) node to pick which columns are processed. Alternatively, you could add a Column Filter node and utilize the “Type Selection” option to only process String columns (as an example).
Thank you so much for the response. I was not aware of the String Manipulator (multi column) tool. I have tried using the example that you posted but I keep getting the following error. Any advice you could provide to help with this error would be appreciated.
ERROR String Manipulation (Multi Column) 3:9 Execute failed: Invalid type identifier for variable in line 1: n
I’m running into an error that I can’t figure out how to clear. When I run this String Manipulation (Multi Column) tool in my workflow I get the following error:
ERROR at line 66
The method replace(java.lang.String, java.lang.String, java.lang.String) in the type org.knime.base.node.preproc.stringmanipulation.manipulator.ReplaceManipulator is not applicable for the arguments (java.lang.Integer, java.lang.String, java.lang.String)
Line : 65 public java.lang.String internalEvaluate() throws Abort {
Line : 66 return toEmpty(strip(replace(__variable_0, “NULL”,"")));
Any ideas of what I’m doing wrong? How I can clear this?