on 02-16-2017 10:25 AM
Hi Experts,
I am trying to use FCC and want to convert the file data to XML. But after converting the data, the ; (semicolon) symbol is coming with last filed.
Input test file sample -
Header;123;xyz;
So in XML payload, the last field is coming as "xyz;". I want to remove this and don't want to use Mapping here.
Thanks in Advance.
Regards,
Ankur
Hi Ankhur,
Please mark Evgeniy answer as the correct one, in this way you can help more SCN members in the future. On the other hand, a clever workaround Evgeniy!.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
This issue is resolved.
regards,
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ankur!
Use one more dummy field for your XML structure in FCC and set parameter <Item>.missingLastFields to "Ignore".
Source:
1;2;3;
5;6;7;
Result:
<?xml version="1.0" encoding="utf-8"?><ns:MT_Message xmlns:ns="http://tempuri.org">
<Item><Field1>1</Field1>
<Field2>2</Field2>
<Field3>3</Field3>
</Item>
<Item>
<Field1>5</Field1>
<Field2>6</Field2>
<Field3>7</Field3>
</Item>
</ns:MT_Message>
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.