I have the following flow and trying to execute Python code:
This is the code I have inside the Python Script:
I converted all geometries to strings, because it is my understanding that KNIME does not write geometry types.
When I am executing the node, I get the ''object of the type “method” has no len()":
I understand it refers to the input_table_1. But why am I getting it? Where do I need to use the len() method and why?
You are missing the pair of parentheses after
copy in line 25 – it should be
copy(). (You can probably also simply omit the entire call to
copy if you do not plan to modify either the input or the output table afterwards.)
The reported error is not directly triggered by your code but by the logic that transfers the node’s output data back to KNIME behind the scenes. One of the first things done there is to determine the size of
output_table_1 in terms of its number of rows.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.