on 06-08-2012 12:06 AM
Hi,
I have a file to file scenario where I am only pulling a file from an external FTP and posting it in SAP unix file system.
When I see the file posted in SAP, I can see a special character as the first character of the file in every file I am sending.
This special character is "?" if I use US-ASCII file encoding (for text file type) and a "square" character if I use other encoding such as ISO.
I assume that this issue is at receiver side and not at sender piece.
I tried different combinations for both but I am always getting this.
Has anyone faced the same in the past? Can you let me know how can I solve this issue?
Thanks in advanced!
Make sure you set the FTP and file channel to binary mode. If that is the case, and you have no mapping configured, then the error must be outside of PI. Because PI does not behave wrong when it transfers a binary file.
CSY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Compare the with the Code page that is being used at the Receiver side for transformation. Probably problem should be at the receiver end.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Claudio,
I believe the character is present in file from sender side itself. Did you check the file content in external FTP location? In case this is true, its better that you request the sender to get rid of the character before sending the file itself else you need to remove it using message mapping. In case you are not using any mapping in your scenario then you need adapter module in file receiver adapter to remove first character in file.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Claudio,
One more check that seems worth trying: try moving one of the files from FTP to the Unix directory manually, without using PI. This will help you determine if your problem is related to your PI development (personally I believe not) or rather with other reasons like the file itself, incorrect encodings, the way your editor displays the file and so on.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Open your file using different editor and see how that behaves. Plus as you know xml file startswith <?, Just check whether you miss the first character?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you dumping file from FTP and placing in to SAP NFS ?
It looks problem with editor, if you think problem with pi then use binary mode in File receiver channel and try.
I did simalr scenarios but never had this kind of issue.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.