rmorgan
(Rmorgan)
1
Gone away from using absolute paths in my workflows and using relative
On my machine the process works
FROM
"Data\IPAN Credit Note Requests\Input"+in_TransactionItem.SpecificContent(“File”).ToString
TO
"Data\IPAN Credit Note Requests\Output"+in_TransactionItem.SpecificContent(“File”).ToString
However when run on the VM it gives me
System exception.Could not find a part of the path. at Source: Move CSV from Input to Output
meaning it cannot find the file its looking for?
Anil_G
(Anil Gorthi)
2
@rmorgan
Is the input file present did you check manually?
Is it created during run or did you pack it in the package
Cheers
rmorgan
(Rmorgan)
3
its downloaded from a Storage bucket to the location its coming from.
Anil_G
(Anil Gorthi)
4
@rmorgan
Try to check with path exists ..
Looks like may be its downloaded to different location
Use Path.Combine(Environment.currentDirectory,"Data etc folder",file)
Cheers
rmorgan
(Rmorgan)
5
Heres the thing
I have already downloaded the storage file.
But
I re uploaded it to another storage bucket from the location used in the FROM on the move file, so its where it should be
Anil_G
(Anil Gorthi)
6
@rmorgan
To ensure correct path is taken use as given above with environment.currentDirectory
Cheers
@rmorgan
Use File Exists activity to check if the target file is exist on the machine.
Use Check file path to validate if file exist in the folder, see if you can use copy file instead of move file.
Hi @rmorgan
Does this folder directory exists on VM? Have you checked?
It can be the reason that it exists on your local machine but not on the VM.
When you login to the VM, are you able to navigate to the location mentioned?
Take the exact path generated from Studio when debugged and pop that in windows explorer, see if it works or not.