From PDF or image files that you receive from your trading partners, you can have an external OCR service (Optical Character Recognition) generate electronic documents that can be converted to document records in Business Central . For example, when you receive an invoice in PDF format from your vendor, you can send it to the OCR service from the Incoming Documents page. This is described in the first procedure.
As an alternative to sending the file from the Incoming Documents page, you can send the file to the OCR service by email. Then, when you receive the electronic document back, a related incoming document record is created automatically. This is described in the second procedure.
After some seconds, you receive the file back from the OCR service as an electronic invoice that can be converted to a purchase invoice for the vendor. This is described in the third procedure.
Because OCR is based on optical recognition, it is likely that the OCR service will interpret characters in your PDF or image files wrongly when it first processes a certain vendor’s documents, for example. It may not interpret the company logo as the vendor’s name or it may misinterpret the total amount on a receipt because of its layout. To avoid these errors going forward, you can correct the errors in a separate version of the Incoming Document page. Then you send the corrections back to the OCR service to train it to interpret the specific characters correctly next time it processes a PDF or image document for the same vendor. For more information, see To train the OCR service to avoid errors.
The traffic of files to and from the OCR service is processed by a dedicated job queue entry, which are created automatically when you enable the related service connection. For more information, see Set Up Incoming Documents.
On the Incoming Documents page, select one or more lines, and then choose the Send to Job Queue action.
The value in the OCR Status field changes to Ready. The attached PDF or image file is sent to the OCR service by the job queue according to the schedule, provided that no errors exist.
The value in the OCR Status field changes to Sent, provided that no errors exist.
From your email application, you can send an email to the OCR service provider with the PDF or image file attached. For information about the email address to send to, see the OCR service provider’s web site.
Because no incoming document record exists for the file, a new record will be created automatically on the Incoming Documents page when you receive the resulting electronic document from the OCR service. For more information, see Create Incoming Document Records.
If you work on a tablet or phone, you can send the file to the OCR service as soon as you have taken a photo of the document, or you can create an incoming document directly. For more information, see To create an incoming document record by taking a photo.
The electronic document that is created by the OCR service from the PDF or image file is automatically received into the Incoming Documents page by the job queue entry that is set up when you enable the OCR service.
If you are not using a job queue, or you want to receive a finished OCR document sooner than per the job queue schedule, you can choose the Receive from OCR Service button. This will get any documents that are completed by the OCR service.
If the OCR service is set up to require manual verification of processed documents, then the OCR Status field will contain Awaiting Verification. In that case, perform the following steps to log in to the OCR service website to manually verify an OCR document.
On the OCR service website, log in using the credentials of your OCR service account. These are the credentials you also used when setting up the service. For more information, see To set up an OCR service.
Information for the OCR document is displayed, showing both the source content of the PDF or image file and the resulting OCR field values.
Now you can proceed to create document records for the received electronic documents in Business Central , manually or automatically. For more information, see the next procedure. You can also connect the new incoming document record to existing posted or non-posted document so that the source file is easy to access from Business Central . For more information, see Process Incoming Documents.
The following procedure describes how to create a purchase invoice record from a vendor invoice received as an electronic document from the OCR service. The procedure is the same when you create, for example, a general journal line from an expense receipt or a sales return order from a customer.
The Description and No. fields on the created document lines will only be filled if you have first mapped text found on the OCR document to the two fields in Business Central . You can do this mapping as item cross-references, for document lines of type Item. For more information, see Use Item Cross References. You can also use the Text-to-Account Mapping function. For more information, see To map text on an incoming document to a specific vendor, G/L, or bank account.
A purchase invoice will be created in Business Central based on the information in the electronic vendor document that you received from the OCR service. Information will be inserted in the new purchase invoice based on the mapping that you have defined as a cross-reference or as text-to-account mapping.
Any validation errors, typically related to wrong or missing master data in Business Central , will be shown on the Errors and Warnings FastTab. For more information, see To handle errors when receiving electronic documents.
For incoming documents, you typically use the Map Text to Account action to define that a certain text on a vendor invoice received from the OCR service is mapped to a certain vendor account. Going forward, any part of the incoming document description that exists as a mapping text means that the No. field on resulting document or journal lines of type G/L Account are filled with the vendor in question.
In addition to mapping to a vendor account or G/L accounts, you can also map to a bank account. This is practical, for example, for electronic documents for expenses that are already paid where you want to create a general journal line that is ready to post to a bank account.
In the Credit Acc. No. field, enter the credit-type G/L account that will be inserted on resulting purchase document or journal line of type G/L Account.
Do not use the Bal. Source Type and Bal. Source No. fields in connection with incoming documents. They are used for automatic payment reconciliation only. For more information, see Map Text on Recurring Payments to Accounts for Automatic Reconciliation.
Repeat steps 2 through 5 for all text on incoming documents that you want to automatically create documents for.
Because OCR is based on optical recognition, it is likely that the OCR service will interpret characters in your PDF or image files wrongly when it first processes documents from a certain vendor, for example. It may not interpret the company logo as the vendor’s name or it may misinterpret the total amount on an expense receipt because of its layout. To avoid such errors going forward, you can correct data received by the OCR service and then send the feedback to the service.
The OCR Data Correction page, which you open from the Incoming Document page, shows the fields from the Financial Information FastTab in two columns, one with the OCR data editable and one with the OCR data read-only. When you choose the Send OCR Feedback button, the content of the OCR Data Correction page is sent to the OCR service. Next time the service processes PDF or image files that contain the data in question, your corrections will be incorporated to avoid the same errors.
The fields on the Financial Information FastTab on the Incoming Document page are updated with any new values that you entered in step 4.
Process Incoming Documents
Incoming Documents
Purchasing
Working with Business Central
© 2019 Microsoft. All rights reserved.