cancel
Showing results for 
Search instead for 
Did you mean: 

recordsetStructure for nested xml structure

babji2286
Explorer
0 Kudos

Hello experts,

We are receiving an invoice(.csv) file which should be converted to below structure which has 3 levels.

In Content Conversion, i set the parameter 'recordsetStructure = Header,1,Item*,SplitItem,*'. The problem with this is after 1st line item, the system is trying to create another header record.

Expected:

<Invoice>

     <Header>

          <Item>

               <Split Item>

               </Split Item>

          </Item>

          <Item>

               <Split Item>

               </Split Item>

          </Item>

          <Item>

               <Split Item>

               </Split Item>

          </Item>

     </Header>

<Invoice>

Actual:

<Invoice>

     <Header>

          <Item>

               <Split Item>

               </Split Item>

          </Item>

     </Header>

</Invoice>

<Invoice>

     <Item>

          <Split Item>

          </Split Item>

     </Item>

</Invoice>

<Invoice>

     <Item>

          <Split Item>

          </Split Item>

     </Item>

</Invoice>

How should i build the parameters to get the expected XML structure?

Regards,

Vishnu

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187587
Contributor
0 Kudos

No sure if this is a typo but if so , you have a configuration error:

you are missing the comma between the Item and the *.

Should be ,Item,*

engswee
Active Contributor
0 Kudos

Vishnu

You might want to share an example of your CSV content as well as the current FCC configuration.

Regards

Eng Swee

babji2286
Explorer
0 Kudos

Hi Eng Swee,

Below is how CSV file looks like.

LEVELINVOICE IDLINE ITEM ID
Header20029HEADER DATAHEADER DATAHEADER DATA
Line2002940982LINE ITEM DATALINE ITEM DATALINE ITEM DATA
Line Split2002940982LINE SPLIT DATALINE SPLIT DATALINE SPLIT DATA
Line Split2002940982LINE SPLIT DATALINE SPLIT DATALINE SPLIT DATA
Line2002940983LINE ITEM DATALINE ITEM DATALINE ITEM DATA
Line Split2002940983LINE SPLIT DATALINE SPLIT DATALINE SPLIT DATA
Line Split2002940983LINE SPLIT DATALINE SPLIT DATALINE SPLIT DATA

Thanks,

Vishnu Sangati