cancel
Showing results for 
Search instead for 
Did you mean: 

Error In sender file adapter

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Shabarish_Nair
Active Contributor
0 Kudos

<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.

Former Member
0 Kudos

Hi Vijay Kumar,

i remove inverted quotes and test it, but i got same error.

Former Member
0 Kudos

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.

Former Member
0 Kudos

Can you give us the sample input text file you are using.

Regards

Jai Shankar

Former Member
0 Kudos

Hi Shankar,

My test data is below, can you check it.

1234Aabc5678Bdef8901Cghi

Note : i mentioned recordsetname:recordset

recordset structures:header,1,item,1,tail,1

keyfiledname: field2

santhosh_kumarv
Active Contributor
0 Kudos

Hi Madesh,

Are all the record or in a same line like

234Aabc5678Bdef8901Cghi

or is it like

234Aabc

5678Bdef

8901Cghi

Regards

Santhosh

Former Member
0 Kudos

Santhosh,

all records in same line, no field separator and end separator.

santhosh_kumarv
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Santhosh,

My test data is 1234Aabc5678Bdef8901Cghi

not 234Aabc5678Bdef8901Cghi.

Please once again check it,

thanks in advance for your reply.

Former Member
0 Kudos

Hi vijay,

can you provide some inputs to resolve my error log in communication channel monitoring.]

thanks in advance, waiting for reply.

Former Member
0 Kudos

Hello,

Either ur source file shld be something like this for testing

1234Aabc 1..1

5678Bdef 0..Unb

8901Cghi 1..1

or change ur structure in XI accordingly to suit the incoming data structure..

Regards,

Former Member
0 Kudos

Hi SriHari,

with out newline we can`t handle the scenario.

My test data is continous one with following data.

1234Aabc5678Bdef8901Cghi.

santhosh_kumarv
Active Contributor
0 Kudos

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

Former Member
0 Kudos

>>>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

Former Member
0 Kudos

Hi Shankar,

my Sp-09 and i am using PI 7.0.

my file is not Empty one, it shows error as Empty document found. Proceed without sending message

may i know what is the importance of following options

1. Do not create msg.

2. Process empty files

3. Skip empty files.

Former Member
0 Kudos

From SAP Help

Handling of Empty Files

Specify how empty files (length 0 bytes) are to be handled.

&#9675; 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.

&#9675; Process Empty Files

XI messages are created with an empty main payload.

The files are processed according to the selected Processing Mode.

&#9675; Skip Empty Files

No XI messages are created from empty files.

Empty files are skipped and remain in the source directory.

Jai Shankar

prasanthi_chavala
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Shanker,

Thanks for Helpful information, can you check my Error Log.

Provide some inputs to resolve that one.

Former Member
0 Kudos

Are you sure the file <b>test_in.txt</b> contains some values?

It seems the FIle does not contain any record, hence the msg.

You can try another file with no records in it and see the same happening again.

This is not an error but the expected behaviour.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi Prasanthi,

Thank you for helpful information,

but i got error in comunication-channel monitoring as ( Empty document found ).

can you try to resolve my problem.

Former Member
0 Kudos

HI Prasanthi,

thank for helpful information.

can u please check my error log and provide some inputs.

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

In the keyfield name of the sender coommunication channel specify field2.

or specify..

header.keyFieldName = field2.

item.keyFieldName = field2.

tail.keyFieldName = field2.

Regards

Santhosh

Former Member
0 Kudos

Hi Santhosh,

i specify follwoing parameters, but i got same warning (Error document not found )

header.keyFieldName = field2.

item.keyFieldName = field2.

tail.keyFieldName = field2.

Former Member
0 Kudos

Madesh , i hope you have also specifed the parameter:

Key field name - field2

keyfield type - String

Along with the parameters specified by santhosh earlier.

Cheer's

Former Member
0 Kudos

Hi Dreamcatcher,

i mentioned keyfield type as string ( case-senstive ).

but i got same error only.

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Have u specified the key field name as field2.

If u have done this no need of the parameter field.keyFieldName = field2.

Regards

Santhosh