I’m working on a below scenario in knime. Need help either in form of workflow or python code.
- Read input excel file from src_folder flow variable.
- Read all the sheets (3 Visible and 2 hidden) available in the excel.
- Check if the excel file has more than 50000 records in sheet next to sheet named Definition Template.
- Create a copy of the excel to number of instances (Divide the total records row from source excel file by 50000 to take number of instances for splitting the file)
by keeping all the active and hidden sheets as is and clear data only from sheet next to Definition Template from row 6 in new files. - Copy the data from source excel to the new excel files each by 50000 rows from row 6 till it completes the number of instance need for split
- Once all the row data copied to destination excel files, delete the source file from split folder.
- Move the files to dest_folder flow variable.