Solved
Forum Discussion
j_angelevski
4 years agoContributor III
Hi @NAl,
You can write a new row in the file ( I suppose you want “append” ) but that’s supported only for FTP, FTPS and SFTP file protocols.
If you want to replicate this sort of logic, you can follow these steps:
- Create empty csv file ( not required )
- Read this csv file at the start of the pipeline even if it’s empty.
- Read the new data from the other source.
- Use a “Gate” snap to combine both inputs.
- Concatenate the input that contains the new data with the old data with a Mapper with the following expression:
$old_data.concat($new_data)
- Split the data with the newly concatenated data.
- Overwrite the initial file.
In this case, your new data will be always appended.
The pipeline should look something like this:
@ddellsperger Thanks a lot. Found it.
Related Content
- 2 years ago
- 4 years ago