Receiver File Name Variable Substitution :payload: Fatal Error

Hi all
         i have a scenario of  idoc to file.., i need to create a dynamic file name taking 1 field variable from the payload.  The idoc -xml structure in XI is :
                   <b><INVOICE03></b>
                      <b> <IDOC BEGIN="1"</b>>
                          <b><EDI_DC40 SEGMENT="1"></b>
                                      <field1> ashu </field1>
                         <b> </EDI_DC40>
                           <ENEDL20></b>
                                       <field2> rawat</field1>
                          <b> <ENEDL20>
                       </IDOC>
                    <INVOICE03></b>
i need to pick th value of field2 , for the target file name..
In variable substitution i had given  var = INVOICE03,1,IDOC,1,E1EDL40,1,E1EDL20,1,VBELN,1
<i>
STILL I AM GETTING THE ERROR </i> :varsubst.VariableDataSourceException: Caught SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) .
NOTE : my target variable is getting populated properly.
i tried a lot of combinations in REFERENCE VARIABLE , even  giving ( payload: xxx)
but for all  changes it is giving the same error....
i referred the following blogs also :
Re: Variable substitution
Regards
AR

HI
the target payload is :
  <?xml version="1.0" encoding="UTF-8" ?>
- <DELVRY03>
- <IDOC BEGIN="1">
+ <EDI_DC40 SEGMENT="1">
  <TABNAM>EDI_DC40</TABNAM>
  <MANDT>900</MANDT>
  <DOCNUM>0000000002093240</DOCNUM>
  <DOCREL>46C</DOCREL>
  <STATUS>30</STATUS>
  <DIRECT>1</DIRECT>
  <OUTMOD>2</OUTMOD>
  <IDOCTYP>DELVRY03</IDOCTYP>
  <MESTYP>DESADV</MESTYP>
  <STDMES>DESADV</STDMES>
  <SNDPOR>SAPQA1</SNDPOR>
  <SNDPRT>LS</SNDPRT>
  <SNDPRN>ZLOG900</SNDPRN>
  <RCVPOR>XIDEV</RCVPOR>
  <RCVPRT>KU</RCVPRT>
  <RCVPFC>WE</RCVPFC>
  <RCVPRN>8300000717</RCVPRN>
  <CREDAT>20070820</CREDAT>
  <CRETIM>143341</CRETIM>
  <SERIAL>20070703104747</SERIAL>
  </EDI_DC40>
- <E1EDL20 SEGMENT="1">
<b> <VBELN>0083030974</VBELN> </b>
  <VSTEL>5000</VSTEL>
  <VKORG>STK</VKORG>
  <INCO1>C&F</INCO1>
  <INCO2>Melsele</INCO2>
  <VSBED>03</VSBED>
  <BTGEW>12000.000</BTGEW>
  <NTGEW>0.000</NTGEW>
  <GEWEI>GRM</GEWEI>
  <VOLUM>0.000</VOLUM>
  <ANZPK>00000</ANZPK>
  <PODAT>20070703</PODAT>
  <POTIM>104747</POTIM>
+ <E1EDL22 SEGMENT="1">
  <VSTEL_BEZ>ID Warehouse</VSTEL_BEZ>
  <VKORG_BEZ>Stock Transfer</VKORG_BEZ>
  <INCO1_BEZ>Cost & Freight</INCO1_BEZ>
  <VSBED_BEZ>Road</VSBED_BEZ>
  </E1EDL22>
+ <E1EDL21 SEGMENT="1">
  <LFART>ZRUS</LFART>
  <EXPKZ>X</EXPKZ>
  <LPRIO>03</LPRIO>
  <TRAGR>0001</TRAGR>
- <E1EDL23 SEGMENT="1">
  <LFART_BEZ>Delivery:Russian Exp</LFART_BEZ>
  <LPRIO_BEZ>High</LPRIO_BEZ>
  <TRAGR_BEZ>On pallets</TRAGR_BEZ>
  </E1EDL23>
  </E1EDL21>
