Separate with multiple characters in data loading | Community
Skip to main content
Level 2
June 28, 2022
Solved

Separate with multiple characters in data loading

  • June 28, 2022
  • 1 reply
  • 982 views

Hello, we are going to receive a new file to adobe campaign. But when I try to prepare the data loading I have difficulties on how to separate the columns as there are two different characters separating those.

It looks like this raw:

 

And I add this to the node and it looks fine in the node.

 

 

But when I run the workflow I still get the semicolons in the table:

 

How can I manage this in the best way?

 

Best regards, Martin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by costa_n11

Hi @martinviking 

You are probably hitting a very unusual scenario on that one as it's very rare to have 2 digit separators in file and the product seems to not support it very well......

You could ask the file provider to supply a file with a single digit separator. I found out that pipe | works in most cases.... If a column can potentially hold the pipe (|) character within its value, you will need to use a Double Quote as String separator, meaning that the file will look like the following

"column1"|""column2"|"column3"|"column4"Etc....

"aString"|ANumber|"AnotherString"|"AStringContainingPipe|"etc....

 

If the file provider can't change its format, you might have to use the trick already mentioned by @_manoj_kumar_ and you would ignore every 2nd column... You would have to extra test and I will strongly suggest to use Double Quote String delimiter to avoid any issues... and as you're at the edge of the product behaviour, you might still have hiccups from time to time... Having a single digit separator will be far more sfer for long term stable solution.

Thanks

Denis

 

1 reply

Manoj_Kumar
Community Advisor
Community Advisor
June 29, 2022

Hello @martinviking 

 

Remove the semicolon checkbox and the add the separator in the other box like this:

 

Manoj  | https://themartech.pro
Level 2
June 29, 2022

Hi, when I do this it creates more column headers than it sould do.

 

 

costa_n11Adobe EmployeeAccepted solution
Adobe Employee
June 29, 2022

Hi @martinviking 

You are probably hitting a very unusual scenario on that one as it's very rare to have 2 digit separators in file and the product seems to not support it very well......

You could ask the file provider to supply a file with a single digit separator. I found out that pipe | works in most cases.... If a column can potentially hold the pipe (|) character within its value, you will need to use a Double Quote as String separator, meaning that the file will look like the following

"column1"|""column2"|"column3"|"column4"Etc....

"aString"|ANumber|"AnotherString"|"AStringContainingPipe|"etc....

 

If the file provider can't change its format, you might have to use the trick already mentioned by @_manoj_kumar_ and you would ignore every 2nd column... You would have to extra test and I will strongly suggest to use Double Quote String delimiter to avoid any issues... and as you're at the edge of the product behaviour, you might still have hiccups from time to time... Having a single digit separator will be far more sfer for long term stable solution.

Thanks

Denis