Skip to Content
author's profile photo Former Member
Former Member

Error while using the variable name "VARIABLE" in variable substitution

Hi Experts,

I am using variable substitution to have my output filename set as a payload field value. It is working fine when I am using the variable name as fname, subs etc but channel goes in error when I am using the variable name as "VARIABLE". This is probably a reserved word but i would like to know where i can find a detailed documentation on this. Say things to note / restrictions while using variable substitution.

This is the error in the channel:

Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: java.text.ParseException: Variable 'variable' not found in variable substitution table: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Variable 'variable' not found in variable substitution table

Thanks,

Diya

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2011 at 09:20 AM

    Hi Zevik,

    Thanks for the reply. The output file is created correctly by merely changing the variable name to something else and hence the doubt.

    Below is the configuration:

    Variable Substituition

    VARIABLE payload:interface_dummy,1,Recordset,1,Header,1,field1,1

    *********************************************************

    Filename schema : TEST_%VARIABLE%.txt

    *****************************************************

    Output xml structure:

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

    - http://training.eu.unilever.com">

    - http://training.eu.unilever.com">

    - <Header>

    <identifier>HDR</identifier>

    <field1>001</field1>

    <field2>001</field2>

    <field3>R</field3>

    </Header>

    - <Detail>

    <identifier>A</identifier>

    <field1>000000002</field1>

    <field2 />

    <field3>Doretha.Walker</field3>

    </Detail>

    I thimk my configuration is correct as it is working correctly with the variable name change, However, maybe i missed something !

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 28, 2011 at 08:29 AM

    Hi Thomas,

    I use variable substitution a lot, this error happens a lot, this is usually because of error in configuration.

    variable substitution is case sensitive, check also the payload path.

    as far as i know there is no reserved names in variable substitution.

    could you provide the configuration youve done ?

    Edited by: Zevik Heinoch on Jun 28, 2011 10:31 AM

    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.