Skip to Content

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

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

Screenshot.png (10.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    Dec 24, 2015 at 11:28 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2015 at 08:37 AM

    Hi Mani,

    Please check the below blog, it might help

    The Mystery of 'Content is not allowed in prolog'

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2015 at 09:14 AM

    Hi All,

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

    Regards,

    Mani

    Add comment
    10|10000 characters needed characters exceeded

    • 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.

  • Dec 21, 2015 at 09:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 21, 2015 at 11:21 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 22, 2015 at 01:42 PM

    Hello All,

    Any Module can be used to achieve the requirement?

    Regards,

    Mani

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 22, 2015 at 04:00 PM

    Hi Manikandan,

    Eng Swee Yeoh has developed an own module to use dynamic configuration without ESR development DynamicAttributeChangeBean - The no-mapping solution to changing Dynamic Configuration ... dynamically!

    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.

    Add comment
    10|10000 characters needed characters exceeded