Kofax Scan: An Error occurred while importing the file.

Problem:


This error can occur during import when the length of the entire path (including the file name) of the image file to be imported exceeds the 128-character limit.  Kofax Capture / VRS / ImageControls can only import image files with less than 128 characters in the entire filename and path.


When using software import the user will run into the follow error like below:


mceclip0.png


Resolve:


To resolve the issue, you will need to shorten the path to the file or shorten the file name as it exceeds the 128 character limit for importing an image file.



  1.  Change the location of where the file is located and/or rename the file to a shorter name.
  2. The second way is a method using Mklink (Microsoft Link): A Directory Junction is a symbolic link to a directory that acts as an alias of that directory.


After adding this symbolic link, the same data will be accessible in the short path as it is from the long path.


In Capture, the user will need to browse to the short path to import the image and avoid the error.


This was tested successfully using the the following syntax:


C:\Windows\system32>mklink /j \shortfilepath "\LongFilePath"


This syntax was obtained from the following Microsoft link:


Microsoft ¦ TechNet ¦ Mklink