on 03-19-2012 3:47 PM
hello Guru's
i'm working with a easy interface idoc to file (XI 3.0).
I write the file in FTP and in append mode.
For each append i found a bad character (on the end of message ) like this:
How to clean this?
I tried to use trim function inside the mapping, but seem the problem is on adapter.
Any suggestion?
thanks
Alex
Please provide the FCC parameter as it seems to be a end separator coming after each run (Before appending it in the next run).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alessandro,
The error could be caused by the fact that you are using this fieldSeparator attribute twice for each structure. Are you sure you did not want to use endSeparator instead?
Moreover, based on the content it seems that you are using a comma and a semicolon as a field separator (or am I wrong and you are building the whole file line in the mapping, in a single field?).
Hope this helps,
Greg
Dear Alessandro,
I checked this "FEFF" combination in Wikipedia here:
http://en.wikipedia.org/wiki/UTF-16
http://en.wikipedia.org/wiki/Byte_Order_Mark
It looks like it is a combination of characters called Byte Order Mark, that is used in Unicode at the beginning of every characters string. And it seems funny that none of us noticed it in our integration scenarios... The only idea for solving it I have is to switch the File Type in Processing tab from Binary to Text or the opposite, depending on what is your current configuration. Give it a try and let me know the result.
Regards,
Greg
how does this character look in the idoc ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
Does the bad character also appear if you only append one message to the file? I.e. only one message processed in SAP PI?
Which editor do you use to view the file? I would recommend you to use Notepad++ and install the plugin Hex editor. That way you can see exactly which character is at the end of your string. This is not possible in regular notepad or wordpad.
If you could take a screenshot of the Hex editor with the character marked it would be easier to help you identify the root cause.
Best regards,
Jacob
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
Could I maybe ask you to open the file in Notepad++ and switch to Hex editor from the Plugin menu? That way I will be able to see the actual hex-values of the characters. Alternatively, if the data does not contain sensitive data you are more than welcome to send the file to my e-mail - jacob (at) firesquad (dot) dk
Best regards,
Jacob
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.