Skip to main content

Configure Flat File External Source Settings

DataSync allows you to connect to local and remote CSV resources, including cloud storage providers and file servers. For each source type, you set the URI parameter to the CSV resource location, along with any required authentication properties.

Supported connection types

Connection typeDescription
Basic AuthenticationConnect to local folders, HTTP/HTTPS streams, SharePoint, FTP/FTPS, or SFTP.
Amazon S3Connect to Amazon Simple Storage Service (S3) buckets and folders.
Azure StorageConnect to Azure Blob Storage or Azure Data Lake Store (Gen1/Gen2).
Oracle Cloud StorageConnect to Oracle Cloud Storage buckets and folders.
WasabiConnect to Wasabi cloud object storage.

Basic Authentication

Local file (URI format)

PropertyRequirement
URIRequired — local folder path or file URI
  1. Set URI to the folder containing CSV files.
  2. Combine multiple CSVs with the same schema:
    URI=C:\folder; AggregateFiles=True;
  3. List each file as a separate table:
    URI=C:\folder; AggregateFiles=False;

HTTP/HTTPS

PropertyRequirement
URIRequired — http://remoteStream or https://remoteStream
UserOptional
PasswordOptional
AuthSchemeOptional
  1. Set URI to the HTTP or HTTPS URL of the CSV:
    URI=http://www.host1.com/streamname1;
  2. Add AuthScheme and credentials if necessary. You can also set CustomHeaders or CustomUrlParams.
  3. Query the streamed table:
    SELECT * FROM streamedtable;

SharePoint Online SOAP

PropertyRequirement
URIRequired — sp://remotePath
UserRequired
PasswordRequired
  1. Set URI to the document library containing the CSV files.
  2. Specify User, Password, and the full SharepointUrl to authenticate.
    URI=sp://Documents/folder1; User=user1; Password=password1; SharepointUrl=https://subdomain.sharepoint.com;

FTP/FTPS

PropertyRequirement
URIRequired — ftp://server:port/remotePath or ftps://server:port/remotepath
UserRequired
PasswordRequired
  1. Set URI to the FTP/FTPS server and the folder path.
  2. Provide User and Password for authentication:
    URI=ftps://localhost:990/folder1; User=user1; Password=password1;

SFTP

PropertyRequirement
URIRequired — sftp://server:port/remotePath
UserOptional
PasswordOptional
  1. Set URI to the SFTP server and folder location.
  2. Include User and Password if authentication is required:
    URI=sftp://server:22/folder1; User=user1; Password=password1;

Amazon S3

PropertyRequirement
URIRequired — s3://bucket/folder/
AWSAccessKeyRequired — your AWS Access Key (user name)
AWSSecretKeyRequired — your AWS Secret Key
AWSRegionOptional
  1. Set URI to the S3 bucket and folder location:
    URI=s3://bucket1/folder1;
  2. Provide AWSAccessKey and AWSSecretKey for authentication:
    URI=s3://bucket1/folder1; AWSAccessKey=token1; AWSSecretKey=secret1; AWSRegion=OHIO;
  3. Optionally set AWSRegion to specify the region for the bucket.

Example — connecting to S3-compatible services

You can also connect to S3-compatible storage services by setting a custom base URL in the connection properties. Here is an example base URL settings

URL=http://s3.%region%.myservice.com
Region=region-1

With these settings, DataSync will generate request URLs in one of the following formats:

UseVirtualHostingGenerated URL format
Falsehttps://s3.region-1.myservice.com/bucket/...
Truehttps://bucket.s3.region-1.myservice.com/...

Azure Storage

Azure Blob Storage

PropertyRequirement
URIRequired — azureblob://mycontainer/myblob/
AzureAccountRequired
AzureAccessKeyRequired — your Access Key (user name)
  1. Set URI to the container and blob name.
  2. Provide AzureAccount and AzureAccessKey for authentication:
    URI=azureblob://mycontainer/myblob/; AzureAccount=myAccount; AzureAccessKey=myKey;

Azure Data Lake Store Gen 1

PropertyRequirement
URIRequired — adl://remotePath or adl://Account.azuredatalakestore.net@remotePath
InitiateOAuthRequired
OAuthClientIdOptional
OAuthClientSecretOptional
OAuthAccessTokenOptional
AuthSchemeRequired
AzureAccountRequired
  1. Set URI to the Gen1 Data Lake path.
  2. Configure OAuth parameters if required.
  3. Specify AzureAccount and required authentication properties.

Azure Data Lake Store Gen 2

PropertyRequirement
URIRequired — abfs://myfilesystem/remotePath
AzureAccountRequired
AzureAccessKeyRequired — your Access Key (user name)
  1. Set URI to the file system and folder containing your CSV files:
    URI=abfs://myfilesystem/folder1; AzureAccount=myAccount; AzureAccessKey=myKey;
    URI=abfss://myfilesystem/folder1; AzureAccount=myAccount; AzureAccessKey=myKey;

Azure Data Lake Store Gen2 with SSL

PropertyRequirement
URIRequired — abfss://myfilesystem/remotePath
AzureAccountRequired
AzureAccessKeyRequired — your Access Key (user name)
  1. Set URI to the file system and folder location using the secure abfss:// protocol.
  2. Provide AzureAccount and AzureAccessKey for authentication.

Oracle Cloud Storage

PropertyRequirement
URIRequired — os://bucket/remotePath
AccessKeyRequired — your Access Key (user name)
SecretKeyRequired — your Secret Key
RegionOptional
OracleNamespaceRequired
  1. Set URI to the Oracle Cloud bucket and folder.
  2. Provide AccessKey, SecretKey, and OracleNamespace for authentication.
  3. Optionally specify Region:
    URI=os://bucket/remotePath/; AccessKey=token1; SecretKey=secret1; OracleNamespace=myNamespace; Region=us-ashburn-1;

Wasabi

PropertyRequirement
URIRequired — wasabi://bucket1/remotePath
AccessKeyRequired — your Access Key (user name)
SecretKeyRequired — your Secret Key
RegionOptional
  1. Set URI to the Wasabi bucket and folder.
  2. Provide AWSAccessKey and AWSSecretKey for authentication.
  3. Optionally specify AWSRegion:
    URI=wasabi://bucket1/folder1; AWSAccessKey=token1; AWSSecretKey=secret1; AWSRegion=OHIO;