+ <E1EDL18 SEGMENT="1">
  <QUALF>ORI</QUALF>
  </E1EDL18>
+ <E1ADRM1 SEGMENT="1">
  <PARTNER_Q>WE</PARTNER_Q>
  <PARTNER_ID>8300000717</PARTNER_ID>
  <LANGUAGE>EN</LANGUAGE>
  <FORMOFADDR>M/s.</FORMOFADDR>
  <NAME1>NYK Logistics</NAME1>
  <STREET1>Keetberglaan 2</STREET1>
  <POSTL_COD1>B-9120</POSTL_COD1>
  <CITY1>Melsele</CITY1>
  <COUNTRY1>BE</COUNTRY1>
  <REGION>RII</REGION>
  </E1ADRM1>
+ <E1ADRM1 SEGMENT="1">
  <PARTNER_Q>OSP</PARTNER_Q>
  <PARTNER_ID>5000</PARTNER_ID>
  <LANGUAGE>EN</LANGUAGE>
  <NAME1>I/D WAREHOUSE : DELHI</NAME1>
  <NAME2>B-84/1, Okhla Phase II, New Delhi</NAME2>
  <CITY1>New Delhi</CITY1>
  <TELEFAX>CST:LC/87/051655/05/61</TELEFAX>
  <COUNTRY1>IN</COUNTRY1>
  <REGION>DEL</REGION>
  </E1ADRM1>
+ <E1ADRM1 SEGMENT="1">
  <PARTNER_Q>OSO</PARTNER_Q>
  <PARTNER_ID>STK</PARTNER_ID>
  </E1ADRM1>
+ <E1EDT13 SEGMENT="1">
  <QUALF>006</QUALF>
  <NTANF>20070703</NTANF>
  <NTANZ>000000</NTANZ>
  <NTEND>20070703</NTEND>
  <NTENZ>000000</NTENZ>
  <ISDD>00000000</ISDD>
  <ISDZ>000000</ISDZ>
  <IEDD>00000000</IEDD>
  <IEDZ>000000</IEDZ>
  </E1EDT13>
+ <E1EDT13 SEGMENT="1">
  <QUALF>003</QUALF>
  <NTANF>20070703</NTANF>
  <NTANZ>000000</NTANZ>
  <NTEND>20070703</NTEND>
  <NTENZ>000000</NTENZ>
  <ISDD>00000000</ISDD>
  <ISDZ>000000</ISDZ>
  <IEDD>00000000</IEDD>
  <IEDZ>000000</IEDZ>
  </E1EDT13>
+ <E1EDT13 SEGMENT="1">
  <QUALF>001</QUALF>
  <NTANF>20070703</NTANF>
  <NTANZ>000000</NTANZ>
  <NTEND>20070703</NTEND>
  <NTENZ>000000</NTENZ>
  <ISDD>00000000</ISDD>
  <ISDZ>000000</ISDZ>
  <IEDD>00000000</IEDD>
  <IEDZ>000000</IEDZ>
  </E1EDT13>
+ <E1EDT13 SEGMENT="1">
  <QUALF>007</QUALF>
  <NTANF>20070703</NTANF>
  <NTANZ>000000</NTANZ>
  <NTEND>20070703</NTEND>
  <NTENZ>000000</NTENZ>
  <ISDD>00000000</ISDD>
  <ISDZ>000000</ISDZ>
  <IEDD>00000000</IEDD>
  <IEDZ>000000</IEDZ>
  </E1EDT13>
+ <E1EDT13 SEGMENT="1">
  <QUALF>010</QUALF>
  <NTANF>20070703</NTANF>
  <NTANZ>000000</NTANZ>
  <NTEND>20070703</NTEND>
  <NTENZ>000000</NTENZ>
  <ISDD>00000000</ISDD>
  <ISDZ>000000</ISDZ>
  <IEDD>00000000</IEDD>
  <IEDZ>000000</IEDZ>
  </E1EDT13>
