You are viewing limited content. For full access, please sign in.

Question

Question

How can I recover or reconstruct the orginal document

asked on April 11, 2018 Show version history

Hello all,

I'm having a problem with a document in Quick Fields. It won't release to Laserfiche. The document doesn't exist in the original location anymore (post-processing is set to delete). Other documents scanned afte this one release to Laserfiche OK.

Is there a way to:

a) force the document to store. I've tried splitting it up into eight parts but it still won't release?

b) reconstruct the original document from Quick Fields data in ProgramData?

 

Untitled.png
Untitled.png (55.18 KB)
0 0

Answer

SELECTED ANSWER
replied on April 11, 2018

If you click in the lower right corner where Quick Fields shows the image size/resolution, it will open up the correct subfolder, which hopefully makes it a bit easier to reconstruct the document. 

2 0

Replies

replied on April 11, 2018

If you can select the document and view its pages in QuickFields, then it is still in the temp location and you can recover the single page TIFFs from there.  You can find the temp location by going to Tools - Options and then the Advanced tab.  You may need to sort through a bunch of sub folders to find the one with your specific documents pages.

0 0
replied on April 11, 2018

Hi Bert,

The files are indeed there and all pages have been split out. Perhaps I should have mentioned that the document is over 500 pages, so reconstructing the document from the disparate pages would be quite a task. Neither is it obvious which of the subfolders to go into, to reassemble the original document from.

0 0
replied on April 11, 2018

If you view the thumbnails, do any of them have a Exclamation instead of a thumbnail image?  I have seen this happen before and had to replace the missing image before I could store it.

0 0
replied on April 11, 2018

When that happens to you, does it get stuck at 0% for hours on end?

0 0
replied on April 11, 2018

All of the thumbnails appear to contain images.

0 0
replied on April 11, 2018

No, when it happens, it will not even attempt to store the offending document.

Not sure what to tell you but hopefully Miruna will have a solution.

1 0
SELECTED ANSWER
replied on April 11, 2018

If you click in the lower right corner where Quick Fields shows the image size/resolution, it will open up the correct subfolder, which hopefully makes it a bit easier to reconstruct the document. 

2 0
replied on April 12, 2018 Show version history

Hi Tessa,

Thanks, that's given me the location of the files. I'll still need to merge the pages but I can script that fast enough (there's nearly 600 pages).

 

There's another 31GB of TIF files in nearby folders. Will they be automatically cleared out at some point?

 

Regards

Ben

 

0 0
replied on April 12, 2018 Show version history

In case anyone is interested, here's the script I used to reocnstruct the document back into Laserfiche. For my convenience, I'm running it from Workflow.

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Data.SqlClient
Imports System.Text
Imports Laserfiche.RepositoryAccess
Imports Laserfiche.DocumentServices

Namespace WorkflowActivity.Scripting.MergeQuickFieldsPagesScript
    '''<summary>
    '''Provides one or more methods that can be run when the workflow scripting activity is performed.
    '''</summary>
    Public Class Script1
        Inherits RAScriptClass102
        '''<summary>
        '''This method is run when the activity is performed.
        '''</summary>
        Protected Overrides Sub Execute()
            dim oDoc as DocumentInfo = Nothing
            dim intEntryID as Integer = 0
            dim strFullPath as String = ""
            dim strStartPath as String = "C:\ProgramData\Laserfiche\Quick Fields\Files\ed5da3f7-0735-4d61-80a8-6b301ae12eb0\7\106\12\38"
            dim strExtension as String = "TIF"
            dim strMergedName as string = "merged file"
            dim strLFPath as String = "\"
            dim oLFPath as FolderInfo = nothing
            dim oImport as New DocumentImporter
            dim oOCROptions as DocumentImporterOcrOptions =  nothing
            dim i as Int32 = 0

            oLFPath = Folder.GetFolderInfo(strLFPath,me.Connection)
            intEntryID= Document.Create(oLFPath,strMergedName,EntryNameOption.AutoRename,me.Connection)
            oDoc = Document.GetDocumentInfo(intEntryID,me.Connection)
            odoc.Lock(LockType.Exclusive)
            oOCROptions = oImport.OcrOptions
            with oOCROptions
                .AutoOrient=False
                .Decolumnize=False
                .OptimizationMode=OcrOptimizationMode.Balanced
            end With
            oImport.Document=oDoc
            oImport.OcrImages=True
            for i=0 to 2047
                strFullPath=string.Format("{0}\{1}.{2}",strStartPath,i.ToString("X8"),strExtension)
                if System.IO.File.Exists(strFullPath) Then
                    oImport.ImportImages(strFullPath)
                end If
            next i
            oDoc.Unlock
        End Sub
    End Class
End Namespace

 

 

2 0
replied on October 29, 2019 Show version history

Does this script recover original file names? Is there a way for it to work through the subfolders under the Files parent folder?

0 0
replied on October 31, 2019

Hi Mike,

  1. The script just creates a generic file name "merged file." QF can store the original name but I've not looked into recovering it.
  2. Assuming the other folders are structured in the same way, then yes. It would just require the addition of some simple recursion. I've not looked into the other folders though.
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.