on 09-05-2007 11:17 AM
Hi Experts,
I done a file to file scenario by configuring FCC on both sender side and receiver side. my sender and reciver adapter ( file ) shows green status in adapter monitoring.
my file is picked from specified directory, but i am unable to saw message in moni.
when i go for communication channel monitoring, it shows a warning as follows.
Time Stamp Status Description
2007-09-04 12:14:56 Success Channel file_send_terat1: Entire file content converted to XML format
2007-09-04 12:14:56 Warning Channel file_send_terat1: Empty document found. Proceed without sending message
2007-09-04 12:14:56 Success File "/tmp/xidelivery/send/test_in.txt" deleted after processing
Note :1. my sender xml meaaseg is as follows
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MTO_test1 xmlns:ns0="http://INOACGroup.com/test/0001">
<recordset>
<header>
<field1>1234</field1>
<field2>A</field2>
<field3>abc</field3>
</header>
<item>
<field4>567</field4>
<field2>B</field2>
<field6>def</field6>
</item>
<tail>
<field7>8901</field7>
<field2>C</field2>
<field9>ghi</field9>
</tail>
</recordset>
</ns0:MTO_test1>
2. my sender side FCC parameters as follows.
i mention recordet name and record set structure also.
header.keyFieldValue - 'A'
header.fieldNames - field1,field2,field3
header.fieldFixedLengths 4,1,3
item.keyFieldValue-'B'
item.fieldNames- field4,field2,field6
tail.keyFieldValue- 'C'
tail.fieldNames - field7,field2,field9
tail.fieldFixedLengths-4,1,3
3.my testdata is fixedlenths and continoues data
please resolve my problem,points are given to the expert who resolved.
<i><b>header.keyFieldValue - 'A'</b>
header.fieldNames - field1,field2,field3
header.fieldFixedLengths 4,1,3
<b>item.keyFieldValue-'B'</b>
item.fieldNames- field4,field2,field6
<b>tail.keyFieldValue- 'C'</b>
tail.fieldNames - field7,field2,field9
tail.fieldFixedLengths-4,1,3</i>
>>
try
header.keyFieldValue - A instead of header.keyFieldValue - 'A'
Same for item and tail. remove the single quote.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vijay,
if i remove single quote, it give the following error
Retry interval started. Length: 10.0 seconds
Error 9/5/07 2:16:20 PM f7dd26205beb11dcc04f0017a4997d5f Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 1: missing structure(s) in last recordset
9/5/07 2:16:20 PM Processing started.
if i am using single quote it gives warning as ERROR Document Found.
based on this can you provide some inputs.
Hi Madesh,
For this Input
234Aabc5678Bdef8901Cghi
The out put of the FCC will be..
header.keyFieldValue - 'A'
header.fieldNames - field1,field2,field3
header.fieldFixedLengths 4,1,3
<b>Result:</b>
Field1: 234A
Field2: a
Field3: bc5
Now the key field i.e is Field2 Value is <b>'a'</b> where as u have specified <b>header.keyFieldValue - 'A'</b> so u dont get this message in Moni.
item.keyFieldValue-'B'
item.fieldNames- field4,field2,field6
<b>There is no fixed field length defined for the iteml</b>
tail.keyFieldValue- 'C'
tail.fieldNames - field7,field2,field9
tail.fieldFixedLengths-4,1,3
If u go thru this help http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
It is clearly specified that <b>A substructure must always be shown in exactly one line of the text document.</b>
Since all the records are in the same line the fixed field lenths for item and tail will not apply in your case...
Regards
Santhosh
Hi Madesh....
The empty document will be picked up only when
1. There is no records in the document.
2. When the records do not match the FCC specified in the Sender CC.
Since there is content in your file and still u dont get the error message in the SXI_Monitor is only because of the FCC.
U have specify the keyfield name and the keyfield value to diff between the records.
Regards
Santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>>my file is picked from specified directory, but i am unable to saw message in moni.
The log is very clear
2007-09-04 12:14:56 Warning Channel file_send_terat1: <b>Empty document found. Proceed without sending message</b>
I am not sure from which SP this feature is supported. But in the latest SP you have the 3 options while dealing with an empty file
1. Do not create msg.
2. Process empty files
3. Skip empty files.
Choose option 2 to see a msg in SXMB_MONI.
BTW, I dont need any points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From SAP Help
Handling of Empty Files
Specify how empty files (length 0 bytes) are to be handled.
○ Do Not Create Message
No XI messages are created from empty files.
The files are processed according to the selected Processing Mode.
For example, if the processing mode is Delete, empty files are deleted in the source directory.
○ Process Empty Files
XI messages are created with an empty main payload.
The files are processed according to the selected Processing Mode.
○ Skip Empty Files
No XI messages are created from empty files.
Empty files are skipped and remain in the source directory.
Jai Shankar
Hi Madesh,
When the file is does not have any content then the new feature in XI is able to handle the empty files in three different ways:
1. Do not create msg : If u choose this option then it will not show any message in the moni simple it will process the file with warning saying that empty file found and proceeded withour processing in the communication channel.
2. Process empty files: If u choose this option then it will show message in moni for emtpy file.
3 Skip empty files: It will skip the emtpy file from processing and you wont say any warning also.
Regards,
Prasanthi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.