cancel
Showing results for 
Search instead for 
Did you mean: 

Error - Premature end of file.

Former Member
0 Kudos

Hi,

I am running a scenario involviong File Sender Adapter. I am not able to get the payload.

I am getiing the following error - Premature end of file.

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_EXTD_EX_CustomerReturnData_to_C~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Premature end of file.</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

Has anyone encountered such kind of error?

Regards,

Neeraj

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey

Can you please check the payload in sender file adapter in RWB.

It should be in Message monitoring

Thanks

Aamir

Former Member
0 Kudos

Aamir,

NO PAYLOAD to be seen.

Former Member
0 Kudos

Neeraj,

If you are using content conversion there is some error there. So can you please check or give us the structure and the parameters you mentioned.

---Satish

Former Member
0 Kudos

>>NO PAYLOAD to be seen.

if this is what you are getting in message monitoring->Adapter Engine->Details->Message content tab

then the issue is with the sender file.are you doing Content conversion on sender side or is it just an XML which you are picking up?

Thanks

Aamir

Former Member
0 Kudos

Satish,

Yes I am using content conversion.

Document Name - MT_CustomerReturnData

Document Namespace - given

Recordset Name - recordset

Recordset Structure - Header,1,Record,*

Recordset Sequence - Ascending

Key Field Name - Key

Key Field Type - String (Case-Insensitive)

Header.fieldSeparator '|'

Header.fieldNames Key,ProtocolVersion,CustomerCode,ProductionBatchNumber,Period,ProductionSite,DeliveryCode,CardType,FromBox,ToBox,DateReturnFileCreated,QuantityOfRecords,FixedString

Header.endSeparator 'nl'

Header.keyFieldValue 'H'

Record.fieldSeparator '|'

Record.fieldNames Key,CardID,PinCode,InfoCode

Record.keyFieldValue 'R'

ignoreRecordsetName true

Former Member
0 Kudos

Neeraj,

One contrary parameter what I observe is:

Recordset Name - recordset and

ignoreRecordsetName true

So if you have recordset in your structure then remove the second line and if you dont have then remove the first line and give a try.

---Satish

Former Member
0 Kudos

Neeraj,

It seems there is an error in your mapping. Can you take the payload from moni and test the mapping and see where it is failing.

---Satish

Former Member
0 Kudos

Hi Satish,

Thats one of the problems I have mentioned.

I am not getting any payload.

Former Member
0 Kudos

Hi Neeraj,

My bet. I am sorry.

Can you see check the sender communication channel in adapter monitoring whether it shows any error?

---Satish