cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

CSV file includes quotes

klandry
Deputy Chef II
Deputy Chef II

I am creating CSV files (technically TAB delimited) using Compose CSV. I am using a List for the source.
I have the option to Force Quotes Set to NO, yet for any fields where I am not supplying a value (as they are not required), double quotes are being inserted.

This does not seem to be correct to me as I should be able to have no values between delimiters without Quotes.
eg:    1 000[TAB]102095[TAB][TAB]DP[TAB][TAB]March

Instead, I am getting this:
1000[TAB]102095[TAB]""[TAB]DP[TAB]""[TAB]March

1 ACCEPTED SOLUTION

shivakumara
Deputy Chef III
Deputy Chef III

Hi @klandry ,

We have found a solution to the problem you are having. The problem comes from the array values โ€‹โ€‹you pass to create the CSV.
1. If the field value is empty, ""(double Quote) problem occurs because the empty value is called "" (double quotes).
 In this case, we operate differently at the source or target level.

โ€‹Example: 1000 NoValue 102095 NoValue DP

In this case you can use Value.present?? Value: skip

Here is an example of a recipe screenshotPlease check it out and let me know if you need help..
CSV data_1.pngCSV data_2.pngCSV data_3.pngCSV data_4.png

View solution in original post

5 REPLIES 5

Thank you for the confirmation @klandry  and have a good day.