Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SFTP File Content Conversion Error:The variable substitution can not parse the message xml: Content is not allowed in prolog.

Hi

My Scenario is IDOC to SFTP using File Content Conversion.

I have successfully configured the whole scenario and i am able to send FCC file to sftp directory.

But when implementing variable substitution i am facing following error


ERROR:


Transmitting the message to endpoint <local> using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: javax.resource.ResourceException: The variable substitution can not parse the message xml: Content is not allowed in prolog.


For Variable substitution i am taking two values from the payload one from the Header segment and one from the Indicator segment.

The target structure looks like below

<Record_Set>

      <Header>

              <IDOC_NO>000001234<IDOC_NO>  {variable used in variable substitution}

      </Header>

      <Data_Segment>

      </Data_Segment>

      <Trailer_Segment>

      </Trailer_Segment>

      <Indicator_Segment>

                <Indicator_No>1234<Indicator_No>  {variable used in variable substitution}

      <Indicator-Segment>

</Record_Set>

i have already implemented same using FTP adapter and it is working fine there but in SFTP it is giving above ERROR.

Please provide any suggestion for this .

Thanks,

Jatin Sharma

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question