Skip to Content

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

How to rename a XML file using the file/FTP adapter

Dear All,

I am trying to rename a file using VARIABLE NAME SUBSTITUTION.

My structure:

<ns1:MSg xmlns:ns1="http://www.mycomp.inf.br/msr">

<ns1:MSgVal type="A" Id="188549">

<ns1:cab>

<ns1:PO>4500000000</ns1:cPO>

<ns1:BI>90000000011</ns1:cBI>

</ns1:cab>

</ns1:MSgVal>

</ns1:MSg>

How do I do to get the value 188549 from the field Id that is into the tag MSgVal?

I created a variable var1 and my reference is:

var1 --> payload:ns1:MSg,1,ns1:MSgVal,1,Id@,1

I am getting the error:

Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var1

Regards,

Fernando

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