cancel
Showing results for 
Search instead for 
Did you mean: 

Sender FCC parameters issue

Bhargavakrishna
Active Contributor
0 Kudos

Hi Experts,

We are receiving flat file with pipe delimited file from the source system.

First row Contains Header Data  and from Second row onwards contains Record data.

Sender structure                                                                                   Receiver Structure

Invoice

RecordSet                                                                                              Invoice

                                                                                                                 RecordSet

   Header                                                                                                       Header

       Batch_Date                                                                                               Batch_Date

   Record                                                                                                   Record

       Field1                                                                                                      Field1

       Field2                                                                                                      Field2

       Field3                                                                                                      Field3

i defined FCC parameters as below

Document Offset 1

Recordset Name: RecordSet

Recordset Structure: Header,1,Record,*

Header.fieldSeparator:|

Header.endSeparator:'nl'

Header.fieldNames:Filler1,Filler2,Batch_Date,Filler3

Record.fieldSeparator:l

Record.endSeparator:'nl'

RecordSet.fieldSeparator:'nl'

Record.fieldNames:Filler, Field1, Filler2,Filler3 Field2.


But the Header is not populating in the inbound payload,only Record is populating, Due to that it is failing in mapping.


Error" Cannot produce target element /ns0:ConcurInvoice2/RecordSet. Queue does not have enougth values in context, Queue does not have enough values to generate Target structure".


Please help me to fix this.


Regards

Bhargava Krishna

Accepted Solutions (1)

Accepted Solutions (1)

RaghuVamseedhar
Active Contributor
0 Kudos

Bhargava,

Document Offset 1, ignores first line of input file. Make it zero and try.

Also try Link

NameA.missingLastFields

If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:

  • ignoreOutbound structure only contains the fields in the inbound structure
Bhargavakrishna
Active Contributor
0 Kudos

Hi Raghu,

thanks for the prompt response.

Now that issue got resolved, it is showing another issue,

PI is picking the file, giving above error in CC monitoring.

Please help me to fix this.

Regards

Bhargava Krishna

RaghuVamseedhar
Active Contributor
0 Kudos

Bhargava,

Please set NameA.keyFieldValue.

"If you have entered a variable number of substructures under Recordset Structure, that is, you have entered the value* for at least one structure, specify a Key Field Name."

Please check help link.

Bhargavakrishna
Active Contributor
0 Kudos

Hi Raghu,

I tried Header.keyFieldValue:01 and Record.keyFieldValue: 02

Key field name : Key

But still Header is not coming in the inbound payload, only Record structure is generating.

Regards

Bhargava Krishna

Former Member
0 Kudos

You can try the Record set Structure as : Header,1,Record,999999

Instead of * provide the occurrence in this way we can avoid setting key field values.

Former Member
0 Kudos

HI Bhargava,

Your FCC parameters should be

Header.keyFieldvalue Filler; Record.keyFieldValue Filler


Post a sample file too.

Regards,

Pranav

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bhargava,

Try NameA.additionalLastFields