cancel
Showing results for 
Search instead for 
Did you mean: 

StrictXml2PlainBean - Structure row is too deep

jegathees_waran
Active Participant
0 Kudos

Hello Friends,

In my requirement, I need to ignore the empty file in the receiver channel.

For this reason I use the module "StrictXml2PlainBean" in my receiver channel.

Please find the attached file "DataStructure.gif" file for my input structure.

I applied the following parameter in the receiver channel.

recordTypes     -     row,CHECK_HEAD,CHECK_REC

row.ContentType     -     text/plain

row.endSeparator     -     \r\n

CHECK_HEAD.fieldLengths     -1,3,15,15,18,3,8,3

CHECK_HEAD.fieldLengthExceeded - cut

CHECK_HEAD.endSeparator     -     \r\n

CHECK_REC.fieldLengths     -     1,8,13,11,15,10,8,3

CHECK_REC.fieldLengthExceeded     -     cut

CHECK_REC.endSeparator     -     \r\n

When I place the input file, the message is failiing with error "The element nesting level for the structure row is too deep".

Could you please clarify friends? How to fix  using this Module? (since this is the only module to ignore empty file)

I cannot remove 'row' also since 'row' node is created based on one condition and logically grouping records.

I tried using "singleRecordType" parmeter also. It did not work.

Thanking you.

Kind regards,

Jegathees P.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

The standard FCC allow only 3 levels where as in you structure you have 4 levels.

CashedCheckUploadRFEB

           row

                CHECK_HEAD,CHECK_REC

                         RECTYP,HEADNUm ...

Change your strcuture little bit. Remove that top node

CashedCheckUploadRFEB. So under message type row will be your top node. This will solve your problem.

Muniyappan
Active Contributor
0 Kudos

Hi,

In my requirement, I need to ignore the empty file in the receiver channel.

you can use below option in the receiver adapter.

10.  Select Empty Message Handling:

○  Write Empty File

An empty file (length 0 bytes) is put in the target directory.

○  Ignore

No file is put in the target directory.

help link:

http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm

Regards,

Muniyappan.

jegathees_waran
Active Participant
0 Kudos

Hi Muniyappn,

When we process empty input file, it is ok.

But, when the input file contains data to write in output, it gives error. That's the problem here.

Muniyappan
Active Contributor
0 Kudos

Hi,

can you share your output file how you are expecting?

i think with FCC in the receiver file adapter you can achieve for above structure.

check this. you can modify this as per your requirement.

Hope it helps you.

Regards,

Muniyappan.