I’m facing the Index out of bounds error while using a Move File activity to move a file from downloads to the process nupkg Data folder. Can anyone help me understand why this might be happening? TIA!
Could you please share the screenshot of your workflow?
- Ensure that the source file path (from the Downloads folder) and the destination file path (to the process nupkg Data folder) are correctly specified.
- Make sure the paths are complete and accurate, including proper file name and extension.
*Check whether the file exists at the source location before attempting to move it. If the file is not found, it can lead to an “Index out of bounds” error.
Cheers!!
Sorry I can’t because that would violate company policy
[quote=“r29, post:4, topic:704451, full:true”]
This is the From path: Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+“\Downloads”)(0).ToString
And To path is simply: Data\InputFiles
Does this look okay?
Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+"\Downloads")(0)
please use a log message or write after this expression and check whether it is having file or not
and also check whether there are any files in the downloads folder
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.