KNIME workflow won't import

I have a KNIME workflow that I used to use, but not for while since I changed PC and on the new one I now use KNIME 5.3.
The problem I am having that when I try to open (double click) or import the workflow nothing happens no error, no notification, it just does not work.
This is the workflow:
LoadMolPortData_v2_example.knwf (144.2 KB)

It was made several years ago, probably version 3.7.
Does anybody know what can be done to fix the workflow so I can open it?

P.s. I can not have 2 versions of KNIME on my PC installed at the same time, so I can’t view the old version to replicate it manually in KNIME 5.3.

P.p.s. I am running KNIME 5.3 on windows 11

Hi @AAuzins,

I am afraid the workflow export you shared seems to be corrupt. It might have been copied incorrectly or incomplete (truncated).

I tried to import it with the Classic UI (you can switch from ModernUI via the Menu) with the importer and it does not show any workflows:

I also tried to unzip the knwf file directly (they are just zip files with a custom extension) and it also complains:

$ unzip LoadMolPortData_v2_example.knwf
Archive:  LoadMolPortData_v2_example.knwf
warning [LoadMolPortData_v2_example.knwf]:  62225 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [LoadMolPortData_v2_example.knwf]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

Typically it should show an inflation log like this:

$ unzip test.knwf
Archive:  test.knwf
  inflating: test/.artifacts/workflow-configuration-representation.json
  inflating: test/.artifacts/workflow-configuration.json
  inflating: test/data/Book1.xlsx
  inflating: test/Excel Reader (#37)/settings.xml
  inflating: test/Variable Creator (#24)/settings.xml
  inflating: test/workflow-metadata.xml
  inflating: test/workflow.knime
  inflating: test/workflow.svg
  inflating: test/workflowset.meta

java also does not handle the archive (jar files are also zip files, which is why this should work):

$ jar xvf LoadMolPortData_v2_example.knwf
java.util.zip.ZipException: invalid distance too far back
	at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
	at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:196)
	at java.base/java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:142)
	at java.base/java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:120)
	at jdk.jartool/sun.tools.jar.Main.extract(Main.java:1363)
	at jdk.jartool/sun.tools.jar.Main.run(Main.java:390)
	at jdk.jartool/sun.tools.jar.Main.main(Main.java:1683)

On my test file it works:

$ jar xvf test.knwf
 inflated: test/.artifacts/workflow-configuration-representation.json
 inflated: test/.artifacts/workflow-configuration.json
 inflated: test/data/Book1.xlsx
 inflated: test/Excel Reader (#37)/settings.xml
 inflated: test/Variable Creator (#24)/settings.xml
 inflated: test/workflow-metadata.xml
 inflated: test/workflow.knime
 inflated: test/workflow.svg
 inflated: test/workflowset.meta

To use multiple versions at the same time, you can just use the zip archive download and run the knime.exe directly – if your Windows install is allowing this; some corporate installs don’t. You can find the old version here: Previous Versions | KNIME
But since the file is corrupt, you would need to first find a non-corrupt copy of it.

Best,
Manuel

2 Likes

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