cancel
Showing results for 
Search instead for 
Did you mean: 

Encountering error in simple file 2 file scenario

Former Member
0 Kudos

Hi,

Working on a very simple file 2 file scenario , where input contains 1 header record identified with a key field and detail record conntains more than 1 records identified with key field. Used very specific FCC. But it was unable to generate the output file (a simple text file without any translation) giving errors as below -

1. File Adapter Receiver Channel cc_target: Not initialized - cannot proceed: null

2. MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Channel has not been correctly initialized and cannot process messages

3. Adapter Framework caught exception: Channel has not been correctly initialized and cannot process messages

4. Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Channel has not been correctly initialized and cannot process messages.

Input File structure is like

H1,XXXXX

D1,YYYYYY

D1,ZZZZZ

D1,NNNN

H1 and D1 are key identifiers of header and detail record

Need same format output file, used FCCs (1) fieldSeperator (2) endSeparator (3)ignoreRecordsetname (4) fieldNames (5) keyfieldvalue.

Can anyone pls suggest ?

AC

Accepted Solutions (0)

Answers (7)

Answers (7)

deepak_shah
Contributor
0 Kudos

HI

Please chck out the link this may help,

/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Some FCC field(s) may not be properly defined...you need to take into account case-sensitivity

Former Member
0 Kudos

Did you specified record set struture for target correctly ?

This error surely because of inappropriate FCC paramters

Rajesh

jyothi_anagani
Active Contributor
0 Kudos

Hi ,

Use FCC Like this.



Doccument Name                        MT_Source( Your Source Message Type name)
Doccument Namespace                   http://xxxxxx(Your Message type Name space)
Recordset Structure                   Header,1,Detail,*
Key Field Name                        field1
Key Field Type                        String
 
Header.fieldSeparator            ','
Header.fieldNames                field1,field2
Header.keyFieldValue             'H1'
Header.endSeparator              'nl'
Detail.fieldSeparator            ','
Detail.fieldNames                field1,field2
Detail.keyFieldValue             'D1'
Detail.ignoreRecordsetname        true
Detail.endSeparator              'nl' 

Let me know if you are getting any problem.

Thanks.

Former Member
0 Kudos

Through fieldSeperator property I could not solve the problem , so used fieldFixedLengths property and it worked. Also like to mention that there were few specific suggestions where keyFieldValue was given within quote like 'H1' etc. But it should be noted that those parameters do not work with quote.

Anyway thanks all.

Arnab

Former Member
0 Kudos

Hi,

Please check in the visual administrator whether the adapter service is mounted correctly and it is running or not.

Thanks,

Arijit.

Former Member
0 Kudos

Hi!

Obviously your file adapter service is not running. Or do work other scenarios with file adapter?

Check RWB and/or NWA if services are started.

Regards,

Volker

Former Member
0 Kudos

Hi AC,

Check the parameters of FCC properly, they are case sensitive; keyfieldvalue is actually keyFieldValue, ignoreRecordsetname is ignoreRecordsetName

Former Member
0 Kudos

hi ,

ASk your Basis guys to check for Adapter Services running.

GOTO RWB --> Check File Adapter Status in Adapter monitoring. It should be green.

Check in IR that File Adapter Metadata is correctly imported.

REgards,

Anurag Garg