on 12-26-2013 4:52 AM
Hi All,
We are using PI 7.0 and there is a requirement for us to process empty file. The scenario is file to proxy and the source file is a flat file.
I have selected the Process Empty File for Empty-File Handling but we are still encountering an error in mapping side. Below is the error:
Parsing an empty source. Root element expected!
I would like to ask if it is possible to process empty file successfully in PI 7.0.
Can you please help me?
Thanks,
Arlene
Hi Kalyan,
Thanks for the reply. I have gone thru the links but unable to find additional info that may help me with our requirement. I have already selected process empty file but is still encountering an error in mapping because the file is indeed empty. Even if the 0 byte flat file passed thru the FCC successfully, in sxmb_moni it is showing a blank message so we are encountering the error. Do you have an idea how can I configure the interface to convert a 0 byte flat file to have the ff XML tag inside the converted file?
<?xml version="1.0" encoding="UTF-8"?>
<ns0:I00223_COLLAB_V01_MovePlan_Vendor_OutB xmlns:ns0="namespace">
</ns0:I00223_COLLAB_V01_MovePlan_Vendor_OutB>
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arlene,
In addition to the "Process Empty File" try to create your Target Node Ocuurence "0 .. Unbounded".
Also, Please go through the below link if it helps you -
http://wiki.scn.sap.com/wiki/display/NWTech/Empty-Message+Handling+-+Receiver+File+Adapter
Regards,
Kalyan
Hello,
>>Do you have an idea how can I configure the interface to convert a 0 byte flat file to have the ff XML tag inside the converted file?
I think u can use java mapping where u can check the file size (Using DC) and if the size is 0 bytes then u can create mentioned above structure inside ur JM and if the file size is greater than 0 then pass converted XML string (from FCC) as it is to second mapping i.e. actual message mapping which will do tansformation.
So ur OM will have 2 mappings - first JM (which will check the file size and depending upon the size, output XML structure) + Message mapping
Thanks
Amit Srivastava
What is expecting on proxy side for empty file processing?
You can use "exists" node function to check if node of file exist and generate node for proxy side to avoid mapping errror.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arlene,
Please go through the below link where same discussion is covered -
Empty File Handling in&nbsp; SAP XI------Urgent | SCN
Regards,
Kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.