Hi,
I have data.csv file. But in the sheet data is not columns. Just text across columns. Read CSV is failing because it is not in proper columns format. How do I read this data?
I need to read from multiple files like this and append data and write into an Excel sheet.
Yoichi
(Yoichi)
June 11, 2024, 1:41am
2
HI,
Can you share specific sample as file? it’s no problem if dummy data.
Regards,
First row is not columns.
Is there a way just to get the entire text from the sheet?
Thank you,
Yoichi
(Yoichi)
June 11, 2024, 2:07am
4
Hi,
Can you try either of the following?
Uncheck HasHeader property of ReadCSV, then set column name from 2nd row. next remove 1st and 2nd row.
Use ReadTextFile activity, then remove first row with string manipulation (e.g. regex) , next use GenerateDAataTableActivity.
Regards,
Thank you, in the first option, how do I remove first row?
How to read csv from column name?
Read CSV does not give any options.
Thank you,
Yoichi
(Yoichi)
June 11, 2024, 2:15am
6
Hi,
The latter may be easier. Can you check the following post?
Hi,
Can you try as the following?
First, read csv file as string using ReadTextFile activity.
Next remove the first line of the string using the following expression.
strCsv = System.Text.RegularExpressions.Regex.Replace(strCsv,"^.*\n","")
Finally, convert it to DataTable using GenerateDataTable activity with CSV option.
[image]
Regards,
Regards,
1 Like
system
(system)
Closed
June 14, 2024, 2:15am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.