SYMPTOMS
You notice that when a document is scanned and exported, the image or page(s) that are displayed in ZyFIND after the index is rebuilt are not the same as the actual pages that were being scanned.
CAUSE
ZySCAN software is reinstalled on the workstation and the File Counter is left as the default and not adjusted to allow for file/document names already created which creates the possibility for multiple XMLTIFF documents in the same Index to have pages that reference the same file name as they are saved in different folders (such as by year). The first TIFF image found is displayed.
RESOLUTION
- Choose a string of text 1-4 characters long to add to the filenames for future scans to ensure that more duplicate references are not created.
- Add the text chosen to the beginning of the File Counter referenced in the Global Settings of ZySCAN.
- Identify the documents that have duplicate page file name references.
- Add the text chosen in the first step to the beginning of the file name of the TIFF page files that are referenced in the more recent XMLTIFF documents.
- Then, change the file/page name referenced for the pages in the XMLTIFF document file to match the new file names.
Most Indexes that are maintained and added to organize the documents in subfolders named by the year the documents/files were added.
If the documents with duplicate page file name references are in separate subfolders, the file names and page name references in the XMLTIFF file can be changed in bulk using Notepad++ and Powershell.
- Open Powershell then change directories to the TIFF folder (e.g. C:\ZyLAB Data\Index Data\Test1\Tiff\2015) that contains the TIFF files and subfolder(s) of TIFF files that require a name change.
- Run the following command replacing XXXX with the 1-4 character text selected above.
Get-ChildItem -Filter "*.tif" -Recurse | Rename-Item -NewName {"XXXX"+ $_.name}
- Exit Powershell.
- Open Notepad++ and perform a 'Find/Replace in Files' by selecting the 'Find in Files' tab.
- Change the Search Mode to Regular expression.
- Check the option for 'In all sub-folders'.
- Enter the Directory (e.g. C:\ZyLAB Data\Index Data\Test1\Xml\2015) that contains the XMLTIFF document files with the page references that require changing.
- Enter the following text in the find/replace/filter boxes replacing XXXX with the 1-4 character text selected above:
Find what: >([a-zA-Z0-9]{8}).tif<
Replace with: >XXXX$1.tif<
Filters: *.xml
- Select [Replace in Files].
- Exit Notepad++
- Then open ZyINDEX
- Select the INDEX
- Rebuild using the 'Add documents...' Build option.
- Perform a search (in ZyFIND) for the document that was previously displaying the incorrect page image to verify that it has been corrected.
APPLIES TO
6.3; 6.4; 6.4 SP1; 6.5
Comments
0 comments
Article is closed for comments.