Troubles with Report Component from 2 sources

I’m new to KNIME reporting and can’t figure out what I’m doing wrong in my attempt.

I have two sets of data that I want to show in two tables next to each other on a single page. In the first screenshot, you can see them both flowing in from the left to create Left Table and Right Table:

I selected all those ports and created a Component. Here is how it looks inside:


I am able to run the nodes here.

I have set the layout for my desired report and checked the box at the bottom:

But when I leave the component, I see an error message that something is not connected:

And I cannot run the component.
KNIME-Screenshot05

I’m probably fundamentally misunderstanding something basic. Perhaps I cannot have two different data sources in the same report?

@cewarren from my perspective you have two group loop start nodes inside the component that never get closed. I think you will at least have to fix that.

3 Likes

Hi @cewarren ,

Welcome to the KNIME forum. What @mlauber71 has mentioned are very valid points that I think you will need to address, but the error message is specifically telling you that inside the component, there is nothing connected to the component’s output port (on the Component Output node). Since externally, the component has a blue square (Report) output port, internally, that port must have something “wired” to it, so that it is able to output something.

To fix that, you will need to connect something to it. For example you could simply “pass through” the blue report port from the component input node:

2 Likes

Thanks very much for replying!

Re the Loop nodes –
I thought having one Loop End outside the component would fulfill the two Group Loop Starts. I also tried a version where the two Group Loop Starts were placed outside the component, to match the Loop End also being outside of it, but that didn’t succeed either.

I think I need one Loop Start on each of the two data branches, because I’m segmenting each branch by Installation Number. I don’t want to merge the data branches together in order to pare down to just one Loop Start, because one of the branches is high level data and one is very granular, and they would end up multiplying into too many rows/columns if I joined them. But perhaps that’s what I need to do.

Re the blue “report” box connector in the Component Output node –
I tried connecting the “report” box from the Component Input. When I do that, no data makes it through to the final report.pdf. (Also, other examples of report components I’ve found don’t have anything attached to the Component End node, and they work.) I can’t attach any black lines to the Component Output node (no port suitable to receive them, no way to add one), and I can’t delete the node, either, since it’s part of creating the Component.

I’ve uncreated and recreated the Component in different configurations quite a few times now. Currently I have a version with the Report Loop End inside the Component and attached to the Component Output node, but that doesn’t help. I still get the error “Contains an unconnected node.”

My next plan is to start looking through sample workflows to try to find one that has (1) both headline and granular data displayed next to each other on the same page, (2) segmented by some piece of data (Nation, Product Line, etc.) that can have between 1 and n values each time the report is run. Then I can learn from how they did it.

@cewarren maybe you take a look at this example. I think you will have to place the loop start outside the component and I do not think you can have two unconnected loop starts:

1 Like

I got it working and I’ll briefly explain how, in case it can help others.

When I select multiple nodes and click Create Component out of them, the resulting Component is a gray box that looks like this:

Although I set up the loop start / end, the flow variables, the data, etc., the error message is always the same – complaining that the Component Output node is not connected to anything. But that node was automatically created when I created the component, and can’t be altered or deleted! And other workflows I’ve seen have it in there just fine…

In desperation as to why it wasn’t working, I copied a report Component from another published workflow and pasted it into mine. That component is a BLUE box (not gray!) that looks like this:

AND IT WORKS. My data comes through! :smiley:

So for some reason, there’s a SECRET BLUE COMPONENT NODE that I’m not able to create myself… but I can steal it from others!

If anyone in the future wants to do this same thing I did, check out the workflow “Reporting Minimal Example” in the collection “First Steps with KNIME Reporting”:

1 Like

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