cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Receiver Error:variable substitution can not parse the message xml:Content is not allowed in prolog

manikandan_shanmugam3
Active Participant
0 Kudos

Hi All,

Scenario: IDoc to XML

I am getting Error in Receiver SFTP Channel "Content is not allowed in prolog" while using Variable Substitution, But same configuration and IDoc (Triggered through we19)works fine with File channel.

I have checked and no space or special character in the field but numeric value.

Screenshot: SFTP Receiver Channel

Regards,

Mani

Accepted Solutions (1)

Accepted Solutions (1)

manikandan_shanmugam3
Active Participant

Hi All,

The issue was solved.

problem was i had PGP encryption module and Variable substitution works after the PGP module and fails as it could find the value/path.

Regards,

Mani

Answers (6)

Answers (6)

iaki_vila
Active Contributor
0 Kudos

Hi Manikandan,

Eng Swee Yeoh has developed an own module to use dynamic configuration without ESR development

I haven't see the option to access to any payload  tag, you can wait to Eng to answer this thread if it is possible or you can ask him in the comments of his document.

Regards.

manikandan_shanmugam3
Active Participant
0 Kudos

Hello All,

Any Module can be used to achieve the requirement?

Regards,

Mani

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Mani ,

I have configured a test configuration  and in my case it is working fine PFB.

SAP 7.31

So i would suggest you to check the payload path mentioned in variable substitution once more.

Br,

Manoj

iaki_vila
Active Contributor
0 Kudos

Hi Maninkandan,

Go to the monitoring and check if there is not a weird character in the payload or a blank character before XML declaration:

Regards.

manikandan_shanmugam3
Active Participant
0 Kudos

Hi,

Message was fine, I have tested same IDoc with File channel and it was success.

This is pass through Interface on PO 7.4 System

Regards,

Mani

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Mani,

Try renaming your variable from 'vendor_number' to 'vendornumber' note it should be in small letters.

This time Remove SWCV from Sender agreement and include SWCV in other objects.

Br,

Manoj

manikandan_shanmugam3
Active Participant
0 Kudos

Hi Manjoj,

No use, Still getting same erorr.

Regards,

Mani

manikandan_shanmugam3
Active Participant
0 Kudos

Hi All,

I removed SWCV at Receiver Interface tab and no use..

Regards,

Mani

manoj_khavatkopp
Active Contributor
0 Kudos

Recently i have used this variable substitution in bypass from proxy-->SFTP following are the steps which i have followed.

SA :  ( NO SWCV selected)

Sender

Sender_oa

Namespace

Use Virtual receiver with receiver party and component mentioned as *.

RD :  (SWCV selected )

Sender

Sender_oa

Namespace

Use Virtual receiver with receiver party and component mentioned as *.

Select Receiver on condition.

ID : (SWCV selected )

Sender

Sender_oa

Namespace

Receiver component as actual receiver and select the respective inbound interface.

RA: (SWCV selected )

Sender

Actual receiver , Reciver_ia ,namepsace

It would be helpful if you try to put screenshot of your objects.

Harish
Active Contributor
0 Kudos

Hi Mani,

Please check the below blog, it might help

manikandan_shanmugam3
Active Participant
0 Kudos

HI Harish,

I tried it but no use, Also this is pass through interface.

Regards,

Mani

former_member186851
Active Contributor
0 Kudos

Manikandan,

For pass-through interface I doubt you can use Variable substitution,

iaki_vila
Active Contributor
0 Kudos

Hi Rag,

On the file adapter if you have an XML and you don't want to have ESR development it is normal to use variable substitution. I haven't tried with SFTP adapter, Manikandan what is your SFTP addon  SP level and its patch?, are you sure the payload path is right?

Regards.

former_member186851
Active Contributor
0 Kudos

ya Fine Inaki.your correct. .

manikandan_shanmugam3
Active Participant
0 Kudos

Hi Inaki,

Yes payload path was perfect as i tested with File channel.

SAP PO 7.4 SP 11

SFTP SWCV SFTP ADAPTER 1.0

Regards,

Mani