Get OCR text to extract particular information from document but the get ocr text is working for first document to extract the Total Value but its not working for other documents in the similar collection of documents

Hello All,

I am trying to extract information from invoice/document/scanned Document. I am making use of both anchor based method as well as Get OCR text to extract particular information from document but the get ocr text is working for first document to extract the Total Value but its not working for other documents in the similar collection of documents.
Please note:- It doesnt work with anchor based activity thats why i used Get OCR text .

Please someone help me to extract the value for Total. If it needs regex also please help me with the procedure as i am new to UiPath.


https://forum.uipath.com/t/anchor-based-is-not-working-to-extract-information-for-the-variable/726730/4?u=rahul.kumar3

Hi @rahul.kumar3

Check out these videos they might help you up with regex extraction.

https://youtu.be/uCdBC2pXPyY?si=VaBpxwb6BQq4LAVy

https://youtu.be/yZMRY6pMc-o?si=Ny2wCORWjgWiJeFY

Your error has nothing to do with OCR, but with your selector.
You built a static selector that is dependent on the value of that component. Obviously, if that component holds another valy the selector should be different, and better, dynamic.

Also curious: if your goal is to get the ammount listed, and apparently the selector has this alue, shouldn’t a basic get text get you a way more accurate value than messing around with less reliable OCR?