Forum Discussion
6 Replies
- Aleksandar_AContributor III
Hello Abhishek_117,
You can try by adding a Filter Snap after the CSV Parser with the following expression:
$ != {}
Try this and let me know if this helps you.
Regards,
Aleksandar.
- Abhishek_117New Contributor II
Hello Aleksandar_A ,
Thanks for the concern,but it is not working.
Please let me know if any other way is there that helps me to solve this problem.
Regards,
Abhishek Gupta.
Abhishek_117 - I think the answer you're looking for is already an option in the CSV Parser snap. In the "Header size error policy", select "Trim record to fit header". This will ignore any extra columns in the input data.
Hope this helps!
- Abhishek_117New Contributor II
Hi koryknick ,
Thanks For suggestion, but its working partially. Like I have added irrelevant columns in beginning and its adding data of relevant columns to irrelevant columns and due to which extra columns which are relevant they are becoming null.
Here Tik-Tok,Balance and Results are irrelevant column but when i select "Trim record to fit header" its taking data's from right column i.e CustomerKey,Prefix etc to left columns(which are irrelevant).I want to delete those column
Abhishek_117 - please supply a sample of your input file and desired output so we can better understand your use case.
- virender_prajapNew Contributor III
Seems like your input file is not a proper formatted CSV. Provide the sample input file to understand the use case.