Forum Discussion
Hello SL12345,
Please refer to the attached sample pipeline, and let me know if this helps you!
Regards,
Aleksandar.
Looks good but question .... in my example - one row has more fields than another row
Is it possible to "connect"/export two lines into one file but without empty field at the and of shorter row?
(Mercedes is shorter and CSV formatter creates last empty field) instead of this:
"Mercedes";"6658";"TypeS";"2022";""
"Audi";"5558";"TypeA8";"2022";"Diesel"
get This
"Mercedes";"6658";"TypeS";"2022";
"Audi";"5558";"TypeA8";"2022";"Diesel"
Thank you
- Aleksandar_A2 years agoContributor III
Try with this one.
- SL123452 years agoNew Contributor III
This works for my example really well 🙂
Sorry but last
- SL123452 years agoNew Contributor III
Hi Alexandar, curious, if scenatio below is possible to do in snaplogic:
Scenario first row has fixed length 10 fields"Audi";"5558";"TypeA8";"2022";"Diesel";"";test1;"";"";"Germany";
Second row has 5
"Mercedes";"";"TypeS";"2022";"India";
there can be empty space in both in first row and in second row as well. Is it possible instead of this:
"Audi";"5558";"TypeA8";"2022";"Diesel";"";test1;"";"";"Germany";
"Mercedes";"";"TypeS";"2022";"India";"";"";"";"";"";get this? (get rid of empty fields(from field 6 to field 10)
"Audi";"5558";"TypeA8";"2022";"Diesel";"";test1;"";"";"Germany";
"Mercedes";"";"TypeS";"2022";"India";thank you
- Aleksandar_A2 years agoContributor III
Hello SL12345,
Could you please try with the following sample pipeline?
In the Map - Fields Snap expression we have a filter that filters out the empty values.
Let me know if this helps you.
Regards,
Aleksandar.