Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

How to deal with REGEX matches exceptions

$
0
0

@Caio_Dultra wrote:

Hello folks!

I’m having an issue with a project i’m building now. I’ll give you a short briefing of it:

I’ve a scanning system called Kodak. When I scan any document, the system applies an OCR on it and gives me a PDF (with ocr), a TXT (with the extracted text from PDF) and a CSV with some metadatas inside.

What am I trying to do?
I’m build a RPA that extracts the data that I define (Name, birthdate, so on…) from the TXT file but I’m having an issue with REGEX because my OCR extraction isn’t 100% reliable. How could I deal with this issue in my automation? I thought about Try Catch activity, but I don’t know if it’s gonna work.

What I want?
When my RPA finds some regex that doesn’t match or doesn’t exists, it just ignores that.

When it works flawless:

When it comes with some issue, usually: Assign: Object reference not set to an instance of an object:

OBS: The one above is what I want my RPA to ignore and keep going.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>