As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at firstname.lastname@example.org and provide your corporate email address, company, and name.
Does iWay have a CSV Preparser. I have a requirement wherein i need to edit my csv file to remove first 3 rows and last 4 rows. I tried to pass this through my transformer but since the number of columns are not equal in all rows it fails to convert it completely.
I tried the preparser but it only accepts .xls files and doesnt accept files which have been renamed from .csv to .xls
What do i do here. Please helpThis message has been edited. Last edited by: <Kathryn Henning>,
I have a csv file wherein i need to remove the 1st 3 and the last few rows. The method in which i am trying to remove these is by converting the csv file to an xml format and then removing the rows based on the row number and values. For this, i tried passing through the transformer but it doesn't work as the number of columns for all the rows is not consistent. Hence it fails in the transformer.
I can't use the excel preparser too as it expects an xls file and renaming the .csv to .xls doesn't help either as it fails. Also tried renaming the .csv to .zip and tried using the unzip option in the listener. The content returned by the same is not of xml format.
The problem is solved now. I adopted the XDIterline approach through which i was able to include and exclude the rows easily thus achieving successful transformation of the csv file into the required format.
Made use of the SREG(count) which is set automatically by XDIterline Agent. Through this we can track the number of rows in the csv file.
@Venkat, Since this is a file provided by the customer i cannot modify the file by adding commas.