cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Receiver File adapter - FCC

0 Kudos

Got error message as "File Adapter Receiver Channel CC_OB_REQ: Not initialized - cannot proceed: null"

My requirement is to send IDOC to file which consists of 4 fields, My target message interface is

MT_REQ

FILE_STRUC

FILE_OP

AAA (Field1)

BBB(Field2)

CCC(Field3)

DDD(Field4)

Output file should contain the above 4 fields with fixed lengths 20,1,1,2

So I declared FCC in File Adapter as

I tried many options

RecordSet Structure: MT_REQ,FILE_STRUC,FILE_OP

FILE_STRUC.fieldSeparator - 'nl'

FILE_OP.fixedFieldLengths - 20,1,1,2

FILE_OP.fieldSeparator - 'nl'

FILE_OP.endSeparator - 'nl'.

Please let me know where is the problem?

Thanks in advance,

Krishna

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Try below FCC parameters ...

> RecordSet Structure: FILE_OP

> FILE_OP.fixedFieldLengths - 20,1,1,2

> FILE_OP.fieldSeparator - 'nl'

> FILE_OP.endSeparator - 'nl'

Former Member
0 Kudos

Hello,

That is not " FixedfieldLengths"

That is "fieldFixedLengths"

We have to declare like this below in Content Conversion parameter

Recordset Structure* - FILE_STRUC,FILE_OP

FILE_OP.fieldFixedLengths - 20,1,1,2

FIle_op.endSeparator - 'nl'

Hope This will help you.

Regards

JS

0 Kudos

Hi,

If I change Message protocol from FCC to FILE in receiver file adapter, then file is creating at destination( .XML file). I changed to FCC and mentioned Recordset Structure as "FILE_STRUC,FILE_OP"

FILE_STRUC.fieldSeparator - 'nl'

FILE_OP.fixedFieldLengths - 20,1,1,2

Target Message type structure -

MT_REQ - Message type

-FILE_STRUC

--FILE_OP

---Field1(Length 20)

---Field2(Length 1)

---Field3(Length 1

---Field4(Length 2)

when I execute, error message says "File Adapter Receiver Channel CC_OB_REQ: start processing; party "*" / service "XXXX".

Pls.let me know if you have any ideas.

Thanks in advance,

Krishna

Former Member
0 Kudos

hi,

please make the channel configuration as follows,

Record Structure :FILE_OP

under that

FILE_OP.endSeparator : 'nl',

FILE_OP.fieldFixedLengths:20,1,1,2.

Krishna

0 Kudos

Hi,

I dont know the reason, but it is working now for the same recordset structure i.e.

Recordset Structure: FILE_STRUC,FILEOP

FILE_STRUC.fieldSeparator - 'nl'

FILE_OP.fieldFixedLengths - 20,1,1,2

Thanks,

Krishna

Edited by: Ramakrishna Koliparthi on Mar 30, 2010 2:41 AM

0 Kudos

Hi,

I dont know the reason, but it is working now for the same recordset structure i.e.

Recordset Structure: FILE_STRUC,FILEOP

FILE_STRUC.fieldSeparator - 'nl'

FILE_OP.fieldFixedLengths - 20,1,1,2

Thanks,

Krishna

Edited by: Ramakrishna Koliparthi on Mar 30, 2010 2:41 AM

zameerf
Contributor
0 Kudos

Hi Ramakrishna,

Recordset Structure - FILE_STRUC,FILE_OP

FILE_OP.fieldFixedLengths - 20,1,1,2

(it is not fixedFieldLengths)

by default endSeparator will be 'nl'. So, we don't have to explicitly mention it.

and there is no role for fieldSeparator as it is fixedlength file in the target.

Hope this will help.

Regards,

Zameer

Edited by: Zameer Hamza on Mar 30, 2010 8:44 AM

Former Member
0 Kudos

Hi,

Is FILE_STRUC, in target is a node or just an element???

If element then FILE_STRUC.fieldSeparator - 'nl' leads to the above error.

Please post sample target XML here with atlease 2 records.

So others can help u...

Babu

Former Member
0 Kudos

Hi Ramakrishana,

In FCC fixed length file format when your XML payload is goes to Adaptor engine, it should contain all fields in XML. Otherwise its throw error in FCC channel. Please check receiver payload at SXMB_MONI or message monitoring of Run time work bench. In that payload you will find that some of the fields is not generated in target payload.

Field in receiver payload is not generated means from sender payload corresponding field is not coming. As per my past experience this generally happens in IDOC sender.

solution:- In message mapping in every field from IDOC to file use mapWithDefault node function with null value. Due to this though if any field do not generates in IDOC, corresponding field will generate in File Payload and it will not throw error in FCC.

Regards,

Prashant

justin_santhanam
Active Contributor
0 Kudos

Can you reply the sample xml file(target) and sample output file(csv) here?

Thanks!