cancel
Showing results for 
Search instead for 
Did you mean: 

Failed Receiver Determination on empty file

Former Member
0 Kudos

I have seen suggestions matching the solution I have tried, but it is not working in my scenario.

The scenario is an empty CSV file inbound to 3 receivers.  In the standard receiver determination,  I created a context condition for the 'SAP system' receiver, which uses RFC adapter.  The condition is:  'Sourcefilesize not equal 0'.  For an empty file, the 'SAP system' receiver should not be selected because it has mapping to the RFC structure.   The other 2 receivers are SFTP and file, and the client requires they receive the empty input file.

I see the file size is captured in the dynamic configuration in the MONI:

namespace:  XI/System/File.....name="Sourcefilesize">0<SAP:record...

The error is: Problem while determining receivers using interface mapping:  Error while determining root tag of XML: BOM / charset detection failed.

The system is PI 7.1, the sender comm channel is Advantco with namespace override and content conversion.  I have tried using file type 'binary' and type 'text', with UTF-8 encoding - results in the same error either way.  

The file is coming from an external vendor - I do not believe they will make any changes to it, so hopefully this can be resolved in PI. 

All suggestions are appreciated.  Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Robin

Since the payload is blank, PI is not able to identify the intefrace and failing in the interface mapping.

If you want to process the empty file then, you will have to remove the interface mapping from the interface determination.

Regards

Osman

Former Member
0 Kudos

Hareesh and Osman, thank you for your replies.

I should have pasted the entire message.  When testing in the IB, it fails in receiver determination..

""Error when determining the receiver: Problem while determining receivers using interface mapping: Error while determining root tag of XML: BOM / charset detection failed Error while parsing an XML stream: &#39;BOM / charset detection failed&#39""

Only the SAP system RFC receiver has message mapping - the SFTP and file receivers do not.  (I have changed only namespace and system names in screen below)

Receiver determination -

Interface Determination XXXX_D

Interface Determination Archive_D

Interface Determination SAP system

former_member184720
Active Contributor
0 Kudos

>>>>I should have pasted the entire message.  When testing in the IB, it fails in receiver determination..

When you test it in IB, i don't think it'll have any value for dynamic constant(sourceFileSize) 

Also if you don't have multiple operation change it to "non-operation specific" and test end-end.

And i assume you changed the namespace under SFTP sender channel to   http://sap.com/xi/XI/System/File

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you Hareesh - changing the receiver determination to non-operation specific did resolve the issue.

former_member184720
Active Contributor
0 Kudos

I don't think it's the problem with the receiver determination.

It's complaining about the interface mapping

>>>The other 2 receivers are SFTP and file, and the client requires they receive the empty input file.


Do you have any interface mappings for these SFTP and File receievers? If so it doesn't work as the input payload is empty.

Can you share the screenshots of your Rcvr determination and Intreface Detr.