cancel
Showing results for 
Search instead for 
Did you mean: 

How to create message XI with empty file trough file adapter

Former Member
0 Kudos

Hello.

I'm having problems trying to generate XML message with an empty file (it canu2019t parse the xml) but if the file has data the message is created well and the interface executed. The adapter is FILE type and the message protocol is File Content Conversion.

I hope anyone can help me with this.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

set - process empty file,

manage in mapping about generate constant or any value in empty nodes.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Julio,

This can be handled very easily.....just check the option empty file in file comm channel....under processing tab..

Regds,

Pinangshuk.

Former Member
0 Kudos

Hi.

I have already modified the type of processing in the adapter, it tries to process but while is trying to parse the empty file to XML, the Tab Message Content shows a message that says that a XML parse error occurred: no elements found. The message is not well processed in the monitor and the interface failed.

I have changed the structure of the mapping message so that the line in the file is 0u2026 outbound, in order to read empty files, but it doesnu2019t work.

I would really appreciate some help.

former_member208856
Active Contributor
0 Kudos

In the target structure, you have some Mandatory fields there, so pass some (Constant) value in these fields, when file is empty.

or make these fields non-mandatory in structure.

Former Member
0 Kudos

I have already configured the fields of the structure so that they are not obligatory but still donu2019t work. As I said before, the file is well processed when it has data but if not the mistake remains:

XML parse mistake: elements not found.

Location: http://sappi01:50000/mdt_soa/messagecontentservlet?attachment=0

Row 1, column 1:

Message from monitor PI:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Call Adapter --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand=""><SAP:Category>XIAdapter</SAP:Category><SAP:Code area="BPE_ADAPTER">UNKNOWN_MESSAGE</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText/><SAP:Stack>No object type found for the message. Check that the corresponding process is activated

An exception has occurred.

</SAP:Stack><SAP:Retry>M</SAP:Retry></SAP:Error>

Regards

former_member208856
Active Contributor
0 Kudos

Go to Tab "Processing" in Communication Channel.

There is one option "Empty-File Handling.

Choose Process Empty File option there.