Hello,
Has anyone else encountered the issue of List Files/Folders node stopping at listing a pdf file and referring to an “Incorrect function”.
Hello,
Has anyone else encountered the issue of List Files/Folders node stopping at listing a pdf file and referring to an “Incorrect function”.
Hi,
can you tell us which file system the pdf file is located on and ideally include the stacktrace of the error from the KNIME log which you can access from within KNIME Anayltics Platform view View → Open KNIME Log
Thanks
Tobias
2021-04-07 15:40:24,850 : ERROR : KNIME-Worker-32-List Files/Folders 4:1 : : Node : List Files/Folders : 4:1 : Execute failed: \intranet\sites\xxx\xxx\xxx\xxx\xxx.pdf: Incorrect function.
java.nio.file.FileSystemException: \intranet\sites\sup\xxx\xxx\xxx\xxx.pdf: Incorrect function.
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
at sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
at sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:193)
at org.knime.filehandling.core.connections.local.LocalFileSystemProvider.readAttributes(LocalFileSystemProvider.java:312)
at java.nio.file.Files.readAttributes(Files.java:1737)
at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
at java.nio.file.FileTreeWalker.next(FileTreeWalker.java:372)
at java.nio.file.Files.walkFileTree(Files.java:2706)
at org.knime.filehandling.core.defaultnodesettings.filechooser.FileChooserPathAccessor.walkFileTree(FileChooserPathAccessor.java:239)
at org.knime.filehandling.core.defaultnodesettings.filechooser.FileChooserPathAccessor.getFSPaths(FileChooserPathAccessor.java:206)
at org.knime.filehandling.utility.nodes.listpaths.ListFilesAndFoldersNodeModel.writeOutput(ListFilesAndFoldersNodeModel.java:191)
at org.knime.filehandling.utility.nodes.listpaths.ListFilesAndFoldersNodeModel.execute(ListFilesAndFoldersNodeModel.java:137)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:576)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1245)
at org.knime.core.node.Node.execute(Node.java:1025)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:558)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:201)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:117)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:334)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Hi,
is it possible that you try to list files from a Windows Subsystem for Linux 2 (WSL 2) file systems that is mounted as network drive? If this is the case the problem is a bug in Java or even the Windows file system implementation.
https://bugs.openjdk.java.net/browse/JDK-8259617?attachmentSortBy=fileName
Are you able to share these files in another way until this bug is fixed in Windows or Java?
Bye
Tobias
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.