issue with counting loop node

hi all… counting loop node is not allowing flow variables since last few days… I am sure it was working fine before…


this is my table row to variable node with loop count as the variable


This is my counting loop node. As you can see, the flow variable is not available in drop down. Can someone please help?

1 Like

ok… i figured the issue after a lot of debugging… I was using ceil option of Expressions node to create an integer field called LoopCount which was supposed to be the flow variable for counting loop node. however expressions node resulted long int instead of Int and counting loop node doesnt consider long int flow variables.

I wanted to report this so that either expressions node can be changed or counting loop node needs to be modified to allow Long Int.
Development team, can u please comment.

4 Likes

Which version are you using? In 5.6 you can define either int or Long as data type for a new column when using expression node

2 Likes

The official download if for the version 5.5.1 as the official webpage. You are using nightly version? For the stable version, the node can’t be the same version as you are using.

Some suggestions:

1- Is possible to use chunk loop to break the table in rows or groups to make it easier to adminstrate the possibilities and control the all process.

2- try to set directly the number indeed the flow variable and chech if run fine.

3- you can try to set outside the node, but setting flow variables by right click on the node and adjust the flowvariables for it. maybe it resolve the problem.

Thanks, Denis

Hi @Amit_Mohanty,

You are right that the outputting of only Long from the Expression node is problematic The Long vs Int issue with the Expression node is further discussed in this thread based on the 5.3 release, and in the graphic I noted a number of nodes for which this would be an issue, including the Counting Loop…


In the Variable Expression node (I’m looking at KNIME5.4.4 but this functionality may have appeared in an earlier release), it is possible to specify the output type as either Integer (int) or Long (long int).

re @MartinDDDD 's note, you can find more info on where to get the KNIME AP 5.6 release here

1 Like

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