+ <E1EDT13 SEGMENT="1">
  <QUALF>015</QUALF>
  <NTANF>20070703</NTANF>
  <NTANZ>000000</NTANZ>
  <NTEND>20070703</NTEND>
  <NTENZ>000000</NTENZ>
  <ISDD>00000000</ISDD>
  <ISDZ>000000</ISDZ>
  <IEDD>00000000</IEDD>
  <IEDZ>000000</IEDZ>
  </E1EDT13>
+ <E1EDL33 SEGMENT="1">
  <ALAND>IN</ALAND>
  <EXPVZ>4</EXPVZ>
  <ZOLLA>0001</ZOLLA>
  <IEVER>3</IEVER>
- <E1EDL34 SEGMENT="1">
  <EXPVZ_BEZ>Air</EXPVZ_BEZ>
  <ZOLLA_BEZ>New Delhi</ZOLLA_BEZ>
  <IEVER_BEZ>Road</IEVER_BEZ>
  </E1EDL34>
  </E1EDL33>
+ <E1EDL24 SEGMENT="1">
  <POSNR>000010</POSNR>
  <MATNR>000000000001005372</MATNR>
  <ARKTX>ALPRAZOMED TAB 0.5MG 5X10B BE</ARKTX>
  <MATKL>S5202</MATKL>
  <WERKS>5000</WERKS>
  <LFIMG>2.000</LFIMG>
  <VRKME>15S</VRKME>
  <LGMNG>10.000</LGMNG>
  <MEINS>S10</MEINS>
  <NTGEW>0.000</NTGEW>
  <BRGEW>12000.000</BRGEW>
  <GEWEI>GRM</GEWEI>
  <VOLUM>0.000</VOLUM>
  <VOLEH>CMQ</VOLEH>
  <LADGR>Z002</LADGR>
  <TRAGR>0001</TRAGR>
  <VTWEG>ST</VTWEG>
  <SPART>20</SPART>
  <GRKOR>000</GRKOR>
  <POSEX>000000</POSEX>
- <E1EDL25 SEGMENT="1">
  <LADGR_BEZ>Injectibles- for MP</LADGR_BEZ>
  <TRAGR_BEZ>On pallets</TRAGR_BEZ>
  <VTWEG_BEZ>Stock Transfer</VTWEG_BEZ>
  <SPART_BEZ>Formulations</SPART_BEZ>
  </E1EDL25>
- <E1EDL26 SEGMENT="1">
  <PSTYV>NLN</PSTYV>
  <MATKL>S5202</MATKL>
  <PRODH>010080010010100102</PRODH>
  <UMVKZ>5</UMVKZ>
  <UMVKN>1</UMVKN>
  <UEBTO>0.0</UEBTO>
  <UNTTO>0.0</UNTTO>
  <XCHBW>1</XCHBW>
  <MVGR1>U</MVGR1>
  <MVGR2>U</MVGR2>
  <MVGR3>U</MVGR3>
  <MVGR4>U</MVGR4>
  <MVGR5>U</MVGR5>
- <E1EDL27 SEGMENT="1">
  <PSTYV_BEZ>StandStockTransItem</PSTYV_BEZ>
  <MATKL_BEZ>Belgium</MATKL_BEZ>
  <PRODH_BEZ>Tablets</PRODH_BEZ>
  <WERKS_BEZ>Export Warehouse</WERKS_BEZ>
  <MVGR1_BEZ>Unasigned</MVGR1_BEZ>
  <MVGR2_BEZ>Unassigned</MVGR2_BEZ>
  <MVGR3_BEZ>Unassigned</MVGR3_BEZ>
  <MVGR4_BEZ>Unasigned</MVGR4_BEZ>
  <MVGR5_BEZ>Unassigned</MVGR5_BEZ>
  </E1EDL27>
  </E1EDL26>
- <E1EDL35 SEGMENT="1">
  <GRWRT>0.00</GRWRT>
  </E1EDL35>
- <E1EDL43 SEGMENT="1">
  <QUALF>V</QUALF>
  <BELNR>7200000025</BELNR>
  <POSNR>000010</POSNR>
  </E1EDL43>
  </E1EDL24>
  </E1EDL20>
  </IDOC>
  </DELVRY03>
