Anchor Based is not working to extract information for the variable

Dear All,

I have created a workflow to extract information from similar collection of document using anchor based and it works to extract few variables with values but its not working on extracting the correct value for some variable. It would be grateful if someone can help me to achieve the desired result . Please find the attached workflow and sample invoice which i am working upon. I want to extract the value of Total but i dont get any value for it or getting as 1/1 when i scroll and select the value(say 1725,00) with no spaces . So I want the value 1725,00 should get extract .




Invoice 1.pdf (28.8 KB)

1 Like

Try with Regex instead of anchor activity

Thanks Gayathri, for your quick response . As I am a beginner to UiPath, Can you please write regex expression to get the value for Total from similar collection of documents .

And If i am using the Get OCR text activity to extract the value, It works for first document which i have tagged and while reading the value from other document,it throws an error :-1:
UiPath.Core.SelectorNotFoundException: Could not find the UI element corresponding to this selector:
[1]
[2]
[3]
[4]

Search failed at selector tag:
[4]

The closest matches found are:
[79%]
[50%] at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Kindly help me .

Best Regards,
Rahul

Hi,

Please share one more pdf. I will share the xaml file with you.

Thanks

Please find the attached pdf .Thanks so much Jayesh :slight_smile:
Invoice 1.pdf (28.8 KB)
Invoice 2.pdf (28.8 KB)
Invoice 3.pdf (28.8 KB)

1 Like

Hi,

Input:-
image

Output:-
image

Xaml File:-
Fetch total from pdf forum.zip (69.2 KB)

Install UiPath.pdf.activities package.
Change input folder path.
Input files are true pdf files, so I used pdf activities instead of anchor based activities.

If this works for you, please mark it as a solution, so others can refer the same. :slight_smile:
Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.