cancel
Showing results for 
Search instead for 
Did you mean: 

Variable substitution in XI (7.0 version).

malika_boubguel
Explorer
0 Kudos

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" ?>

<ns1:GMPluTxn xmlns:ns1="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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Give it like this and see if it works

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