Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

A field is missing a closing quote

Shaaz
9 - Comet

Hi Team,

 

I've the data like below and I'm using below input tool configuration to read the data since it has a missing closing quote.

Shabaz_0-1656312110153.png

Shabaz_1-1656312195788.png

 

and then I'm using Text to columns to split into multiple columns basis (|) as delimiter and using Dynamic rename to get the column names.

 

Case1: If I use below config for Text to column tool, the data point (Row1 and Row2) are fine but Row 3 is giving incorrect values

Shabaz_2-1656312275649.png

Shabaz_3-1656312389141.png

 

Case2: if I use below config for Text to Columns, the data point (Row1 and Row4) are fine but Row 3 is giving incorrect values

Shabaz_4-1656312540363.pngShabaz_5-1656312568638.png

 

Can you please suggest how we can handle both the cases together since the dataset is one.

 

Below is the expected output.

Shabaz_6-1656312658358.png

Shabaz_7-1656312683401.png

 

 

 

9 REPLIES 9
messi007
15 - Aurora
15 - Aurora

@Shaaz,

 

Could you share a sample data ? It will help us to give you the solution.

 

Regards,

Shaaz
9 - Comet

Hi, Please find the attached sample file.

Qiu
20 - Arcturus
20 - Arcturus

@Shaaz 

Good finding. 😁
I eventually made a rather messy flow.
I replaced the quote before or after the | with special characters which are believed not to appear.

0627-Shabaz.PNG

grazitti_sapna
17 - Castor

@Shaaz, if your use case is limited to the sample data you have shared then try this solution if it fits your use case. 

PS: This is one of the solutions.

grazitti_sapna_0-1656315836445.png

 

I hope this helps!

 

Thanks!

Sapna Gupta
Kurohits
10 - Fireball

Hi @Shaaz 

 

Another easy method of doing this.  Attached workflow for your reference. 

Kurohits_0-1656318802790.png

 

Thanks 

 

Rohit Gupta

 

Qiu
20 - Arcturus
20 - Arcturus

@Kurohits 
I think the requestor still wants to keep the quote characters. 😁

Kurohits
10 - Fireball

@Qiu ohh yes, Didn't check his expected output screen shot. Thanks for the correction. 

 

Please use @Qiu solution.

 

Thanks 

 

Rohit Gupta

Shaaz
9 - Comet

This solution seems ok but it isn't working when I switched delimiter from pipe to comma and also, I've added Amount column as below where I've values in brackets with a trialing space.

 

Shabaz_0-1656328271948.png

 

Here in row2 (10,000) means -10,000

 

Can you please help me overcome this.

Kurohits
10 - Fireball

Hi @Shaaz 

 

I have regex function to match groups. You can check out this solution. I hope this will work. 

 

Kurohits_0-1656332828914.png

 

Thanks

 

Rohit Gupta

Labels