Digitize Document Native Scanner Does Not Behave Same As Read PDF Text Activity

When using the READ PDF TEXT Activity I get nicely formatted results.
When using Digitize Document Activity I some time get results scattered making it more difficult creating regex to capture wanted data.
I’m trying to:
Let the Digitize Document Activity complete and let it populate the DocText Variable with the output.
After this activity I want to run the READ PDF TEXT Activity and assign / replace the DocText variable with the new string from the READ PDF TEXT Activity.
The goal/value of this …is it will let me use the nicely formatted string instead of the unformatted I get sometime when letting the Digitize Document scan it.

image

I thought I had it until I got the following error message as soon as it got the the classification activity. :frowning:

image

“Classify Document Scope: The document text does not match the Document Object Model.”

Hoping someone can suggest how I can force my string in the DocText to be used for the rest of the Document Understanding Framework?

Hello @david.kameka!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

Hi David, I am trying to implement exactly the same thing you were doing. Did you ever get a response or solution to the above.

1 Like

Hi all,

Likewise, I am having this problem - there doesn’t seem to be an easy way to switch out the text part of the document object model!

2 Likes

Hi,
I have the same problem described by David!
I have tried “dom.GetVisualTextProjection.ProjectedText” but the exception is the same.