on 10-25-2016 11:47 AM
Hi All,
I was working on SFTP adapter which picks the CSV file that needs to convert into XML. So i am using Message Transform Bean module for conversion. PI version is 7.31 dual stack.
Below are the config done in channel.
When the channel is picked the file payload is looks like below.
The channel was reading the filed names from the CSV file. I want to ignore that and also there is "" symbol for the values that needs to be ignore. So please suggest to resolve this.
Regards,
Raju
HI Raju,
Add xml.enclosureSign = " for it to remove the double quotes around each field. As far as the header stuff you are getting information from the structure based upon the key xml.processFieldNames = fromConfiguration. That is instructing the MTB to read the data from your configuration so you should not observe any case where it is reading from the file itself.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raju,
Change your configuration on the xml.processFieldNames from "fromFile" to "fromConfiguration" and switch xml.documentSkipFirstRows = 1. If you intend to keep the header with the "fromFile" option then you would need to remove the " characters from the header line in the file.
Regards,
Ryan Crosby
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.