on 03-29-2010 10:59 PM
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
Try below FCC parameters ...
> RecordSet Structure: FILE_OP
> FILE_OP.fixedFieldLengths - 20,1,1,2
> FILE_OP.fieldSeparator - 'nl'
> FILE_OP.endSeparator - 'nl'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you reply the sample xml file(target) and sample output file(csv) here?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.