AEP Destinations export to SFTP - 'Can't make directory for path "sftp" under "/" Error | Community
Skip to main content
Level 2
March 24, 2026
Question

AEP Destinations export to SFTP - 'Can't make directory for path "sftp" under "/" Error

  • March 24, 2026
  • 1 reply
  • 19 views

Hi, I’m trying to setup a daily dataflow from AEP to an SFTP using Destinations in AEP. I’ve setup the SFTP destination and have been able to connect to it successfully, but keep getting the following error:

Unable to create directory for path sftp/SFTP_220260324_120519/part-00000-tid-2776579317160816273-5bb6a03a-8b4a-46fc-8fca-d3f38be573b0-1414191-1-c000.json.gz with the parameters flowId=9a432588-4c13-442c-85c0-9b968c07a5c3 datasetId=65aefbff544b412c9f33e273 flowRunId=d9568853-f592-4361-9b08-df20bb1db29f. The error message returned by the destination is Can't make directory for path "sftp" under "/".. Please verify that you have the necessary permission to perform the operation to the destination and the path is correct.

 

We’re aiming to have the file upload to the root folder under the SFTP, and have confirmed that AEP has all of the necessary permissions to read and write the root folder in SFTP, but are still encountering this error. Has anyone encountered a similar issue in the past and resolved it?

1 reply

AmitVishwakarma
Community Advisor
Community Advisor
March 24, 2026

Hi ​@farzaanh 

This error is coming from the SFTP server, not from AEP itself: Can't make directory for path "sftp" under "/"

It means AEP is trying to mkdir /sftp/... on the remote server, but the SFTP user does not have permission to create folders directly under / (system root). In AEP the Folder path is relative to the SFTP user's home directory, not to /.

How to fix it

1. Adjust the Folder path in the SFTP destination

  • Edit your SFTP destination in AEP.
  • In Folder path:
    • To drop files directly in the SFTP account "root" (its home), leave Folder path empty.
    • If you want a subfolder, use just the folder name, e.g. export or outbound
      • export  => okay
      • /export => not okay
      • sftp/export => not okay
    • Save and re‑run the dataflow.

2. Check the SFTP home and permissions

  • Log in with the same SFTP user AEP uses (via WinSCP/ssh, etc.).
  • Confirm:
    • The user lands in the expected home directory.
    • Any subfolder you configured (e.g. export) exists under that home and is writable.

Once the Folder path is relative (no leading /, no extra sftp/ prefix), AEP will create the run-specific subfolders (like SFTP_220260324_...) under the SFTP user's home and the export should succeed.

Amit Vishwakarma - Adobe Commerce Champion 2025 | 16x Adobe certified | 4x Adobe SME