Difficulty reading workflow summary data in Python Labs node

Hi,
I’m trying to read the JSON data of the workflow summary extractor node with a python labs node.
image
In the regular python script node I can read this data as a String and load the dictionary fairly painlessly.
image

However with the labs node this data is of type Bytes and I’m not able to decode it:
image
image
I tried to find the source code for this node - org.knime.features.python3.scripting.feature.group, but I wasn’t able to find this.

In what format is this object encoded? Or where is the source code for this node.

Thanks,

@azsb1g19 maybe you could provide us with a sample workflow that would reproduce the error.

00_Visual_Analysis_of_Sales_Data(2).knwf (216.0 KB)

try
data = data.decode(“ISO-8859-1”)

best regards

1 Like

@Daniel_Weikert
You can see my attempt below:
image


If I cut the first character, I get something that looks like a JSON but it will not load:
image

Cutting the second character does not let it load as a JSON either. When I compared the log dump of the Labs node to the regular one, they seemed the same to me.
Thanks,
Alex

That’s strange. I ran it with decoding (without slicing) and it worked fine for me

1 Like

I’ll try on a different workflow tomorrow and report back

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.