SFTP List Directories - What's the correct syntax for Directories
回答済みI'm trying to use the SFTP command "List Directories" for a specific folder. When I use the wildcard "*" I'm able to connect to the directory but when I use a filepath to a more specific folder I get the "Directory not found" error. Am I using the correct syntax for "Directory" here?
Also, when I use the full filepath --- \WorkivaUnum\Finance\Out\Annual Statutory Reporting\Test File.csv --- I get the same error.
Thanks!
Ryan
-
Hi Ryan,
Thanks for reaching out! I spoke with some of our experts and they mentioned that your Full Path is missing a "\" Please let me know if there is anything else we can help with!
Thanks!
0Where should I place the missing "\"? I've tried a couple different versions of this but I'm still getting errors.
0So in the Full Path screensnip you sent, there are two "\" but the full filepath you sent only has one "\" at the beginning. Let me know if that changes anything!
Thanks!
0Gotcha, sorry these were inconsistent. I've tried a lot of different iterations of directory name. This does not fix the issue.
Is there any place within Workiva/Wdata to see what directory SFTP is connected to?
Similarly, using the "SFTP Connection - Get" command what format does the "Destination" have if I want to send the contents of an uploaded CSV file to a Workiva spreadsheet?
Thanks!
0Hi Ryan, sometimes it is possible that the user's home directory is not what you're expecting if someone else set it up. A good way to figure out the location path is to start at the beginning and work your way toward the file. What I mean by this is to configure the List Directory command to show everything at the root directory by entering just a period in the Directory field so you can establish your starting point. Screenshot example is below:
Publish and run the chain to see the output in the LOGS tab. From here you should be able to see any subdirectories available and start to build your path. For example you may see the directory 'WorkivaUnum'. Modify the List Directory command to use this path such as "./WorkivaUnum/." and repeat running the Chain until you work your way to the file your after.
For the Get command, if you're using CloudRunner, a period is sufficient for the Destination field.
0サインインしてコメントを残してください。
コメント
5件のコメント