i need <VBELN>0083030974</VBELN>  in file name
Regards
AR

Similar Messages

  • Receiver File Adapter:Variable substitution :FATAL  ERROR

    HI all
    as per the previous thread :
    <b>Receiver File Name Variable Substitution :payload: Fatal Error
    in our idoc to file sceanrio, we are using simple <b>graphical mapping.</b>
    for dynamic file name , variable field is at <b>Target message type</b>,So  on using <b>Variable substitution</b>, again the error is same :
    SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) .
    <b>Our XI  Component version : 2004
    WAS 6.4 SP 15</b>
    Thanks
    AR

    Ashutosh,
       There is nothing to do with your mapping programs. Its the mistake in ur reciever file adapter configuration for variable substitution.I asked u whether u changed message mapping in order to implement the UDF!!
    Did u tried checking the audit log. Ok just to see where u are going wrong, instead of using Payload :... in Variable substitution use Message:..... and give some interface name so that to check whether the file is created with Interface name.
    Juz give a try!!!
    Best regards
    raj.

  • Change in time stamp format in receiver file name

    Hi,
    We have a scenario as AS2 - PI - FTP Server (AS/400). We want target file name as BMMDDHHSS where B is constant and
    MM (month e.g., 01), DD (day e.g., 12), HH (hour e.g.,11), SS (seconds e.g., 12). Is there standard way of doing this, just by changing some configuration in receiver file adpter?
    Please let me know, how could we do this using PI. If script is optional, keeping as back-up only.
    How come, naming dynamic receiver file names are so difficult in PI. I have been trying to get the answers for our another requirement like to name receiver file as C1.YYMMDD.C2 in a file pass through scenario for more than a month.
    It is just file through scenarios, so we can't use variable substitution as we are not going to read content/payload of file
    Thanks in advance,
    - Riya Patil

    Hi Shabarish 
    Thanks for your reply. I have trying to make this UDF work since almost a month with no luck. Can you please check where am I doing wrong?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String SourceFileName = "C1." + a + ".C2";
    conf.put(key, SourceFileName);
    return " ";
    In the above code, I am passing date as "a". And mapping CurrentDate (formatted) --> UDF --> Target root node.
    I am getting the following error in SXMB_MONI:
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Lockbox_Filename_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
    <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_Lockbox_Filename_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
    Your help would be much appreciated.
    Thanks,
    Riya Patil

  • How to give field name to Receiver File Name.

    Hi ,
    In my source target structure there is a field name
    "job id" .
    I need that value coming in that field name to be given to
    Receiver File Name.
    Thanks in Advance

    Hi,
    You could use the field name to the File Name. For that you could go ahead with variable substituiton in receiver communication channel.
    In receiver Communication channel use variable substitution as
    In file name -- %Var1%
    In Variable substitution parameter give Var1 ---> payload:<field Name>
    Refer
    SAP Network Blog: An interesting usage of Variable Substitution in XI
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    variable substitution
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/464442c1a1c253e10000000a1550b0/content.htm
    Also see the below links to use the dynamic variable substitution
    /people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Also
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Thanks
    swarup

  • Dynamic Receiver file name in AS2 adapter

    Hi Experts,
    How to get dynamic receiver file name in AS2 adapter. We need receiver file name same as of sender file name.
    We tried selecting dynamic attributes file name but we are getting followin error in CC.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message.
    Thanks,
    Hari

    hi hari,
    You can't do it manually. As both adapter are in different context.
    You can go with UDF to slove ur problem.
    Just extract the input file name using Dynamic configuration
    Store that in some variable.
    Use same name in the dynamic file name in AS2 receiver. Below code might be useful.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtAS2FileName", "DYNFILENAME");
    conf.put(key,strfilename);
    Thanks
    Jai
    Edited by: Jaideep Baid on Apr 9, 2010 9:16 AM

  • Appending the Original File Name as Suffix to Receiver File Name

    Been searching and I've seen Michael's blog about creating a UDF to place the original file name in the payload.    Since this is a file->file scenario, I have no mapping. 
    I have the Adapter-Specific Attributes turned on on the Sender to pass the file name in the DynamicConfiguration of the message header and I can see it in the message.
    What I want to do it to have a target file name in the form of:   XXXXX_<i>originalfilename</i>.
    So I have turned on variable substitution and created a variable called 'file'.
    In the File Name Scheme Parameter I have entered: XXXXXX_%file%
    If I set the variable substitution refererance for 'file' to message:message_id, my file name is created as XXXXX_message_id,  or any of the other options from -> <a href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm">SAP Adapter Help Page</a>
    How can I get the value of FileName as the value for my variable %file%?

    > Actually, what I meant was the mapping will not know
    > the value I have entered in the receiver
    > communication channel - File Name Scheme parameter
    > value.   For example in CC for Target System 1  the
    > FNS = FMRECEIVER1, the CC for Target System 2 the FNS
    > = FM_RECEIVER2 and so on.  
    >
    > Are you saying in the mapping I could access the
    > value of FNS from the communication channel in the
    > mapping?   
    No, you cant read in mapping what you set in CC.
    However, you can ignore the parameter FileName scheme in CC and just set it in mapping runtime.
    The way you are using, you'll have to maintain the prefix for each receiver adapter you have. If you had it in mapping, you could just do something like:
    String receiver = container
        .getTransformationParameters().
        .get(StreamTransformationConstants.SENDER_SERVICE);
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    String orgFileName = conf.get(key);
    String tgtFileName = receiver + "_" + orgFileName;
    conf.put(key, tgtFileName);
    and then you wouldn't have to maintain the file name scheme in CC.
    Regards,
    Henrique.

  • Receiver File Name assign dynamically

    Hi friends,
              In our scenario, receiver file name is assigned to dynamically. Example Inventory_Current date. Inventory is static, but CurrentDate is changed on runtime.
    I was tried to Variable substitution method and UDF method. In this type dynamic value is mapped to target structure, so Receiver payload shows the dynamic value in output file. But we don't need that dynamic value. So, in variable substitution method and UDF method is not achived to my requirement.    
           Please any one help me how to change file name at runtime (receiver communication channel). If using any module program pls forward to me.
    Thanks & Regards
    Vijay

    Hi,
    if we want to get the Output file name as One of the Field value from Payload and Current dase with it means,
    1) Write one UDF & map Like this
          Name(giri)-----UDFCurrent Date----MT_Target
    2) Check the ASMA Option in Receiver Adapter Aloneu2026..
    3)No need to check the ASMA Option in the Sender side
    UDF Code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    String Outputfile = conf.put(key,a);
    return Outputfile;
    Regards
    Seshagiri

  • Configure receiver file name as Sender file name

    Hi All,
        In PI7.1.  We have scenario(file to file). Here the sender system send multiple files and In the receiver system we need to populate the same filenames as Sender file Names.
    Could you please let me know is there a configuration to have Receiver file schem name As like sender file names.
    Thanks in Advance,
    Naga.

    Hi Naga,
    This can be achieved using either variable substitution or Dynamic Configuration by enabling Adapter Specific Message Attributes in sender and receiver file channels.
    If the sender file name and receiver file name needs to be exactly same then just check Adapter Specific Message Attributes in advanced tab of both sender and receiver channels. Check on File Name under that.
    Lot of help over this is already available in sdn, kindly serach and you will get lot of helpful blogs and wikis
    Regards,
    Gautam Purohit
    Edited by: Gautam Purohit on Apr 16, 2010 11:26 AM

  • Setting up the File Name of email Attachment from Received File Name

    Hello All,
    I have to send the Received File in attachment to an Email if there is any exception. Here I can attach the file, but I cannot set the file name of attachment as the Received File Name. Is there anyway of doing this without using custom pipeline component.
    Here I am using the Orchestration and SMTP Adapter.Any help is greatly appreciated.
    Thanks

    It might work if you use a custom pipeline component on your send port and in the Execute method populate the MIME.FileName property of the body part.
    Something like:
    public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
    string filename = inmsg.Context.Read("ReceivedFileName", "http://schemas.microsoft.com/BizTalk/2003/file-properties");
    inmsg.BodyPart.PartProperties.Write( "FileName", "http://schemas.microsoft.com/BizTalk/2003/mime-properties", "filename);
    return inmsg;
    You can take reference from similar post here
    SMTP - Setting attachment filename
    Anther good article with MIME is here
    Setting attachment filename with the SMTP Adapter
    For MIME case your SMTP message construct statement would be like below
    multipartMessage.MessagePart_1= InMSG;
    multipartMessage.MessagePart_2="This is message part2 as a string";
    multipartMessage(SMTP.Subject) ="Email From Dynamic Port";
    multipartMessage(SMTP.From) ="[email protected]";
    multipartMessage(SMTP.SMTPHost) ="yoursmypserver.com";
    multipartMessage.MessagePart_2(MIME.FileName) = "Attachment_Name";
    multipartMessage(SMTP.SMTPAuthenticate) =0;
    Thanks
    Abhishek

  • Getting Receive File Name and status of application from Biztalk database.

    Hello all,
    I want to retrieve Receive file name and status of application (started, partially started) in a stored procedure
    querying Biztalk databases.
    Please share if anybody have an Idea.
    Thanks

    Hi Nilesh,
    Status of BizTalk application can be obtained using ExplorerOM API provided by product. It's Application class has a Status property that returns one of Not Applicable, Started, Stopped, Partially Started.
    using Microsoft.BizTalk.ExplorerOM;
    private string GetApplicationStatus(string applicationName)
    BtsCatalogExplorer catalog = new BtsCatalogExplorer();
    string status = "";
    try
    //connection string to BizTalk management database
    catalog.ConnectionString = "SERVER=.;DATABASE=BizTalkMgmtDb;Integrated Security=SSPI";
    Microsoft.BizTalk.ExplorerOM.Application app = catalog.Applications[applicationName];
    if (app == null)
    throw new Exception(String.Format("Application '{0}' cannot be found.", applicationName));
    status = app.Status.ToString();
    catch (Exception ex)
    //Handle exception
    System.Diagnostics.EventLog.WriteEntry("MyMonitoryingApp", "Exception call stack: " + ex.ToString());
    finally
    if (catalog != null) { catalog.Dispose(); }
    return status;
    UPDATE: Found the thread from where I got this code. Thanks to Ashwin for providing it.
    Refer:
    Reg Stored Procedures for BizTalk Application Status in BizTalk Admin Console
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Receiver file name with counter

    While working on proxy to file scenario. I have to maintain receiver file name as ddmmyyyyxxx_nnn.xml,where xxx is constant and nnn is a counter which is suppose to be reset everyday.Anybody can help me on how to achive this...?

    Hello Amit,
    Yes. You can achieve this but only using File - NFS Protocol.
    A new file is created for each document. The file name is extended with a counter, which is inserted before the file name extension (for example, default002.file). This selection is only available for the File System (NFS) transport protocol.
    Make specifications for Counter Definition:
    Prefix
    Specify one or more characters that you want to add before the counter in the file name.
    Format
    Specify the first counter to be used. It must be a valid integer number. Leading zeros are permitted.
    Step
    Specify the counter increment.
    Mode
    Specify when the counter is to be added.
    After First File
    The counter is added when the file name is used unaltered for the first time.
    Thanks
    Pothana

  • Receiver File Name Writting

    Hi All,
    I want to write the receiver file name like test20091216.txt
    I tried with Add Timestamp, but it is adding with time also which i dont require.
    Here i want to say is iam not using any mapping to use Dynamic file name concept.
    Please suggest me on this.
    REgards

    >
    Vamsi Krishna wrote:
    > Sarvesh,
    >
    > iam not sure about the target FTP Server OS.
    >
    > i have one thought here, the process is as follows....
    >
    > ECC will generate a text file to XI Shared path, XI will pick up and deliver it to target FTP server path.
    >
    > Now this is doing with out any mapping, we can't do Dynamic Config. t=in this case.
    >
    > So my thought is i can ask ECC while writing the file with file name followed by date. EX: test20091216.txt
    >
    > so that in XI,  can i just use the sender file name to receiver file name???
    >
    > REgards
    Yes, if ECC can do this then problem solved. Just use ASMA setting in both sender and receiver adapter to write the same file name at receiver side.
    There is ablog written by Michal, just search it..

  • Received File Name in Map

    How to get the Received File Name(using FILE.ReceivedFileName property)  in BizTalk Map. Kindly provide with suggestions.
    Regards, Vivin.

    try this
    http://blogit.create.pt/blogs/tiagooliveira/archive/2009/02/02/Using-xpath-function-in-orchestrations.aspx
    xpath(msgOut,"string(xpathquery)")=msgIn(FILE.ReceivedFileName)
    You can't promote that field which occurs multiple times so in that case we use xpath()
    Regards

  • I keep getting error message (cannot save as "file name" because of a program error)

    I opened a pdf in photoshop and when I need to save it back as a pdf i get this error (cannot save as "file name" because of a program error). I need to save it specifically as PDF/X-1a:2001 but the only pdf options that will work are "highest quality print" and "smallest file size". None of the others work. I'm running Photoshop CS5 on a PC laptop and I tried it on my desktop and also a mac running CS 5.5 and always get the same error. I think the problem might be with the custom color settings I have but it works fine on my work computer with the same color settings. What could be going on?

    Yes, it's probably related to your color settings in some way. Why you are doing it in the first place...? Since they are ISO standards there is simply no liberty in choosing arbitrary settings for PDF/X, especially the archicval flavors... So in conclusion you will have to make your color settings compliant. The crash itself is probably a bug in the PDF libraries and it may work at your office because there you may use a different version of Acrobat/ Adobe Reader and the associated PDF libraries which do not have this bug. Still, the initial issue remains: You need to work within the spec, not against it.
    Mylenium

  • File-Adapter: Variable substitution form payload XML-attribute

    Hi experts,
    is possible to use XML-attribute-content for variable substitution in file-Adapter?
    extract from XML:
    <?xml version="1.0" encoding="utf-8" ?>
    - <all>
    - <transaction <b>file="filename"</b>>
    - <table name="BPAADDRESS" options="insertIfUpdateFails">
    - <record id="1">
      <hkeycol name="BPAMAINHKEY">0010500345</hkeycol>
      <hkeycol name="USAGE">Invoice</hkeycol>
      </transaction>
    I want to get the value "filename" = attribute file of transaction.
    Is this possible?
    Thanks a lot,
    Florian

    I have done this taking a field from the XML.
    You have to map the location of the field within the XML...
    Taken from:
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Variable Substitution (Target Directory/File Name Scheme)
    If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    &#9679;      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    &#9675;       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    &#9675;       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,... corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (“Example Value”) is set as the value for a specified variable.
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>
    &#9679;      To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.

Maybe you are looking for

  • How do I get the speaker icon to STAY in my system tray?

    How do I get the speaker icon to STAY in my system tray?  Every time I mute the speakers, the icon disappears from my system tray.  I have a very difficult time getting it back, and I can never remember how I do it.  Can someone give me some helpful

  • Search Results as in SDN

    Hello Gurus, I want the search results to be displayed exactly like we have in SDN. I mean search result should be displayed in the same window rather than opening a new window. Also when click on a document that document should open in the same wind

  • I cannot find netflix in App Store

    I live in panama. After talking to netflix, they confirmed they support this area, but I cannot find the app in the App Store.

  • Spot Specs for Television?

    I have a project for a company that has filmed about 9 different commercial spots each being 15-30 seconds. The local television stations all want me to send them via you send it, an online program. First, what is the best output in compressor for so

  • ATP (Available to Promise)

    Hi OM Gurus, Projected QOH (Quantity on Hand) makes perfect sense to me while calculating future period availability. But ATP Calculation based on rules (ATP with Backward Consumption, ATP with Backward Consumption & Accumulation and ATP with Forward