Skip to content

Commit 7ef514c

Browse files
committed
Add info about missing file after creation error
1 parent 9f8f970 commit 7ef514c

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

articles/connectors/connectors-sftp-ssh.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ description: Automate tasks that monitor, create, manage, send, and receive file
44
services: logic-apps
55
ms.suite: integration
66
author: divyaswarnkar
7-
ms.reviewer: estfan, klam, logicappspm
7+
ms.reviewer: estfan, logicappspm
88
ms.topic: article
9-
ms.date: 03/7/2020
9+
ms.date: 04/13/2020
1010
tags: connectors
1111
---
1212

@@ -150,6 +150,16 @@ If your private key is in PuTTY format, which uses the .ppk (PuTTY Private Key)
150150

151151
1. Save the private key file with the `.pem` file name extension.
152152

153+
## Considerations
154+
155+
This section describes known issues about this connector's triggers and actions.
156+
157+
<a name="create-file"></a>
158+
159+
### Create file
160+
161+
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).
162+
153163
<a name="connect"></a>
154164

155165
## Connect to SFTP with SSH
@@ -216,9 +226,29 @@ This trigger starts a logic app workflow when a file is added or changed on an S
216226

217227
<a name="get-content"></a>
218228

219-
### SFTP - SSH action: Get content using path
229+
### SFTP - SSH action: Get file content using path
230+
231+
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.
232+
233+
<a name="troubleshooting-errors"></a>
234+
235+
## Troubleshoot errors
236+
237+
This section describes possible solutions to common errors or problems.
238+
239+
<a name="file-does-not-exist"></a>
240+
241+
### 404 error: "A reference was made to a file or folder which does not exist"
242+
243+
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 this `404` error message:
244+
245+
`'A reference was made to a file or folder which does not exist'`
246+
247+
To skip reading the file's metadata after file creation, follow these steps:
248+
249+
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**.
220250

221-
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.
251+
1. If you need this file metadata later, you can use the **Get file metadata** action.
222252

223253
## Connector reference
224254

0 commit comments

Comments
 (0)