I want to extract data from multiple PDF files and store into excel sheet using Regular expression and string operations. I had received this workflow Main.xaml (12.6 KB) from @ashley11 . But, if the PDF filepath is changed, it’s not working. Now, I just want to execute it for multiple PDF PDF Samples.zip (815.5 KB) stored in a folder and extract the data to an Excel sheet.Out_Sample.xlsx (7.9 KB)
Above expression will read all PDF files from that folder and will give output as array of string. And then use For Each loop Activity to itreate one by one PDF file.
Could you please run the workflow in Debug mode and check exactly where it is failing.
And also put one Write Line or Message Box Activity after each Assign and try to print the value. By using these we can easily identify where is the issue.
The problem is that Regex expression returns nothing, hence the error.
Look at this example (the text bellow is the text we get when we use Read PDF Activity):
Problem is this :
2nd Floor Invoice No.
21289A
It is in Next Line, so this Regex won’t fetch this informations.