on 06-23-2010 9:36 PM
Hello,
Scenario: File->XI->File.
In my scenerio, I am using Java mapping to name the target filename and creating text file that is later sent to FTP, in that way I don't have to use content conversation, to save performance...
I am on PI7.1 version so I have checked the options (Processing Parameters) for empty file handling in Sender/Receiver file communication channels.
Issue:- Though the target file is created but it always contain 1 byte(NULL character). Any ideas??
Thanks
Anshul
Hi,
How was the issue resolved. I am facing the same issue in PI 7.0 SP 21.
We are observing this issue in production after upgrading the SP from 16 to 21. I have created a java mapping to generate this empty file. A zero byte file got generated when I test in eclipse but in XI, the file always contains 1 byte.
Regards,
Soumya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> In my scenerio, I am using Java mapping to name the target filename and creating text file that is later sent to FTP, in that way I don't have to use content conversation, to save performance...
>
The java mapping is genarating output as text file,right??have you tested your java mapping in NWDS or eclipse,because when you test in Operation mapping you will get error for text file,because it is not well formed.
if your java mapping genarating text files perfectly then file content conversion not required at all,just give file name in Communication channel.
> I am on PI7.1 version so I have checked the options (Processing Parameters) for empty file handling in Sender/Receiver file communication channels.
>
Why you have selected empty file handling??it is not required.
> Issue:- Though the target file is created but it always contain 1 byte(NULL character). Any ideas??
>
>
unselct empty file handling test your interface with real data.
let me know your 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.
Mayank - In my case I require the ESR (Java mapping) which I am using it to create target file names based on the source filename. Using DynamicConfiguration in that. And the blog talks about not using ESR. Thanks.
Raj - I am using Java Mapping only to create the file names using DynamicConfiguration...based on the source filename. And I am passing the contents using InputStream/OutputStream in the execute method. So I'm not generating any text files.
Secondly, I dont need to specify the filenames in communication channels becuase the filename is generated dynamically through Java mapping. Hope I am able to explain you the requirement.
Your JAVA mapping is not producing any ouput. you can test it in the ESR itself using Test tab on Operation Mapping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if there is no change in the structure required that you can try:
/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
otherwise check if you are using latest library for PI 7.1
http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
Also check APi for PI 7.1, that you are using correct methods and classes like :
transform(TransformationInput input, TransformationOutput output) throws StreamTransformationException
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.