Communication channel - Variable Substitution error,.

Hi,
I am having the following mesage type used in messag emapping as a target structure
mt_data
   -> Variable1
I am having a validation on mt_data node in message mapping for generating it, if condition is satisfied mt_data will be generetaed. Under mt_data i am having a variable. This variable is getting populated with some data using normal source to target mapping.
I am using this variable in my communication channel as a variable substitution, and is used to replace file name.
The issue I am facing is, when the mt_data fails to get generated (valid reason, since validation to generate it failed), communciation channel in RWB fails saying variable for substitution not found.
Kindly advice.
Thanks,
Mudita

The issue I am facing is, when the mt_data fails to get generated (valid reason, since validation to generate it failed), communciation channel in RWB fails saying variable for substitution not found.
1) make a check on the variable in receiver determination itself...so that if fails then the message stops in Receiver determination itself....why to take it forward till channel and then fail.
2) Make use of some constant term to fill the variable in the mapping if the validation fails.....this will help to put value in the variable even when the validation fails and the message does not fail in channel...filename created.
You need to check with the functional people on how they want the message prcessing to occur when the variable cannot be created by the mapping logic.
Regards,
Abhishek.

Similar Messages

  • Variable substitution error

    Hello All,
    Below is my source structure:
    <Messages>
       <Message1>
           <MT_BILL>    (0...*)
              <RECORD> (1....*)
                 <FILENAME>  (1...1)
    If using variable substitution for the filed FILE NAME which is in the source structure.
    This is the declaration I used in channel:
    payload:MT_BILL,0,RECORD,1,FILENAME,1
    But i am getting this error in channel monitoring
    DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var
    Can anyone help me here
    Regards,
    Moorthy

    Hi Dasika,
    In variable substitution we use the receiver message type path.
    Please map the required source field to any of the field at the reeiver side and use variable substitution.
    For 1:N muti-mapping with variable substition go through the below links:
    Re: 1: N File Scenario..
    Using Variable Substitution
    Regards,
    Pranav

  • SFTP Variable substitution error.

    Hi,
    my scenario is file to sftp fcc.
    I have successfully configured the modules and able to put the ouput fcc file inthe target sftp directory,
    But when implementing variable substitution i am facing issues getting error as
    Error: com.aedaptive.sftp.adapter.exception.VariableSubstitutionException : Error during variable substitution: the following variable was not found in the message payload: var1
    This is the input file:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:M_SFTP_FCC xmlns:ns0="http://xyz.com/pisandbox/testudf">
       <Detailed>
          <MFG_Name>XYZ</MFG_Name>
          <Model_Number>1234</Model_Number>
       </Detailed>
       <Header>
          <Order_No>345</Order_No>
          <Date_of_File>12122012</Date_of_File>
       </Header>
    </ns0:M_SFTP_FCC>
    Variable substitution decleration was:
    var1     payload:M_SFTP_FCC,1,Detailed,1,Model_Number,1
    i need to use the Model_NUmber.
    getting followng error in Comm channel monitoring --> Audit Log
    Unable to write message into file. com.aedaptive.sftp.adapter.exception.VariableSubstitutionException: Error during variable substitution: the following variable was not found in the message payload: var1
    Unable to find where the error is when i configured through file adapter its working fine.
    Thanks,
    --Kishore.

    HI,
    your variable declartion is perfect, can you please check the below points,
       1.To specify variables in the target directory and file name scheme, they must be enclosed by % characters.
       2.variable name is case sensitive, can you give only lower case instead of giving upper case.
       3. Model_Number is giving same as per the message type.
    Please look below link.
    SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    An interesting usage of Variable Substitution in XI
    regards,
    ganesh.
    Edited by: ganesh.nijampudi on Dec 7, 2011 4:51 AM

  • Comm Channel Variable Substitution - Use of wildcards to reference payload

    Hi!
    I am building a solution to write out tagged / XML IDOCs to a file adapter. I am using variable substitution to build the file name to include the message type, sending partner etc... in the target directory and filename.
    Is there a way to wildcard nodes in the variable substitution? For example:
    <i>Currently</i>
    payload:WMMBID01,1,IDOC,1,EDI_DC40,1,RCVPRN,1
    <i>Desired</i>
    payload:*,1,IDOC,1,EDI_DC40,1,RCVPRN,1
    where * is any wildcard.
    Reason is that we have multiple IDOC types and I want to avoid having to create multiple communication channels.
    Help appreciate and rewarded. Many thanks, Duncan.

    Hi Duncan !
    You can create the desired target filename and target directory by using dynamic configuration via java UDF in mapping. This allows you to create a target filename and/or directory based on a string..then you could use only one comm channel.
    to access info:
    // access dynamic configuration
          DynamicConfiguration conf = (DynamicConfiguration) param.get(
              StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","<b>FileName</b>");
          // read value
          String Filename = conf.get(KEY_FILENAME);
    // to write value:
    conf.put(KEY_FILENAME, "MyNewFileName");
    Regards,
    Matias

  • 'Variable Substitution' error - Expected numeric element index

    Hello everyone!
    I'm using the 'variable substitution' property in XI to replace the filename of the output file to a value in the message payload.
    Here are the parameters I provided:
    File Name Scheme: %filename%.xml
    Variable Name: filename
    Reference: payload:ORDERS05,1,recordset,1,IDOC,1,E1EDK02,BELNR,1
    I'm getting this error in the adapter engine:
    Caught exception while initializing variable substitution engine: Cannot parse pseudo-path for variable substitution: 'filename': Expected numeric element index, got 'BELNR': For input string: "BELNR"
    Can anyone tell me what this means, and how I can fix this problem?
    Thanks in advance!
    Glenn

    Yup, raj! it's IDOC to file.... I did what you asked but I'm now getting this error:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    any idea what it means?
    Kind regards,
    Glenn

  • Variable substitution error in Prod- Urgent

    Hi Friends
    I transported my objects from dev to production and one of my scenario started giving this error .
    Please guide
    Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: store: 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: store.

    this error is beacuse the variable substution which is specified in the rceiver file adapter is failling....
    ROOT cause:
    goto the receiver file adapter of the interface you have moved into PRD...you will c the filename somethinglike this
    %var%.txt...below you will c a variabel substuition screen
    var payload:..........
    check the foeld which is refering from the target strcuutre...the data is not coming into this field of variable substuition...so it is thorwoing this error.....
    this is considering the variable substution path is right? i belive it is right since you haev omved this to PRD from Devlopment...if this was working in development...check the data is coming in that field.
    wehen you did a tranposrt into PRD you went to the change list did u edit the rceiver adapter mandatory fields according to the PRD envinorment? dd u also make sure the variabel substution is not touched when you did this?

  • Variable substitution error while using Seeburger module parameter

    Hi Freinds,
    I would like to use the variable substitution in a receiver file adapter to add the invoice no.
    (which is contained in the XML file) to the target filename.
    In addition I have to convert the XML file to an X12 EDI format using the seeburger module "localejbs/CallBicXIRaBean".
    As soon as this entry is made in the modules the following error message occurs:
    "com.sap.aii.adapter.file.configuration.DynamicConfigurationException:
    Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException:
    Caught SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException:
    XMLParser: No data allowed here: (hex) 53, 4f, 48(:main:, row:1, col:3)"
    My problem is that the conversion from XML to X12 EDI is done before the variable substitution is started.
    That`s why the reference for the variable is no longer valid as the file is already converted to a X12 EDI (=flatfile) format.
    If I disable one of the two steps (either 1:1-mapping or variable substitution) the other step runs properly.
    Has anybody an idea how to solve this topic?
    Is it possible to specify the variable substitution as module?
    If this is possible I could solve it by just reordering the two steps in the module chain.
    Regards
    Venkatesh

    Use Dynamic Configuration Bean to set this value. You have to use this well before "localejbs/CallBicXIRaBean".
    Check SAP note : 974481 for more information.
    Blog: [/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean|/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean]
    Second Approach if the above approach doesnt work.
    Use Dynamic Configuration concept in UDF to set the filename under message Mapping.
    Thanks,
    - Gujjeti.
    Edited by: Praveen Gujjeti on Feb 25, 2009 11:25 AM

  • Sender communication channel stopped after error "Connection Timed Out"

    Hi experts,
    in our scenario we have an asyncronous sender communication channel with polling every 6 seconds to an external FTP server.
    Yesterday evening a "Connection Timed Out" error came.
    After this error the polling stopped but channel in communication channel monitoring still remains green.
    So status green but no polling.
    To solve this problem we stopped and then restarted channel from CC monitoring.
    The channel is configured "manually".
    The question is: Is it possible to avoid this problem? Maybe there's a parameter in configuration to set?
    After a time out error the channel must go on polling, it should not stop. Or it must shows red status.
    Thanks
    Fabio Boni

    HI,
    I think PI level is "SAP J2EE Engine 7.00 PatchLevel 109886.44"
    Thanks
    Fabio

  • Odd Variable Substitution Error in SQL Query

    I'm trying to finish up an application but one goofy error is
    throwing me for a loop. The error complains about my SQL syntax on
    the line containing "#filelist_sql#" near the bottom of the query,
    but when I output the SQL and run it in phpMyAdmin, it works fine.
    Thanks in advance for any help provided. I think I've just
    been looking at this way too long.
    Code follows:

    Thanks for the quick assistance, Azadi. I am finding the same
    bit of strangeness occurring just a bit earlier in my code.
    The application complains about the SQL syntax near
    "#grouplist_sql#" in the attached code.
    After the code gets processed (using '11' for
    sql_find_lists.id), the SQL looks like:
    SELECT DISTINCT file_id FROM grouplists_to_files WHERE
    grouplist_ids = '11' OR grouplist_ids LIKE '11,%' OR grouplist_ids
    LIKE '%,11' OR grouplist_ids LIKE '%,11,%'
    Hopefully someone can spot something else brilliantly obvious
    that is wrong here.

  • XI Communication Channel Error Explanation

    Hi All,
    Does anyone happen to know :-
    1)  Is it possible to use CCMS to email the errors coming from a communication channel error Explanation field
    2)  Are these messages stored in a table I can check
    The reason I need to know this is because we sometimes encounter an error such as "Conversion of file content to XML failed at position 838: java.lang.Exception: ERROR converting document line no. 839 according to structure 'XXX_XXX_XXX':java.lang.Exception: ERROR in configuration / structure 'XXX_XXX_XXX.': More elements in file csv structure than field names specified!
    This tells us exactly where the error occurred but using Communication Channel Monitoring the error message only remains for a little while before the polling messages remove it from the display.  Since the process runs early hours of the morning we never get to see these messages.
    Any help appreciated.
    Thanks
    Craig

    Hi Raquel,
    Let me try to clear out some things in this thread . First of all you do your alert configuration which you say you have already done. Thats good . Now you ask that you want only to monitor the communication channels and you want specific guide . Here is the specific guide.
    If you have configured alerts you will know that when you create an alert rule you have the option to choose radio button where did the error occur it could be no restriction , integration engine or adapter engine. You need to choose adapter engine.
    Now whenever the colour of the lights change to red. You will get your alerts.
    Regards
    joel
    Edited by: joel trinidade on Apr 9, 2009 9:41 AM

  • Communication Channel Monitoring Error

    Hi...Experts,
    we r doing RFC-SOAP scenario with out using WSDL file,
    sender Communication Channel Monitoring getting error like this
    Error in processing caused by: com.sap.aii.af.mp.module.ModuleException: call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden
    In the Receiver Communication Channel Monitoring, getting error like this.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden.
    how can i rectify these errors, pls suggest me..
    regards,
    Pasi.

    Hello Pasi,
    Error: HTTP 403 Forbidden
    Description: The server understood the request, but is refusing to fulfill it
    Possible Tips:
    Path sap/xi/engine not active
    • HTTP 403 during cache refresh of the adapter framework - Refer SAP Note -751856
    • Because of Inactive Services in ICF –Go to SICF transaction and activate the services. Refer SAP Note -517484
    • Error in RWB/Message Monitoring- because of J2EE roles – Refer SAP Note -796726
    • Error in SOAP Adapter - "403 Forbidden" from the adapter's servlet. –Because of the URL is incorrect or the adapter is not correctly deployed.
    Go through Micheal's Blog..
    XI: Timeouts
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Thanks,
    Satya Kumar

  • JDBC : error in receiver communication channel?

    Hi Experts ,
    I am doing a JDBC to JDBC scenario. The following error comes in my receiver communication channel monitoring.
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'VIN_STG_STORER_RMS' (structure 'Statement'): java.sql.SQLException: FATAL ERROR document format in structure 'Statement': expected 'access' tag(s) not found
    My receiver data type has got the 'access' tag. What other reason can cause this error?
    Receiver table name : VIN_STG_STORER_RMS
    Regards,
    Shamly

    Hi Ranjit,
    My moni shows processed successfully. but the error is in communication channel.
    I have pasted below the target xml structure. Any suggestions?
    Thank you.
    Shamly.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://mg.adityabirla.com/mg/wms/store_supps" targetNamespace="http://mg.adityabirla.com/mg/wms/store_supps">
    <xsd:element name="MT_WMS_Store_Supps" type="DT_WMS_Store_Supps" />
    <xsd:complexType name="DT_WMS_Store_Supps">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    1f3cf480f98411dcb83a0003ba0adbbd
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="Statement">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    33dd8ee0ef5c11dcb812001d7df81104
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="VIN_STG_STORER_RMS">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    33dd8ee1ef5c11dca724001d7df81104
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="access" minOccurs="0" maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    a31a45f0ef5c11dca305001d7df81104
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="STORERKEY" minOccurs="0">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    a31a45f1ef5c11dcb3c3001d7df81104
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="0" />
    <xsd:maxLength value="15" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TYPE" minOccurs="0">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    a31a45f2ef5c11dcc33e001d7df81104
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="0" />
    <xsd:maxLength value="30" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="WHSEID" minOccurs="0">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    a31a45f3ef5c11dcabb7001d7df81104
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="0" />
    <xsd:maxLength value="30" />
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    ...and so on for many other fields.
    Edited by: Shamly MM on Mar 24, 2008 10:27 AM

  • Error in JMS Communication Channel not raising alert

    Processing Errors in JMS Communication Channel are not raising alerts.
    The settings on the communication channel retires are set at 3 and 5min interval.
    In RWB the JMS communication channel shows processing errors but an alert is not raised.
    The alert are configured in our system and we even have a catch all alert rule with * (wildcard). Errors in PI message processing are raising alerts but errors in Comm Channel are not raising alerts.
    The message in SXI_MONITOR shows as processed successfully but when we check the RWB and Comm. Channel Monitoring we see processing errors "Channel error occured; detailed error description: JMS error: Connection to the server has been terminated; Linked error: Connection reset, Error Code:null"
    Are we missing any configuration? How do we get alerts/notifications if there are errors in Comm. Channel without having to login into RWB and watch it periodically?
    Any help is greatly appreciated.
    RM

    Hi,
    What is the staus of Communication channel in RWB when it fails, RED ??if yes then it should genarate alert.
    create one more alert for specific to JMS interface and check it out.
    Regards,
    Raj

  • Error at sender JDBC communication channel

    Dear All,
    While executing JDBC(MS-Access)-PI-RFC interface, we are getting error in sender JDBC communication channel. The error is as following:
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    sappidev\Datatran\Database.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
    I have checked various posts on forums and as per those no drivers installation is required to access MS-Access database and I am not able to find any post which could solve my problem.
    Kindly guide me on what might be the problem and how this can be resolved.
    Regards,
    NJ

    Hi Nishu,
      That error ALWAYS means your DSN name is incorrect or can't be accessed for some reason (permission). The ODBC part says that the bridge is working.
      But that DSN is 100% wrong or cannot be seen by the user account that the server is running as. Make sure you have a system DSN and not a user one.
    You can refer these....
    http://bytes.com/topic/java/answers/625400-java-sql-sqlexception-microsoft-odbc-driver-manager-data-source-name-not-found
    http://www.daniweb.com/forums/thread13092.html#
    Hope this will help you....
    Regds,
    Pinangshuk.

  • Capturing the communication channel monitoring error into an alert.

    Hi,
    The following is my scenario:
    File adapter polls using file content conversion,if the source file is not in a proper format the file wont be picked up and communication channel will show error in channel monitoring.
    I have to configure an alert for the same.
    Can i capture the error message shown in communication channel monitoring and raise alert?
    Many Thanks,
    Pritish

    refer todays thread on the same issue;
    FILE ADAPTER ISSUE

Maybe you are looking for

  • Firefox will not start - already tried all suggestions from troubleshooting

    I searched google and here a couple times before posting this. My problem is simple, firefox just will not start. I can click on the shortcut, or the icon inside the c/program files/mozilla folder, i can click "run as administrator", i can do run/fir

  • How to write more than 65536 data in excel Via Labview in one column

    I have more than 65536 data and i want to write these data in excel sheet. It is giving Error:- "Description:- Error -2146827284 occurred at an unidentified location This error code is undefined. No one has provided a description for this code, or yo

  • XI as middleware between Portal & R3

    Hi, I have a customer woh is considering implementing R3 & Portal. Does anyone can tell in avarege what is the overhead in performance if the XI comes between the portal & R3 ? what will be the pros & cons implementing XI in this scenario ? thanks

  • ALC-WKS-007-044 and ALC-WKS-005-059 and ALC-WKS-007-104 / WorkSpace

    When I click on the "To Do", it pops up the ALC-WKS-007-044 error, something about error in retrieving process list; in addition to that, ALC-WKS-005-059 is also in JBoss error.log. After I got this a few times, when I try to Initiate a form, I got A

  • Locking down a remote session

    Hello, I am trying to limit access for a user when connecting remotely to my SQL database. I can successfully connect remotely with Excel 2010 using SQL Authentication. I have set the default database for the user, but I can still see the master, msd