Hi all, I am trying to extract data from a pdf but having issues using the get text activity with the CV selector option (None of the other options like Strict selector were available so I had to use CV). It identifies the element I want well whenever I check but it always throws an error when it runs throwing a “Object not found error” even though the text is clearly visible on the pdf.
…as you can see it can clearly identify the element just never in runtime for some weird reason
For pdf it is advised to use read pdf text activity and then perform string manipulations or regex texhniques to extract the required information…that would be more reliable…try to follow that
Cheers
Hi @Anil_G, I have tried doing that but I couldn’t get the regex to work.
All I am trying to do is get these tax parcels from a pdf file
This is what the text looks like when extracted to UiPath
This is the regex expression I have tried that always ends up being null
“Tax Parcel: .{8,}”
Can you maybe suggest an expression to get all the tax parcels if mine is wrong?
Thanks!
Use regex (?<=Tax Parcel: )(.*)
Utilize the code as mentions below in UiPath inside Assign activity.
Result is of type MatchCollection
System.Text.RegularExpressions.Regex.Matches(strPdfText, "(?<=Tax Parcel: )(.*)")
How do I convert the output to a string? I tried output.Value(some index) and output.Value but the editor throws an error for both.
Appreciate the help!
Hi @greff
Regex Pattern: (?<=Tax Parcel\:\s+).*
=> Read PDF Text activity
Output-> inputString
=> Use Find Matching Patterns activity and configure like below:
Pattern: "(?<=Tax Parcel\:\s+).*"
Text to search in: Your pdf text output variable
Result: Create a Variable say Matches
=> Use For Each loop to iterate through Matches variable and CurrentMatch.ToString
will print the extracted value.
Regards
Hi @vrdabberu , I set it up like you said but I am still getting 0 results. Do you have any suggestions?
Hi @greff
If possible can you provide the text file of the output of Extract PDF Text. I will help you out.
Regards
Hi @vrdabberu I appreciate that. Here is the output from the extracted text:
County of Bucks Sheriff Real Estate Sales Report 07/12/2024 TO DATE
By virtue of Writ of Execution issued out of the Court of Common Pleas; Civil Division of the County of
Bucks to me directed; will be sold at public sale on Friday, July 12, 2024 at eleven o’clock A.M. prevailing
time in the Bucks County Administration Building the following real estate
1 Writ of Execution: 201301248
Receipt Number: 2021 1 15051
From Tax Parcel: 48007123009
3/8/2024 Real Debt: $558,975.03
Sale Attorney for Plt: McCabe Weisberg & Conway
U.S. BANK NATIONAL ASSOCIATION, AS TRUSTEE FOR J.P. MORGAN MORTGAGE
ACQUISITION CORPORATION JPMMAC 2006WMC1 VS. SONYA W. SINGER,
STUART J. SINGER, 128 ALTIMARI COURT, SOUTHAMPTON. MESSUAGE AND
TRACT IN THE TOWNSHIP OF UPPER SOUTHAMPTON.
2 Writ of Execution: 201803730
Receipt Number: 2023 1 16033
From Tax Parcel: 02097065
4/12/2024 Real Debt: $361,453.68
Sale Attorney for Plt: Manley Deas Kochalski
U.S. BANK NATIONAL ASSOCIATION NOT IN ITS INDIVIDUAL CAPACITY BUT
SOLELY AS TRUSTEE FOR THE CIM TRUST 2021NR2 MORTGAGEBACKED NOTES,
SERIES 2021NR2 VS. CAROLYN NOTTINGHAM AKA CAROLYNN NOTTINGHAM,
MARK NOTTINGHAM, 1218 PRIMROSE COURT, BENSALEM. MESSUAGE AND
TRACT IN THE TOWNSHIP OF BENSALEM.
3 Writ of Execution: 201901137
Receipt Number: 2024 1 04061
Tax Parcel: 23005078002
Real Debt: $446,257.00
Attorney for Plt: Pincus Law Group
THE BANK OF NEW YORK MELLON FKA THE BANK OF NEW YORK, AS TRUSTEE
FOR THE CERTIFICATEHOLDERS OF THE CWABS, INC., ASSETBACKED
CERTIFICATES, SERIES 20075 VS. DAVID SOMERS AKA DAVID C. SOMERS,
JENNIFER SOMERS, 2195 GRANT ROAD, QUAKERTOWN. MESSUAGE AND TRACT
IN THE TOWNSHIP OF MILFORD.
4 Writ of Execution: 202200151
Receipt Number: 2023 1 12510
From Tax Parcel: 05033086
4/12/2024 Real Debt: $238,409.27
Sale Attorney for Plt: RAS Crane & Partners PLLC
CASCADE FUNDING MORTGAGE TRUST HB2 VS. ERIC U. HOLMQUIST AKA ERIC
HOLMQUIST, 25 IDOLSTONE ROAD, LEVITTOWN. MESSUAGE AND TRACT IN THE
TOWNSHIP OF BRISTOL.
5 Writ of Execution: 202200189
Receipt Number: 2024 1 03863
Tax Parcel: 4019203
Real Debt: $183,205.87
Attorney for Plt: KML Law Group PC
MORTGAGE ASSETS MANAGEMENT LLC VS. KEVIN MCCARTHY SOLELY IN HIS
CAPACITY AS HEIR OF JO ANNE MCCARTHY, 309 PENN STREET BRISTOL.
MESSUAGE AND TRACT IN THE BOROUGH OF BRISTOL.
4/5/2024 3:30:37 PM Page 1 of 5
County of Bucks Sheriff Real Estate Sales Report 07/12/2024 TO DATE
6 Writ of Execution: 202205068
Receipt Number: 2024 1 04155
Tax Parcel: 49009101
Real Debt: $129,322.35
Attorney for Plt: RAS Crane & Partners PLLC
LOANDEPOT.COM, LLC VS. DANIEL FOSTER, 101 LEXINGTON COURT, UNIT 10,
WARMINSTER. MESSUAGE AND TRACT IN THE TOWNSHIP OF WARMINSTER.
7 Writ of Execution: 202206655
Receipt Number: 2023 1 15178
From Tax Parcel: 21005035
4/12/2024 Real Debt: $320,127.11
Sale Attorney for Plt: RAS Crane & Partners PLLC
U.S BANK TRUST NATIONAL ASSOCIATION NOT IN ITS INDIVIDUAL CAPACITY
BUT SOLEY AS OWNER TRUSTEE FOR RCF 2 ACQUISITION TRUST C/O U.S. BANK
TRUST NATIONAL ASSOCIATION VS. MAUREEN A. PALKO AKA MAUREEN ANN
PALKO, CHRISTOPHER D. PALKO AKA CHRISTOPHER DOUGLAS PALKO, 5 INDIAN
PATH LANE, FEASTERVLLE TREVOSE. MESSUAGE AND TRACT IN THE TOWNSHIP
OF LOWER SOUTHAMPTON.
8 Writ of Execution: 202300439
Receipt Number: 2023 1 07844
From Tax Parcel: 20063189
4/12/2024 Real Debt: $302,399.93
Sale Attorney for Plt: Parker McCay PA
MASTR ASSET BACKED SECURITIES TRUST 2005AB1, MORTGAGE PASS
THROUGH CERTIFICATES, SERIES 2005AB1, U.S. BANK NATIONAL ASSOCIATION,
AS TRUSTEE C/O SPECIALIZED LOAN SERVICING, LLC VS. JENNIFER I. MILLER,
1441 WOODVIEW ROAD, YARDLEY. MESSUAGE AND TRACT IN THE TOWNSHIP OF
LOWER MAKEFIELD.
9 Writ of Execution: 202301316
Receipt Number: 2024 1 01600
From Tax Parcel: 05035101
5/10/2024 Real Debt: $142,660.94
Sale Attorney for Plt: KML Law Group PC
MIDFIRST BANK VS. KARYN HACKER, DAWN PICCIONI, 28 ROCKY POOL LANE,
LEVITTOWN. MESSUAGE AND TRACT IN THE TOWNSHIP OF BRISTOL.
10 Writ of Execution: 202305028
Receipt Number: 2024 1 04038
Tax Parcel: 24004636
Real Debt: $303,550.39
Attorney for Plt: Hill Wallack LLP
WILMINGTON SAVINGS FUND SOCIETY FSB AS TRUSTEE OF STANWICH
MORTGAGE LOAN TRUST F VS. VITTORIO HENRY, 442 HILLCREST AVENUE,
MORRISVILLE. MESSUAGE AND TRACT IN THE BOROUGH OF MORRISVILLE.
4/5/2024 3:30:37 PM Page 2 of 5
County of Bucks Sheriff Real Estate Sales Report 07/12/2024 TO DATE
11 Writ of Execution: 202305101
Receipt Number: 2024 1 04154
Tax Parcel: 36029034003
Real Debt: $379,796.34
Attorney for Plt: RAS Crane & Partners PLLC
NATIONSTAR MORTGAGE LLC VS. ELLIOT HESSELSON IN HIS CAPACITY AS
EXECUTOR OF THE ESTATE OF CHARLES D. CLYMER; DOROTHY JEAN THAYER
AKA DEE JEAN THAYER AKA DOROTHY JEAN CLYMERTHAYER IN HER CAPACITY
AS EXECUTOR OF THE ESTATE OF CHARLES D. CLYMER; CHARLES DANA
CLYMER JR IN HIS CAPACITY AS EXECUTOR OF THE ESTATE OF CHARLES D.
CLYMER; UNKNOWN HEIRS, SUCCESSORS, ASSIGNS AND ALL PERSONS, FIRMS
OR ASSOCIATIONS CLAIMING RIGHT, TITLE OR INTEREST FROM OR UNDER
CHARLES D. CLYMER, 120 YOUNKEN ROAD, QUAKERTOWN. MESSUAGE AND
TRACT IN THE TOWNSHIP OF RICHLAND.
12 Writ of Execution: 202305445
Receipt Number: 2024 1 04153
Tax Parcel: 05027010
Real Debt: $287,552.30
Attorney for Plt: KML Law Group PC
THE BANK OF NEW YORK MELLON FKA THE BANK OF NEW YORK, AS TRUSTEE
FOR THE CERTIFICATE HOLDERS OF THE CWALT INC. ALTERNATIVE LOAN
TRUST 2006OA12 MORTGAGE PASSTHROUGH CERTIFICATES SERIES 2006OA12
VS. THE UNKNOWN HEIRS OF EDWARD JOHN FORREST DECEASED, 3525
ROCKVIEW DRIVE, BRISTOL. MESSUAGE AND TRACT IN THE TOWNSHIP OF
BRISTOL.
13 Writ of Execution: 202305551
Receipt Number: 2024 1 04156
Tax Parcel: 05061296
Real Debt: $219,072.73
Attorney for Plt: RAS Crane & Partners PLLC
U.S. BANK TRUST NATIONAL ASSOCIATION NOT IN ITS INDIVIDUAL CAPACITY
BUT SOLELY AS OWNER TRUSTEE FOR VRMTG ASSET TRUST VS. DANIEL J.
LABBE SR. IN HIS CAPACITY AS HEIR OF MARJORIE WERNER; SANDRA MYERS
AKA SANDRA CARBONE AKA SANDRA CHRISMAN AKA SANDRA DOYLE IN HER
CAPACITY AS HEIR OF MARJORIE WERNER; UNKNONWN HEIRS, SUCCESSORS,
ASSIGNS AND ALL PERSONS, FIRMS, OR ASSOCIATIONS CLAIMING RIGHT, TITLE
OR INTEREST FROM OR UNDER MARJORIE WERNER, 1610 LAKELAND AVENUE,
BRISTOL. MESSUAGE AND TRACT IN THE TOWNSHIP OF BRISTOL.
14 Writ of Execution: 202305797
Receipt Number: 2024 1 04152
Off Tax Parcel: 36022233187
Real Debt: $129,168.66
Attorney for Plt: KML Law Group PC
LAKEVIEW LOAN SERVICING, LLC VS. MATTHEW R. ORR AKA MATTHEW ORR,
187 PRAIRIE COURT, QUAKERTOWN. MESSUAGE AND TRACT IN THE TOWNSHIP
OF RICHLAND.
4/5/2024 3:30:37 PM Page 3 of 5
County of Bucks Sheriff Real Estate Sales Report 07/12/2024 TO DATE
15 Writ of Execution: 202305905
Receipt Number: 2024 1 04278
Tax Parcel: 05013395
Real Debt: $147,058.48
Attorney for Plt: Parker McCay PA
FEDERAL HOME LOAN MORTGAGE CORPORATION AS TRUSTEE FOR THE
BENEFIT OF THE FREDDIE MAC SEASONED CREDIT RISK TRANSFER TRUST,
SERIES 20201 C/O SPECIALIZED SERVICING LLC VS. TODD D. SILCOX, 414 ELM
AVENUE, CROYDON. MESSUAGE AND TRACT IN THE TOWNSHIP OF BRISTOL.
16 Writ of Execution: 202306356
Receipt Number: 2024 1 00171
From Tax Parcel: 15028045003
4/12/2024 Real Debt: $328,139.48
Sale Attorney for Plt: RAS Crane & Partners PLLC
PNC BANK NATIONAL ASSOCIATION VS. MARY OECHSLE, RAYMOND OECHSLE,
827 GREEN STREET, PERKASIE. MESSUAGE AND TRACT IN THE TOWNSHIP OF
HILLTOWN.
17 Writ of Execution: 202306604
Receipt Number: 2024 1 03864
Tax Parcel: 26001123
Real Debt: $374,490.24
Attorney for Plt: Manley Deas Kochalski
PNC BANK NATIONAL ASSOCIATION VS. WILLIAM A. MUZIKA, SR, 66
SELLERSVILLE ROAD, CHALFONT. MESSUAGE AND TRACT IN THE TOWNSHIP OF
NEW BRITAIN.
18 Writ of Execution: 202306907
Receipt Number: 2024 1 04277
Tax Parcel: 13019404
Real Debt: $204,636.36
Attorney for Plt: Leopold & Associates
METROPOLITAN LIFE INSURANCE COMPANY VS. KRISTINA CRABTREE, RONALD
P. CRABTREE, 20 VIEWPOINT LANE, LEVITTOWN. MESSUAGE AND TRACT IN THE
TOWNSHIP OF FALLS.
19 Writ of Execution: 202306955
Receipt Number: 2024 1 04276
Tax Parcel: 13041157
Real Debt: $216,094.50
Attorney for Plt: Leopold & Associates
NEWREZ LLC DBA SHELLPOINT MORTGAGE SERVICING VS. MELISSA
CHAIRMONTE, CHRISTOPHER CHAIRMONTE, 19 PEACHTREE LANE, LEVITTOWN.
MESSUAGE AND TRACT IN THE TOWNSHIP OF FALLS.
20 Writ of Execution: 202307673
Receipt Number: 2024 1 04470
Tax Parcel: 36005039
Real Debt: $113,808.75
Attorney for Plt: Grim Biehn & Thatcher
PENN COMMUNITY BANK FORMERLY KNOWN AS FIRST SAVINGS BANK OF
PERKASIE VS. JENNIFER L. BENNER AKA JENNIFER L. BIBIC, SEAN J. BENNER, 211
RESERVOIR ROAD, QUAKERTOWN. MESSUAGE AND TRACT IN THE TOWNSHIP OF
RICHLAND.
4/5/2024 3:30:37 PM Page 4 of 5
County of Bucks Sheriff Real Estate Sales Report 07/12/2024 TO DATE
21 Writ of Execution: 202307719
Receipt Number: 2024 1 03862
Tax Parcel: 22050424
Real Debt: $350,221.57
Attorney for Plt: McCabe Weisberg & Conway
SAFEGUARD HOMES II, LLC VS. DAVID S. STEIN, ADMINISTRATOR OF THE
ESTATE OF ANNE STEIN AKA ANNE AGNES STEIN, 42 FALCON ROAD, LEVITTOWN.
MESSUAGE AND TRACT IN THE TOWNSHIP OF MIDDLETOWN.
22 Writ of Execution: 202400467
Receipt Number: 2024 1 04151
Tax Parcel: 22060098
Real Debt: $241,826.60
Attorney for Plt: KML Law Group PC
MIDFIRST BANK VS. CHRISTINA JOBES, SHAWN JOBES, 145 JUNIPER DRIVE,
LEVITTOWN. MESSUAGE AND TRACT IN THE TOWNSHIP OF MIDDLETOWN.
4/5/2024 3:30:37 PM Page 5 of 5
Hi @greff
Check the below zip file
NewBlankTask.zip (253.8 KB)
Output:
Let me know if you have any queries.
Regards
Hi @vrdabberu, I ran your xaml and I am weirdly not seeing any output again. I am using StudioX by the way.
Hi @vrdabberu,
Here you go
1st_set.pdf (74.2 KB)
Hi @greff
Check out the zip file. Let me know if you have any more issues.
NewBlankTask.zip (323.2 KB)
Output:
Regards
Hi @vrdabberu, thank you so much! that regex expression seemed to work. Any idea why it is only getting 17/22 parcels though?
Hi @greff
Do you want to get all 22 parcels then try the below regular expression:
(?<=Tax Parcel: )(.*)(?=\nReal Debt|\n\d+\/\d+\/\d+)
Regards