cancel
Showing results for 
Search instead for 
Did you mean: 

File Receiver FCC parameters for multiple hierarchies Subnodes in target structure.

ramiz_sipai
Explorer
0 Kudos

Hi All,

I am facing challenge while configuring FCC parameters in Receiver file channels.

I have multiple hierarchy in my target structure

Error getting in Receiver channel :

'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'XXXX')', probably configuration error in file adapter (XML parser error)'

Here value XXXX is the value of my field  "Item_Details_field_1" in output

So the question is : Can't I handle multiple hierarchy at my target side ?

I tried here and there but could not find any link on this.

My ESR structure :

Records ... Level 1

  Header (0..1) ... Level 2

       Header_field_1

       Header_field_2

       Header_field_3

  Details (0..Unbounded) ... Level 2

       Detail_field_1

       Detail_field_2

       Detail_field_3

  Item (0..Unbounded) ... Level 2

       Item_field_1

       Item_field_2

       Item_field_3

       Item_Details (0..Unbounded) ... Level 3

            Item_Details_field_1

            Item_Details_field_2

            Item_Details_field_3

My Sender channel :

Record structure : Header,Details,Item,Item_Details

Header.filedNames = Header_field_1,Header_field_2,Header_field_3

Header.filedFixedLength = 10,10,10

Header.endSeparator = '/n'


Details.filedNames = Detail_field_1,Detail_field_2,Detail_field_3

Details.filedFixedLength = 10,10,10

Details.endSeparator = '/n'


Item.filedNames = Item_field_1,Item_field_2,Item_field_3

Item.filedFixedLength = 10,10,10

Item.endSeparator = '/n'


Item_Details.filedNames = Item_Details_field_1,Item_Details_field_2,Item_Details_field_3

Item_Details.filedFixedLength = 10,10,10

Item_Details.endSeparator = '/n'

Thank you in advance...


Thank you.

Ramiz.

Accepted Solutions (1)

Accepted Solutions (1)

nabendu_sen
Active Contributor
0 Kudos

Hi Ramiz,

Check this one:

FCC Parameters you provided are for Sender or Receiver? You have mentioned as Sender.

Regards,

Nabendu.

Answers (4)

Answers (4)

ramiz_sipai
Explorer
0 Kudos

Thank you Nabendu, Sudhir, Jens & Naveen,

yes it is typing mistake. It is Receiver comm.channle and also spelling is Field.

The given link helped me to understand that we can not have multiple hierarchy at receiver end.

I did not used the exact solution mentioned in the link but created simple java mapping to make my hierarchy structure to flat structure

This java map will simply do below things.

1. To remove </Item> from Item_Details

    Replace : </idf3></Item_Detail></Item> with </idf3></Item_Detail>

2. To close Item without item_Details structure

     Replace : </if3> with </if3></Item>

Output before java mapping :

<Records>

     <Header>

          <hf1>hf1v</hf1>

          <hf2>hf2v</hf2>

          <hf3>hf3v</hf3>

     </Header>

    <Details>

         <df1>df1v</df1>

         <df2>df2v</df2>

         <df3>df3v</df3>

    </Details>

    <Item>

         <if1>if1v</if1>

         <if2>if2v</if2>

         <if2>if3v</if3>

         <Item_Detail>  

              <idf1>idf1v</idf1>

              <idf2>idf2v</idf2>

              <idf3>idf3v</idf3>

         </Item_Detail>

    </Item>

</Records>

Output after java mapping :

<Records>

     <Header>

          <hf1>hf1v</hf1>

          <hf2>hf2v</hf2>

          <hf3>hf3v</hf3>

     </Header>

    <Details>

         <df1>df1v</df1>

         <df2>df2v</df2>

         <df3>df3v</df3>

    </Details>

    <Item>

         <if1>if1v</if1>

         <if2>if2v</if2>

         <if2>if3v</if3>

     </Item>        

      <Item_Detail>  

              <idf1>idf1v</idf1>

              <idf2>idf2v</idf2>

              <idf3>idf3v</idf3>

         </Item_Detail>

   

</Records>

Thank you.

Ramiz.

nabendu_sen
Active Contributor
0 Kudos

Hi Ramiz,

That is really good to know. You can provide the Java Mapping code which could help if anyone face the same issue in near future.

Regards,

Nabendu.

naveen_chichili
Active Contributor
0 Kudos

Hi Ramiz,

Check the field names are same as specified in your datatype structure (Including spellings).Also check if the number of fields in the content conversion are same as the number of fields in your payload.

Thanks and dRegards,

Naveen

JaySchwendemann
Active Contributor
0 Kudos

In addition to what's already been said (is file adapter receiver or sender?, check spelling)...

1. please check if this is helping (assuming file receiver adapter)

http://wiki.scn.sap.com/wiki/display/XI/FCC+For+Hierarchical+Structure+in+Receiver+Channel?original_...

2. if still unsure, please post desired target file structure (assuming file receiver adapter)

Thanks and kind regards

Jens

Former Member
0 Kudos

Hi Ramiz,


Can you also check the spelling of "field". You have mentioned it as "filed".

Regards,

Sudhir