Move Files: Could not find file

Hi.
I want to move all pdf files that are in the “Faturas” folder to the Processed Invoices folder, but I have the folowing issues:
Move File: Could not find file…
Main: Could not find file…
Move: Could not find file
Error MoveFile 11abril.docx (1.3 MB)

Thanks

Hey @Sophia1

As I can see you have a variable i.e, strDocPath in which you have stored source files folder path and a second variable as ProcessedInvoice which stores Destination folder path.

And you are using both the variables directly in Move file activity!

Solution:

Take a Assign activity above Move File activity:

arr_PDF_Files = Directory.GetFiles(strDocPath,"*.pdf")

Note: arr_PDF_Files is Array of String.

Using Above assign you will get all the file paths of PDFs in a array of String.

Then take a foreach activity put arr_PDF_Files

Then in Body, Put Move File Activity:

In From: CurrentItem

To: ProcessedInvoice

That’s It!

Now all files will be moved to destination folder!

Cheers!

Regards,
Ajay Mishra

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