I am learning to use KNIME to help my work, such a great tools.
When I try to copy multiple excel from each individual files (file count A) into one files, I got the result duplicated to my file count A, for example, if i have 5 files to combine, then I will got the row count duplicated* 5, if 10 files then row count duplicated for 10 times…
That is really annoying to me, may I know which part was wrong please?
Hi,
your current selection always points to default_1 for the select sheet with name. You need to use the variable which is created by the loop and use this for your sheet name in the Flow Variables Tab
It is about the setting “Files in Folders” which would load every file in the folder and in your case would do it 5 times. Hence the duplicates.
The excel reader can import all excel files from one folder at once given they have the same structure without the loop. If you want so use the loop you would have to select the settings for a single file.
Thanks for your swift reply and the video, I removed the loop as you suggested and it works like a charm (and I LOL’ed at the same time in front of my PC, how i over-complicated things.)
Glad you found a solution. With knime there are often several ways to do things. And while you learn you discover new ways to do stuff which does not mean something else is wrong.
Over engineering can be fun
And since we are at it. Concerning importing and handling excel files - there is a whole world to discover what you can do: