Skip to Content

Variable substitution in XI (7.0 version).

Maybe you could give us a short hint regarding an error we are getting during the variable substituion in an outbound file adapter.

How can we specify a namespace in the variable substituion?

Without namespace this is working well, but we don't know how to specify the namespace.

We get this error essage: #2006-03-17 15:29:07 CET: Message processing failed: Error during

variable substitution:com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: FileName

Here comes our file:

<?xml version="1.0" encoding="UTF-8" ?>

http://sap.com/xi/GMStoreConnectivity">

<GMFileHeader> <StoreNumber>0000002101</StoreNumber> <FileName>PluTxn</FileName> </GMFileHeader> <UpdateType>1</UpdateType> <PLU>000000000000610733</PLU> <RetailPrice>0.99</RetailPrice> <QuantityDescription>BX</QuantityDescription> </ns1:GMPluTxn>

We set the flag 'enable variable subsitution' and specified the filename

variable as follows:

FileName payload:ns1:GMPluTxn,1,GMFileHeader,1,FileName,1

The FileName variable is used in the File Name Scheme field:

%FileName%.asc

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2006 at 10:47 AM

    Give it like this and see if it works

    FileName payload:GMPluTxn,1,GMFileHeader,1,FileName,1

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.