# Checking whether sending via SFTP is successful

{% hint style="warning" %}
In the event of an invalid CSV file upload or failure to send, we will promptly notify you via email about the failure and its specific cause.
{% endhint %}

### Successful upload of file to Postman via SFTP

Users will be notified via email upon successful uploads of their file to Postman via SFTP.

{% code title="Content of Notification Email" %}
```markup
{"isValid":true,"batchId":"<YOUR_BATCH_NUMBER>"}
```
{% endcode %}

<figure><img src="https://862051585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl3mC1ibWq8HG4BKl4qlL%2Fuploads%2F2klcTk2liRdG8KVucd4J%2FScreenshot%202024-08-20%20at%202.24.11%20PM.png?alt=media&#x26;token=0ec216e1-6d73-4b9f-a077-ba5362419bce" alt=""><figcaption><p>Notification email to inform users that file has been successfully uploaded on Postman</p></figcaption></figure>

### Messages that have failed to be uploaded to Postman via SFTP

Users will be notified via email for all failed file uploads to Postman via SFTP

{% code title="Content of Notification Emails" overflow="wrap" %}
```markup
{"isValid":false,"reportURL":"<https://files.postman.gov.sg/validation-reports/<YOUR_CAMPAIGN_ID>/<YOUR_VALIDATION_REPORT>","numRows":<ROWS_WITH_ERRORS>,"numErrors":<NUMBER_OF_ERRORS>,"fileHasAvoidableExpensiveCharacter":<TRUE/FALSE>,"fileHasUnicode":<TRUE/FALSE>}
```
{% endcode %}

<figure><img src="https://862051585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl3mC1ibWq8HG4BKl4qlL%2Fuploads%2FBM91mJQDJqGRonPofPEz%2FScreenshot%202024-08-20%20at%202.32.58%20PM.png?alt=media&#x26;token=da6209da-341c-40d5-a7d4-cad8406b2b16" alt=""><figcaption><p>Notification email to inform users that file has failed to upload on Postman</p></figcaption></figure>

All emails for failed file uploads will come with a URL to download your file with an additional column,  `Error Reason` .

This allows you to identify errors in your file to rectify before re-uploading the file.&#x20;

<figure><img src="https://862051585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl3mC1ibWq8HG4BKl4qlL%2Fuploads%2F0Ue1IgRIQFDcXfn6SnoH%2FScreenshot%202024-08-20%20at%203.12.30%20PM.png?alt=media&#x26;token=56840fce-c148-46fc-9726-2e375b1d5e7c" alt=""><figcaption><p>Postman's validation report with Error Reason</p></figcaption></figure>

### When to contact the Postman team?

If the email notification you receive comes with a support ID informing you to contact us, do fill up our [contact us form](https://form.gov.sg/657025a2d2bd350012c82eb0) for us to get in touch with you.

{% code title="Content of Notification Email" overflow="wrap" %}
```markup
Your SFTP file upload for <YOUR_CSV_FILE.csv> for <YOUR_CAMPAIGN_ID> failed. Please contact us with the following support ID:<YOUR_SUPPORT_ID_TICKET>.
```
{% endcode %}

<figure><img src="https://862051585-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl3mC1ibWq8HG4BKl4qlL%2Fuploads%2FtwL3TZYJx8PQIallgB18%2FScreenshot%202024-08-23%20at%204.09.30%20PM.png?alt=media&#x26;token=0aa31609-0cc9-4d39-a442-7c5634b0db8d" alt=""><figcaption></figcaption></figure>

### Message Status

Successful upload of your file to Postman does not mean that your message was successfully sent to the recipient. You will still need to check for the [messages' `latestStatus`](../endpoints-for-api-users/the-message-object).

To check the statuses of your messages, please refer to the admin portal.&#x20;

#### Other useful information

1. If your SFTP file is not processed due to an error, the relevant SMS messages will not be created in the Postman server, and thus _will not_ be reflected in that particular campaign.
2. You will receive an **email response per file upload**, to the email address which you specified in your SFTP form submission. This email will inform you if the messages were a success or failure.
3. You will only be able to specify 1 email address per SFTP form submission.

