I have a process where I have to find the “Total” amount in the “Pad” column of a PDF. I have the company number stored as a variable. The company number (underlined in red) is in the first column and the total amount is in the 3rd column. The total amount (circled in red) is always one row below the company number. Sometimes however, there can be several lines for each company and sometimes there is only one. Can someone please help me solve this? I’m totally stumped.
Thank you @msan. I still don’t quite understand what you mean. Can you please attach a process where you’re able to get it to work? You can just hardcode the Company number variable to 420 and I should be able to figure it out from there.
Thank you @msan. This is definitly past my current skillset. I’m getting an error at the end:
Validation Error: compiler error(s) encountered processing expression “IsNumeric(fields(CUSTOMER_IDX))”.
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class. FindTotalInPdf.xaml
That’s strange: I ran it without any problem before sharing it. Could you please click on the “Analyse File” button in the rubbon? Sometimes, it fixes Studio’s bad temper.
Did you tried it with another excel file?
I just downloaded then run it, got expected warning about unknonw Read PDF Text activity, installed UiPath.PDF.Activities package, run it again, had the wrong path to Excel, copied the file and finally got expected result.
I tried to analyze the file but still get the warning. I updated the PDF location to a location my PC but that’s the only thing I have changed. FindTotalInPdf_RG.xaml (12.1 KB)
@msan hopefully you can help me with one last thing. I have put everything from your process into my existing file but I can’t figure out one last piece.
At the beginning of my process I read an Excel file and store as a DT. One of the fields stored is the company number. For this example, I’ll use company 416. When I read the PDF I am getting the Total for each company in the PD.
I only need the total for the current company I’m dealing with (in this case the total for company 416 is 4,550.00.
I’ve been trying for hours to find a way to filter that but I haven’t been able to. Do you know what I’m missing? The section of the process is the sequence named “PAD.” Oper_FS No Commission V2.xaml (144.9 KB)
Can you please put the activity where it needs to go in my file and reattach? Even I should be able to get it corrected at that point Oper_FS No Commission V2.xaml (145.8 KB)