Skip to Content
0
Former Member
Dec 11, 2012 at 05:48 AM

Empty file creation in PI 7.3

299 Views

Hello, I've implemented a proxy-to-file scenario in PI 7.3 dual-stack installation. I've used content conversion in the receiver adapter as follows:

Message Structure:

<ns0:MT_Data_In xmlns:ns0="http://project.client.com">

<DetailRec>

<Field1>val1</Field1>

<FieldN>valN</FieldN>

</DetailRec>

<DetailRec>

......

</DetailRec>

<TrailerRec>

<FieldA>valA</FieldA>

</TrailerRec>

</ns0:MT_Data_In>

Content Conversion Parameter in the Receiver Channel

Recordset Structure: DetailRec,TrailerRec

DetailRec.fieldFixedLengths

DetailRec.endSeparator

TrailerRec.fieldFixedLengths

TrailerRec.endSeparator

It works well when there are detail and trail records in the message.

When there are no Detail Records, there will not be any trailer records either. This is done in message mapping.

The Message would like this:

<ns0:MT_Data_In xmlns:ns0="http://project.client.com"></ns0:MT_Data_In>

In such a case, I'm supposed to write an empty output file (size 0). I've set the "Empty-message handling" to "Write Empty File" in the file receiver channel. Yet, I'm seeing the following error in the channel monitor:

Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'

Any help in resolving this issue is greatly appreciated! Thank you very much!!