You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/connectors/connectors-sftp-ssh.md
+32-4Lines changed: 32 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ description: Automate tasks that monitor, create, manage, send, and receive file
4
4
services: logic-apps
5
5
ms.suite: integration
6
6
author: divyaswarnkar
7
-
ms.reviewer: estfan, klam, logicappspm
7
+
ms.reviewer: estfan, logicappspm
8
8
ms.topic: article
9
-
ms.date: 03/7/2020
9
+
ms.date: 04/13/2020
10
10
tags: connectors
11
11
---
12
12
@@ -147,6 +147,16 @@ If your private key is in PuTTY format, which uses the .ppk (PuTTY Private Key)
147
147
148
148
1. Save the private key file with the `.pem` file name extension.
149
149
150
+
## Considerations
151
+
152
+
This section describes considerations to review for this connector's triggers and actions.
153
+
154
+
<aname="create-file"></a>
155
+
156
+
### Create file
157
+
158
+
To create a file on your SFTP server, you can use the SFTP-SSH **Create file** action. When this action creates the file, the Logic Apps service also automatically calls your SFTP server to get the file's metadata. However, if you move the newly created file before the Logic Apps service can make the call to get the metadata, you get a `404` error message, `'A reference was made to a file or folder which does not exist'`. To skip reading the file's metadata after file creation, follow the steps to [add and set the **Get all file metadata** property to **No**](#file-does-not-exist).
159
+
150
160
<aname="connect"></a>
151
161
152
162
## Connect to SFTP with SSH
@@ -213,9 +223,27 @@ This trigger starts a logic app workflow when a file is added or changed on an S
213
223
214
224
<aname="get-content"></a>
215
225
216
-
### SFTP - SSH action: Get content using path
226
+
### SFTP - SSH action: Get file content using path
227
+
228
+
This action gets the content from a file on an SFTP server by specifying the file path. So for example, you can add the trigger from the previous example and a condition that the file's content must meet. If the condition is true, the action that gets the content can run.
229
+
230
+
<aname="troubleshooting-errors"></a>
231
+
232
+
## Troubleshoot errors
233
+
234
+
This section describes possible solutions to common errors or problems.
235
+
236
+
<aname="file-does-not-exist"></a>
237
+
238
+
### 404 error: "A reference was made to a file or folder which does not exist"
239
+
240
+
This error can happen when your logic app creates a new file on your SFTP server through the SFTP-SSH **Create file** action, but the newly created file is then immediately moved before the Logic Apps service can get the file's metadata. When your logic app runs the **Create file** action, the Logic Apps service also automatically calls your SFTP server to get the file's metadata. However, if the file is moved, the Logic Apps service can no longer find the file so you get the `404` error message.
241
+
242
+
If you can't avoid or delay moving the file, you can skip reading the file's metadata after file creation instead by following these steps:
243
+
244
+
1. In the **Create file** action, open the **Add new parameter** list, select the **Get all file metadata** property, and set the value to **No**.
217
245
218
-
This action gets the content from a file on an SFTP server. So for example, you can add the trigger from the previous example and a condition that the file's content must meet. If the condition is true, the action that gets the content can run.
246
+
1. If you need this file metadata later, you can use the **Get file metadata**action.
0 commit comments