02-06-2023 09:52 AM
my csv file has several rows for each person on the file. The specific rows have different number of columns in each row. CSV file reader is having trouble with it. Is this impossible to read for this snap?
Solved! Go to Solution.
02-22-2023 01:41 PM
@heidi.andrew - here is another pipeline that provides a couple more examples how this could be done. In this pipeline, there are two examples - the first is similar to what @alchemiz has done, but with an added step to simplify the syntax of the record conversion into an array then object. The second path steps it down even farther using all basic snap functionality to split the input stream so it can be parsed separately based on the input row type.
I hope this helps!
Community 15513 - Multi-row CSV_2023_02_22.slp (24.3 KB)
02-07-2023 06:42 AM
different column numbers on rows.txt (773 Bytes)
02-09-2023 04:45 AM
any luck with this little file?
02-09-2023 07:26 AM
Hi @heidi.andrew,
Good day, hope this helps… attached poc pipeline
canvas_01_2023_02_09.slp (11.6 KB)
Thanks,
MM
02-09-2023 07:50 AM
This worked! I do not understand why or how. I have not used any of the json features yet but i will study it and learn how this works. Thank you so much.
02-09-2023 10:35 PM
Glad to be of help