<@U04S8PLJWMT> With the SFTP source connector, how...
# ask-ai
a
@kapa.ai With the SFTP source connector, how can I sync all csv files within a folder ? One file will be created each day and need to be synced
k
To sync all CSV files within a folder using the SFTP source connector, you should: 1. Set the Folder Path: In the connector configuration, specify the folder path where your CSV files are stored. For example, if your files are in
/logs/2022
, set the Folder Path to
/logs/2022
. This ensures only files in that directory are considered for syncing. 2. Set the File Types: Ensure the File Types field includes
csv
(the default is
csv,json
). 3. (Optional) Use File Pattern: If you want to further filter files (e.g., only files matching a certain naming convention), you can use the File Pattern field with a regular expression. For example, to match files like
log-YYYYMMDD.csv
, use a pattern like
log-([0-9]{4})([0-9]{2})([0-9]{2})
. With this setup, each new CSV file created in the specified folder will be picked up and synced by Airbyte during each sync run. If you leave the File Pattern blank, all CSV files in the folder will be synced automatically. Note: The SFTP source connector supports only the "Full Refresh - Overwrite" sync mode, which means each sync will overwrite the previously synced data in your destination with the current files from the folder. Incremental sync is not supported for this connector, so all files matching your criteria will be re-synced each time, not just new filesĀ [Supported sync modes](https://docs.airbyte.com/integrations/sources/sftp#supported-sync-modes). For more details, see the official documentation: [SFTP Optional Fields](https://docs.airbyte.com/integrations/sources/sftp#optional-fields).
a
@kapa.ai ERROR DefaultDispatcher-worker-1 i.a.c.l.t.DefaultDestinationTaskLauncher$WrappedTask(execute):160 Caught exception in task io.airbyte.cdk.load.task.internal.DefaultInputConsumerTask@673e1df2 io.airbyte.cdk.TransientErrorException: Input was fully read, but some streams did not receive a terminal stream status message. This likely indicates an error in the source or platform. Streams without a status message: [PAYZEN.JT_ACM_HABITAT_53399692_250729.csv, PAYZEN.JT_ACM_HABITAT_53399692_250730.csv, PAYZEN.JT_ACM_HABITAT_53399692_250801.csv, PAYZEN.JT_ACM_HABITAT_53399692_250802.csv, PAYZEN.JT_ACM_HABITAT_53399692_250728.csv, PAYZEN.JT_ACM_HABITAT_53399692_250803.csv, PAYZEN.JT_ACM_HABITAT_53399692_250726.csv, PAYZEN.JT_ACM_HABITAT_53399692_250727.csv, PAYZEN.JT_ACM_HABITAT_53399692_250731.csv] at io.airbyte.cdk.load.state.DefaultSyncManager.markInputConsumed(SyncManager.kt:145) ~[bulk-cdk-core-load-0.322.jar:?] at io.airbyte.cdk.load.task.internal.DefaultInputConsumerTask.execute(InputConsumerTask.kt:194) ~[bulk-cdk-core-load-0.322.jar:?] at io.airbyte.cdk.load.task.DefaultDestinationTaskLauncher$WrappedTask.execute(DestinationTaskLauncher.kt:155) [bulk-cdk-core-load-0.322.jar:?] at io.airbyte.cdk.load.task.TaskScopeProvider$launch$job$1.invokeSuspend(TaskScopeProvider.kt:35) [bulk-cdk-core-load-0.322.jar:?] at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) [kotlin-stdlib-2.0.21.jar:2.0.21-release-482] at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707) [kotlinx-coroutines-core-jvm-1.9.0.jar:?] Stack Trace: io.airbyte.cdk.TransientErrorException: Input was fully read, but some streams did not receive a terminal stream status message. This likely indicates an error in the source or platform. Streams without a status message: [PAYZEN.JT_ACM_HABITAT_53399692_250729.csv, PAYZEN.JT_ACM_HABITAT_53399692_250730.csv, PAYZEN.JT_ACM_HABITAT_53399692_250801.csv, PAYZEN.JT_ACM_HABITAT_53399692_250802.csv, PAYZEN.JT_ACM_HABITAT_53399692_250728.csv, PAYZEN.JT_ACM_HABITAT_53399692_250803.csv, PAYZEN.JT_ACM_HABITAT_53399692_250726.csv, PAYZEN.JT_ACM_HABITAT_53399692_250727.csv, PAYZEN.JT_ACM_HABITAT_53399692_250731.csv] at io.airbyte.cdk.load.state.DefaultSyncManager.markInputConsumed(SyncManager.kt:145) at io.airbyte.cdk.load.task.internal.DefaultInputConsumerTask.execute(InputConsumerTask.kt:194) at io.airbyte.cdk.load.task.DefaultDestinationTaskLauncher$WrappedTask.execute(DestinationTaskLauncher.kt:155) at io.airbyte.cdk.load.task.TaskScopeProvider$launch$job$1.invokeSuspend(TaskScopeProvider.kt:35) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)
k
Sorry @Anthony, I'm currently experiencing some technical difficulties. Please try again in a few minutes. If this issue persists, please reach out to the administrators of this Slack workspace.