Write to ETL source.

Parameters:
See dedicated page for more information.
See dedicated page for more information.
writeToSource takes a list of local file paths from the current project workspace and uploads them to a Source you select in the UI. Optionally, you can specify the remote object name for each file and capture the upload status. Use this when a pipeline’s outputs should become durable, shareable inputs for other pipelines/projects.
Publish files produced by your pipeline (e.g., under
out/) into a configured Source so they can be reused as long-term inputs by other projects or teams.
out/myfile.csv).sources/@... paths here; those represent remote sources, not local files.reports/myfile.csv).Minimal example (CSV):
C1,remoteName
out/example.csv,doctestexample.csv
Tip: If you don’t have a file yet, create one upstream with
writeCSV(e.g.,out/example.csv), then pass its path to writeToSource.
remoteName (or derived name)._S3_Status = OK./out/ folder; it publishes them to the remote Source.Where to verify: In your platform’s Sources browser for the chosen Source. Uploaded files will not appear under your project’s local sources/ directory.
Create a local file (if needed)
Upstream: InlineTable → writeCSV with Output path out/example.csv.
Provide the driving table (list of files to publish)
Example via InlineTable:
C1,remoteName
out/example.csv,doctestexample.csv
Configure writeToSource
Files path column → C1Names of files written to source → remoteName (optional but recommended)Source name → pick a valid, authorized Source (from the dropdown)Debug information level → basic (use verbose only when diagnosing)Run the pipeline (not preview)
Preview may show simulated OK, but no remote write occurs in preview.
After a full run, check:
_S3_Status = OKdoctestexample.csvInlineTable (sample rows)
→ writeCSV (out/example.csv)
→ InlineTable (C1,remoteName listing local → remote)
→ writeToSource (publish to Source)

Upload succeeds in preview but file not in Source
Preview mode is non-persistent for side-effect actions. Run the full pipeline.
SignatureDoesNotMatch (AWS)
The selected Source’s credentials/region/endpoint are mismatched or clock skewed. Check:
Overwrites or clashes
Use unique remoteName values (include a timestamp or iteration counter when looping).
remoteName for traceability.loopPipeline to publish outputs per iteration using ${gpcounter} or ${runTag} in remoteName.