Сообщество

FC12 for Invoices - unknown document in verification station С ответом

Hi,

I have a configured FC12 for invoices and it happens that i need to process "not invoice type" of document with the same settings and requirements as the invoices. Currently , these documents are categorized as "unknown" but ABBYY and even if I make them to go to the verification station, I don't have the fields from the document definition any more. Is there a way to force this uknown document and just type manually the information in the fields, and then export? 

Была ли эта статья полезной?

Пользователи, считающие этот материал полезным: 0 из 0

Комментарии

Комментариев: 5

  • Avatar
    Vladimir Dimitrijević

    Hi,

    You will need to create new workflow stage that will handle only documents without document definition set, add registration parameter that will point to which document definition you want to force that document, and route it back to the Recognition stage. But, Before matching event handler will force matching of your document definition.

    Follow these steps:

    1. Create new automatic workflow stage after Recognition stage
    2. Restrict set of Document Definitions being used: <Unknown>
    3. Add Document processing script (change value to correct document definition name):

    Document.Properties.Set("DocumentDefinitionName", "Your Document Definition Name");

    4. Set Exit route to Recognition and click OK

    5. Open Event Handlers and add code in Before matching event handler: 

    if(Document.Properties.Has("DocumentDefinitionName")) 

    {
        string documentDefinition = Document.Properties.Get("DocumentDefinitionName");
        Matching.DefinitionsList = documentDefinition;
        Matching.ForceMatch = true;
    }

     

    Best regards,
    Vladimir

    3
  • Avatar
    Claus Nielsen

    Why is this happening in the first place? Of cource, I can just add the code, but with only (in my example) one document definition, it should just classify as "European Invoice".

     

    I've just tested with approx 400 documents and 30-40 documents was classified as unknown in the first place.

    0
  • Avatar
    Ekaterina

    Hello,

    When a document is being recognized, the program tries to match it with Document Definitions added to the FlexiCapture project. Those Definitions can be fixed-form, based on static elements that are located in known places on the page, or flexible, that have less strict logic. If no Definition was matched, then the document is considered "unknown".
    0
  • Avatar
    Vishal Trivedi

    Hi,

    Just wanted to confirm that if the document does not match means "Unknown", then flexicapture page count considers or not?

    Thanks,

    Vishal

    0
  • Avatar
    Stammerjohann, Max

    Thanks Vladimir Dimitrijević. Your Code Snippet helped me as well!

    0

Войдите в службу, чтобы оставить комментарий.