Error when reading multiple PDF files

Hey,
I’m trying to read multiple pdfs and extract the same information from each file. But, when I’m trying to loop through the files, the following error pops up. Could anyone tell me how to overcome that?
Thank you!

pdf%20error|690x388

@Amrita_Narayan

Could you please show me how you passed file path in Assign activity and so that we can check and help you.

What is the type of the ListOfPdfs variable?


ListOfPdfs is of the type Array[String].
And the path in the format- Directory.GetFiles(“‪C:\Users\ADMIN\Desktop\InvoicesPDF”, “*.pdf”)

Add an “” after the InvoicesPDF and try
Directory.GetFiles(“‪C:\Users\ADMIN\Desktop\InvoicesPDF\”, “*.pdf”)

There was no error with “” but the moment i put in “.*pdf”, the same error pops!

@Amrita_Narayan
try this
System.IO.Directory.GetFiles(“YourPath”,"*.pdf")

it is “*.pdf”
i have tried now im getting the output

That didn’t work either.

you get any exception?

image

Try thisMain.xaml (5.2 KB)


Same thing yet.

For me its working fine please checkMain.xaml (5.3 KB)

It worked for me too.
Thank you!

1 Like

Ok Click on solution icon and close

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.