Hello guys,
Currently, I’m working with a CSV file which I have to convert it to a data table. but the CSV file I’m using is tab delimited file.
I used the “Read CSV file” object and select the Tab delimiter. and also I tried by using “\t” as well noting worked
Kindly requesting your help on this.
Herewith I have attached the csv file downloadable
link inventory.csv - Google Drive
1 Like
Hi @charith_wickramasing ,
Can you upload the csv file? Thanks
3 Likes
Here with I have attached the link to download the CSV file
lakshman
(Ganta lakshman)
May 2, 2019, 5:52am
4
@charith_wickramasing
I downloaded the file and checked but I did not find ‘Tab’ as delimiter in your CSV file. All the data is mixed without space also.
1 Like
Hi @charith_wickramasing
I also checked your file. However only the header has a space separator. But the data does not have any character to split the data…
2 Likes
Hi @charith_wickramasing ,
This is what I can extract from your CSV file: output.xls (37.4 KB)
3 Likes
@charith_wickramasing
Buddy we have an option called Generate data table activity that can generate datatable from a structured csv file…
read the csv file with read text file with its output assigned to a variable out_txt
use generate data table activity to convert that to datatable with input out_txt and output assigned to a variable out_dt
Kindly enable use column header
Hope this would help you
Cheers/.
1 Like
but in the excel i can split this in to columns by using text to columns , tab delimiter function. Thats’s why i thought it can split using tab
Hi @charith_wickramasing
check below attached xaml file.
Sequence.xaml (12.3 KB)
Bro, but i can split into columns by using excel text to column function ( tab delimited), That’s why i thought i can split this by using a tab.
Thanks a lot, @kommijeevan , but it didn’t work.
hi @Jan_Brian_Despi
would you be able to share the xaml file ?
1 Like
Here it is:
BlankProcess34.zip (22.0 KB)
Thanks and regards
2 Likes
hi @kommijeevan
Thanks, lot for the help. but it didn’t work. it gives me this output.
Book1.xlsx (47.7 KB)
1 Like
Thanks a lot @Jan_Brian_Despi
It worked. but I want an output like this.
Book1.xlsx (34.2 KB)
Would you be able to help me with this?
Thanks again.
1 Like
Oh. You just need those details that are clear?
1 Like
Yeah jan, by using that data i have to extract some information from a web portal. that why all the data should be clear…
1 Like
Hi @charith_wickramasing ,
Here you go: BlankProcess34.zip (22.9 KB)
The output is Book1.xlsx
You may want to visit this link:
https://www.uipath.com/kb-articles/how-to-read-data-from-a-csv-file
Please let me know if it works
6 Likes
Hi @Jan_Brian_Despi .
It worked perfectly. Thanks a lot Jan,
2 Likes