Flatfile output mask with source file name without extension

I have an input file with name abcdefgh.xml. This is converted to flatfile output, but I want the flatfile output name to be
abcdefgh.
If I use the %SourceFileName%, I am getting the output filename as abcdefgh.xml, I want it to be abcdefgh

Hi
%SourceFileName% Macro gives the file name along with extention.
so if you want to remove extension then either you can do it in orchestration with expression Shape
msgOut(FILE.ReceivedFileName) = System.IO.Path.GetFileNameWithoutExtension(msgIn(FILE.ReceivedFileName))
another way , you can write the custom pipeline component .

Similar Messages

  • Pdf portfolio source file name and date in file details

    Is it possible to import the source file name and extension as well as the source file created date in the portfolio file details?  Need to document source to portfolio in working with 3rd parties that will only have the original source.  Need to document what was converted into pdf as not all files in a directory will successfully convert to pdf.  Sometimes need to convert 100's of files.  Manual entry is inefficient.  the file names and modified dates are displayed on the Combine Files dialog.  is there a way to capture the detail on that page?

    I don't need the detail of when the pdf was added to the portfolio.  I
    need know which dwg or jpg or word file was converted and the original
    created date of that file for control of information.
    That is impossible; sorry. For some *very specific* types of conversion to PDF the pdfx:SourceModified XMP tag will be set to show the last-modification date of the source file (for example DOCX files converted using MS Word), but there will never be a human-readable record of the source filename or its creation date unless you have manually added them as document XMP properties after conversion (this is what the "Custom Properties" dialog is for). To embed source data automatically would raise no end of privacy and security problems for customers, who most certainly do NOT want their recipients seeing details of internal documents.
    Without writing a plugin there's no access to the internal workflow of the Combine Files dialog, so you cannot use a script to read the names and dates of the files *before* conversion and store them automatically in the new PDF Portfolio's Fields array.

  • Same source file name with a different extension

    Hi All,
    I have a source file which is dynamic all the time. Can I create a target file which has the same name as the source file but with a different extension.
    Scenaio is file to file.
    test. xml is the source file name and the target file name should be as test.csv
    Regards,
    Amar

    Hi Amareshwar,
    you can write a java code (either in UDF or import in imported archive and use in imterface mapping).
    The piece of code is..
    DynamicConfiguration conf = (DynamicConfiguration) myParam.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey Filekey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String OriginalFileName = conf.get(Filekey);
    if (OriginalFileName != null)
    NewFileName=OriginalFileName.replaceAll(".csv",".txt");
    conf.put(Filekey,NewFileName);
    And in Integration Directory>Configuration Scenario>your communication channels (both sender and receiver) just select
    Adapter specific message attributes- File name
    This would solve your problem.....
    Regards,
    Vishal Gupta
    Plz reward points if you are satisfied with the solution.

  • Replace Unknown Source in EcmaError (JSR223) with actual file name

    Hopefully someone here knows how to do this:
    In my code, all of the scripts are contained in .js files. Whenever one of the scripts contains an error, I get this:
    javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "nonexistant" is not defined. (<Unknown source>#5) in <Unknown source> at line number 5
    What bugs me is the <Unknown Source>. Multiple files are in one ScriptContext, and it can be hard to track down an error. It also looks horrible.
    Is there a way to replace <Unknown Source> with the actual file name? None of the methods I see support passing a File object, so I'm really confused here.
    Cross posted (and unanswered) at:
    http://stackoverflow.com/questions/2885120/replace-unknown-source-in-java-rhino-jsr223-with-actual-file-name
    http://www.javaprogrammingforums.com/exceptions/4465-replace-unknown-source-ecmaerror-jsr223-actual-file-name.html
    http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino
    http://mozilla-xp.com/mozilla.dev.tech.js-engine.rhino/Replace-Unknown-Source-with-Script-file-name

    You may need to set compile debug option set to true.
    I am not sure if my tip is useful for you, anyway good luck.

  • Determine Target directory from Source file names with out mapping

    Hi All,
    I have a requirement to determine the Target Directories from the Source file names.
    File Sender Adapter - XI - File Receiver Adapter
    In this scenario I am not doing any mapping. Source File directory contain 3 files. These file should go to 3 directories in the Target Server.
    Please help me how can meet this requirement
    Thanks in advance
    Kevin

    Hi Kevin,
    if you can separate the files by name. have 3 sender communication channels each picking up one of the files (you do this by making the regex in the file name mutually exclusive) and then send them all to the target system using the same comm. channel.
    regards,
    Horia

  • Get source file name in the structure itself or in the payload

    Hi everyone,
    I have a task regarding mapping
    In my  structure , i defined a field for Filename . What I need is, what ever source file name am sending, that should be mapped into this filed.
    If am sending inputfile.txt.
    My output file should appear like this,
    <?xml version="1.0"?>
             <message id=u201DmessageIDu201D>
                     <header>
                             <filename>D:\\inputfile.txt</filename>
                     </header>
                     <body>
                              FileContent
                     </body>
             </message>
    Any help would be appreciated. Do I need to create any UDF. If So please provide.
    Regards,
    Varun

    Hi Varun,
    are u using the same UDF that I replied. also note that the variable key should be declared only once.
    Use this without changing any thing. It works for me...
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String dir =  conf.get(key);
    return dir+'/'+ourSourceFileName;
    Also let us know where do you het this error..
    Thanks
    SaNv...

  • RH10 variable and build tag source file names

    I'm using RH10 and outputting to WebHelp. My company requires that I archive project source files to our CVS via Eclipse. I am not using RoboSource_Control and must use the company's development resources for archiving.
    Since archiving the initial project, I have been uploading only source files with modified dates.
    However, I have discovered that the files I thought were storing user variables and build tags are not the correct files to archive. Since I am uploading all files with a newer date and that's not working, I need to know the user variable source file name and the build tag source file name that stores the currently defined variables and build tags.
    I have already tried the WebHelp forum and was directed to this forum to pose the question because I'm looking for source file information instead of output file information.
    Thanks for your help!
    karen

    Yes, Eclipse does work that way. However, we do not use our development directory as the local Eclipse repository. I need to move changed files to the local repository (stores all source files in the project) so that Eclipse can upload changes to the server. Yes, this is planned redundancy.
    That said, it is not acceptable to spend the time copying all files in the large projects from the work folder to the local repository. I simply need to know which individual files to copy that include the currently defined variables and build tags. Note, we do not copy the SSL folder output files to our local source file repository, or other associated reference files that are not actually project source files.
    Can you find someone who knows which files I need?
    Thanks,
    karen

  • File-File - Need to extract data from source file name???

    Hello Experts,
    I have a unique situation. In my file to file scenario, the source file name is of the format XYZ_yymmddHHMM.dat. there is field in the target file which has to filled with the date that is there in the file name of the source file (yymmdd). How can this be achieved? Normally we do the other way round using vaiable substitution where we can name a file depending on the value in any of the target field structure.
    Please help.
    Regards,
    Yash

    Hi,
      please prepare the udf with the following code.
      i mean, dynamic configuration concept.
      where u get the file name, then use substring function to capture date from right side.
       //write your code here
    // getFileName User Defined Function
    // function to create name of output file
    String filename;
    filename = strFile;
    try {
    // initialize DynamicConfiguration for create file with given name
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    //create file with the specified name
    conf.put(key, filename);
    } catch (Exception ex) {
    return filename;
    warm regards
    mahesh.

  • NT ATHORITY WITH LONG FILE NAME DESTROYING MY PC

    THIS NT ATHORITY HAS REMOVED ALL GROUP POLICES,WRIGHTS TO FILES,FOLDERS.INHERIED RIGHTS TO DRIVES,SLOWLY DESTRORYS,ALL SECURE UPDATES,STACK UNKNOWN SOFTWARE,.DLL FILES OUT OF CONTROL.I BEEN WORKING WITH PCS AND WINDOWS FOR 20 YEARS,IM 56.NEVER SEEN SO
    MANY SERVICES RUNNING WITH COMPLETE CONTROL OF PC.I USE ALL METHODS REQUIRED,VIRUS,MALWARE,TRY PROTECT FILES, ETC.BROWSER AND REGISTRY TAKING OVER.ITS THE SAME NT ATHORITY (LONG NAME)NO MATTER WHAT PC I OWN.(I HELP FIX OR UPDATE PCS WHERE I LIVE.DISABLED HOUSING,HELPING
    MY NEIGHBORS WHEN I CAN.ALL MY PCS AND SOFTWARE ARE REGISTORED AND I COMPLY WITH ALL MICROSOFT,WINDOWS ,ACCEPT POLICYS.PLEASE HELP ME,AND MY DISABLED AND ELDERLY FRIENDS.PHONE 903-609-8628 HM.AND 903-401-O833  mobil.THANK U

    Ugh.  There are basically three people here, who show up repeatedly and relentlessly, always eager to explain that it wasn't Adobe's fault at first.  (FTC regulations require them to disclose that they're compensated by Adobe.)  I'm sure that even the actual authors of these applications don't like that first line of defense as it ultimately makes Adobe look bad, diluting useful feedback.  Yes, we also file bug reports and yes, this bug was reported several times ever since at least CS5.  Also, no reasonable user is too stubborn to shorten source file names, and that bug isn't the real issue -- it's that Adobe's applications (like this Encore example) simply freak out and crash over a well-known, clearly identified bug and then give no guidance as to what happened, or how to resolve it.  So Adobe customers spend hours trying to find the answer -- around the distractions of those three guys -- and increasingly lose faith in the Creative Suite.
    Stan, thanks for a concrete question that could lead to diagnosis.  The file name that caused Encore to crash at the transcoding stage was not too far into the directories on my media drive, and named:  "KIMIKO ISHIZAKA - Goldberg Variations BWV 988 - 16 - Variatio 15 a 1 Clav. Canone alla Quinta__44k-16b (with leading silence).wav"  Once I halved the length of the filename (notably, while leaving in the spaces and dashes and underscores), it was smooth sailing.  So, you could simply rename any of your audio files to that, import the asset, and try to transcode at final output to see what happens.  Will be curious to know what you find, thanks!

  • How do i print a photo with the file name

    This seem stupid simple but I cannot find an answer anywhere. I want to print out hardcopies of phots with the file name printed with the photo. In Windows there is a program called Picture Manager (which has been eliminated in Office 2013) where you can open a folder of images, rename them individually or in batches, resize, edit, etc, all in one lovely program. You can print out individual or contact sheets with specific information for each image. Easy, one program, easy results.
    Is there a comparable program for the Mac? I have searched the web and can only find suggestions that use multiple progams, downloads, plugins, and convoluted work arounds to do this. I have tried printing contact sheets in iPhoto but it crashed each time. Our IT guy suggested moving the images into an album and printing from there but it still crashes. And even if it worked I want large image per page but iPhoto leaves a large amount of white space.
    The quickest way I have figured out is this:
    Select the images in Finder, make a separate folder and copy the images there. (3steps)
    Locate the folder in Finder and drag it to the Bridge icon (4steps)
    Select the images in Bridge, adjust the output settings and Save as a pdf (6steps)
    Locate the pdf in Finder, open in Acrobat, select the images (again!) and print (9steps)

    GraphicConverter, from here:
    http://www.lemkesoft.com/

  • Dynamic File Name depending on the Source File name

    Hi Experts,
    I have a problem like Dynamic File name depending on the Source File Name. I will explain with example as follwos
    Source File name                 Targer Folder/Filename
    NK01.VR59.L2007030         VR59/Rec.l200
    NK01.VR71.L2017030         VR71/Rec.l201
    NK01.VR77.L2027030         VR77/Rec.l202
    See above the exaple, Depending on the Source file name, I am deciding where i need to place my file and what name i need to name it.
    So please suggest me the solution and How can i do this with a single communication channel ? Do i need to create multiple CC for each folder??
    Points will be rewarded for Valuable anwer.
    Thanks in Advance,
    Best Regads,
    Vijay

    Hi VIjay,
    Thanks for quick reply. But i am getting error in End to End Scenarios only. If i remove the Return " "  statement from the UDF, while activating it is showing the error saying like missing return statement. I also mapped to the top most node to this UDF.
    I am getting the following error in End to End error Scenarios:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_</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:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • File Sender adapter - source file name - weird

    Hi all,
    We have a sender file adapter polling an ftp location. The Dynamic config has been enabled to get the source file name.
    The actual file name is - "hrmd.xml", but in the dynamic configuration node, in sxmb_moni, the fileName is shown as ./hrmd.xml.
    This does not occur with any other file sender adapter comm channels polling ftp locations.
    I guess this has something to do with the ftp server. Did anyone face this issue?

    the fileName is shown as ./hrmd.xml
    The file name surely cant have a / in it....such characters are not allowed.
    is there any way we can change the fileName message attribute once the file is picked up
    Create a UDF for Dynamic Configuration and change the name as per your requirement (in XI)....the source file may be having proper format for name and i assume that you have to change it for receiver file name

  • Getting the Source File name Info into Target Message

    Hi all,
    I want to get the Source file name Info into Target message of one of the fields.
    i followed Michal BLOG /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Requirement :
    1) I am able to get the Target file name as same as the source file name when i check the ASMA in Sender & Receiver Adapter , with out any UDF...............this thing is OK
    2) I took One field extra in the target structure Like "FileName" & I mapped it Like
                              Constant(" " )--UDF-----FileName
    I Checked the Option ASMA in Both Sender & Receiver Adapters
    Here iam getting the Target File name as same as Source file name + Source File name Info in the Target Field " FileName".
    I Dont want to get the Target File name as same as Source file name. I want like Out.xml as Target file name.
    If i de-select the Option ASMA in Adapters means it is showing " null" value in the target field "FileName".
    Please Provide the Solution for this
    Regards
    Bopanna

    Hi All,
    Iam able to do this by checking the Option ASMA in only sender adapter itself
    Regards
    Bopanna

  • Condition based on source file name - PI 7.1

    Hi Friends
    I have an file2file interface without any mapping requirement , source is sending  .csv files and I need to post those source files to two target systems in which each target system have two directories where I need to post based on few conditions and here are my queries.
    1. As mapping is not required I guess File Content Conversion is also not required as I simply pick and drop the .csv files into target - please confirm.
    2. One of the condition is :  source file name will be XXXX-AABB-C-XXXX-XXX-XXX.csv , here SAP PI has to read the company code (AABB) to determine the target system. Z001 and Z007 should be sent to TARGET1 & All other files will be sent to Target2.
    3. 2nd Condition : SAP PI has to read the type of file indicator (C). The files will be sent to the following target application directories:
    Simulation files (indicator = S): /interfaces/XXX/simulation
    Production files (indicator = P): /interfaces/XXX/inbound/
    Please kindly provide your ideas/solutions .
    Regards
    Suman.

    Hi Suman,
    If the Target is two different locations, then i guess you need to have two receiver Channels. Please check the below thread for details:
    Re: Genrate file in 2 different locations
    Incase of different directories in same server, you can check out this link:
    Dyanamic Configuration at receiver file adapter determine target directory
    kanan

  • ** How to get Source File Name thru XSLT Mapping

    Hi friends,
    We require source file name after message processing (SXMB_MONI) in the output structure.  We understad from Forums and  blog 2664, this is possible thru UDF - DynamicConfiguration class. This UDF will work if we use message mapping. But, in our case we are using XSLT mapping. So, how do we call  the same from Java Pacakage ? (Imported Archives). For writing java class separately, what are the changes to be made in the program?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return ourSourceFileName;
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi,
    This is the example in this similar manner u have to call the method in which u have to write the code for picking the source file name.
    <name>
       <xsl:if test="function-available('javamap:concat')">
        <xsl:value-of select="javamap:concat($first, $last, $inputparam)"/>
       </xsl:if>
      </name>
    for reference check the Link,
    http://help.sap.com/saphelp_nw04s/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    Regards,
    Phani

Maybe you are looking for

  • Drag and Drop Strange Issue

    I am preparing a drag and drop and everything works fine except that one of the item  disappears when I drop it at the drop area. I have recreated the wizard multiple times and am at loss what to do here or what is the problem?

  • Stop motion FCPX

    Can stop motion video be done with FCPX like it can be done with adobe?

  • Table of content level limit

    how can I display more than 3 level in a TOC webpart? can I just modify the xsl to achieve this?

  • SharePoint writer metadata information in a SharePoint farm with multiple WFE servers.

    I  am working on Microsoft Volume Shadow Copy Service (VSS) framework. I know that in a 3-Tier SharePoint environment the SharePoint writer metadata on WFE server gives all the information related to that farm. My question is - a) How would i get all

  • IAS server and DB on same host vs seperate hosts

    the company IT security folks showed my the policy, which they cannot explain it: "it is recommended that any DBMS be installed on a host system dedicated to its support. By separating the DBMS server from iAS server, access to that platform can be m