I am trying to do PDF Data extraction for some reasons with PDF I am not able to extract PDF correct so I extracted the desired text to the Text file from there I need to read the text and extract some values (around 5-10 )and assign each of them to variables.
How to approach this scenario? Using string manipulation or substring can anyone help with an example?
Sample data in the file looks like below
Name: Mirta Rodriguez
Address: 9 FLORENTIA ST
GLENFIELD NSW2167
ABN: 79910XXX785
I tried using the above to extract the values from the textile but I am getting null values.(Tried writing it to file ) and got the Object reference not set to an instance of an object.Null exception error
Tried using the Regex tester and saw it shows zero matches.
Once this value is assigned to the collection variable from there If I want to assign to the variable I need to use foreach and assign to each variable right ?
@Pradeep_Shiv Thanks for the ton for the above Regex samples, understood it quickly and tried using it for the rest of my fields and all worked fine except a few.
Sure, one issue my text file has values that are a combination of two variables. VarA + VarB
My file looks like something below.
Here I am trying to get a driver’s license, but It has a continuation of one more header which is the start of the second variable value .
Name: Mirta Rodriguez
Address: 9 FLORENTIA ST
GLENFIELD NSW2167
ABN: 79910196785
Mobile No: 0413406671
Personal Email: mrcoaching26@gmail.com
Date of Birth: 16/10/1962
Driver’s Licence: 3184dsAccount No: 13287726
Introducing Dealer: Peter WarTen Toyota
Type: Toyota Access Business Vehicle Loan
Payment Required: $1,245.50
Contract Inception Date: 24 December 2018
Date Last Paid: 1 July 2020 Amount Last Paid: $410.25
Next Due Date: 22 October 2020 Next Payment Amount: $410.25
Arrears F/Fee Next Due: Arrears F/Fee Amount: $25.00
Instructions Issued Before?: No
Mortgaged Vehicle: 2018 TOYOTA YARIS
Colour: WHITE
Rego No: DZW63Q
Engine No: 2NZ8751771
VIN: JTDKW3D3801001503
Repo Allowed: Yes
Payout Amount: $17,722.06, available to 1 October 2020
Default Notice Dated: 7 August 2020
Expired On: 10 September 2020
Amount Due on Notice: $785.25.
any way while combining my second variable it will create in new line instead?
RemoteException wrapping UiPath.Core.ElementOperationException: Error HRESULT E_FAIL has been returned from a call to a COM component. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
at UiPath.UiNodeClass.Set(String bstrAttr, Object vValue)
at UiPath.Core.UiElement.Set(String attribute, Object value)
— End of inner exception stack trace —
Yesterday did the same code and got no errors ,this one was coming in the newly created code.