Sender Channel - File Archiving - No Create Target Directory option

Hello,
We are getting an error because our Sender channel is always trying to create the target directory when saving a file in our archive location. 
Using a Receiver Channel the option "Create Target Directory" exists, so I can disable that option.  Is there a way to disable that option on a Sender Channel when archiving?
Thanks,
Matt

Reviewing the settings available from Help.sap.com says:
"Configure Sender File Adapter"
Under Processing Mode, specify what is to happen to files that have been processed successfully.
u25CB       Archive
u25A0       To add a time stamp to the file name, select Add Time Stamp.
The time stamp has the format yyyMMdd-hhMMss-SSS. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.
u25A0       Enter the name of the Archive Directory.
I do not see anything in here that helps clear up this issue.
Also, I have given a target directory.  The problem is it still tries to create that directory. 
Thanks,
Matt

Similar Messages

  • Create target directory ?

    How to create target directory in a receiver File adapter ? Is this option in the file systm access parameters or processing parameters of the file adapter ? i didnt see a box that says create target directory in either. Please help me with this issue

    > This option Create target directory, will it be there if I select the File adapter as sender. Or this option is there only if you select the File adapter as receiver ?
    >
    > Can you please clarify this doubt as well.
    It is quite logical. For Sender adapter there will be no need to create the dir coz dir already exist and you will pick the file from that dir with the help of Sender Adapter.
    But in case of Receiver Adapter you need to know wether the dir exists or not and thats why we tick the check box to make sure if dir does not exists then it will be created (If you have permissions to create the new dir). But again if dir already exists then no need to tick the box "Create Target Directory", the file will be automatically created at target dir.

  • Creating Target Directory Paths

    My questions are mixed in below, marked with "Q:"
    Task 7A-1-6 in the PTools 8.48 Installation Guide talks about directory path structures that are required by the Oracle DBMS install wizard, but need to be manually created by me.
    I installed database 10g. My SID is "HCM". There is an initHCM.ora file in my database folder. The contents were:
    SPFILE='C:\oracle\product\10.2.0\db_1/dbs/spfileHCM.ora'
    and I added the following, per install guide instructions:
    DB_NAME = HCM
    DB_FILES = 1021
    CONTROL_FILES = (/filesystem1/cntrl1HCM,/filesystem2/cntrl2HCM)
    OPEN_CURSORS = 255
    db_block_size = 8192
    remote_login_passwordfile=NONE
    Q: I substituted HCM for <SID> in the CONTROL_FILES variable, but are things like filesystem1 and filesystem2 meant to be literals, or is it intended that I substitute something for these? Also, there are some forward slashes in the SPFILE variable - is that ok for Windows?
    The guide mentions these CREATEDB.SQL references...
    startup nomount pfile=%ORACLE_HOME%\database\init<SID>.ora
    DATAFILE '<drive>:\oradata\<SID>\system01.dbf' SIZE 400M
    LOGFILE '<drive>:\oradata\<SID>\log01.dbf' SIZE 70M,
    '<drive>:\oradata\<SID>\log02.dbf' SIZE 70M;
    *...So I assume that I need to create c:\oradata\HCM*
    The guide then says:
    The init<SID>.ora parameter file that is referenced in the CREATEDB.SQL script makes the following
    directory path structure references:
    Note. Portions of the init<SID>.ora parameter file have been omitted for clarity. These paths are hardcoded
    by the user creating the init<SID>.ora parameter file. The Data Configuration Wizard will not make any
    substitutions for mount point, target directory path, or <SID> in the init<SID>.ora file.
    +
    Control file references:
    +
    control_files = ("c:\apps\db\oracle9i\oradata\ORC1\control01.ctl", "c:\apps\db⇒
    \oracle9i\oradata\ORC1\control02.ctl", "c:\apps\db\oracle9i\oradata\ORC1⇒
    \control03.ctl")
    background_dump_dest = c:\apps\db\Oracle9i\admin\ORC1\bdump
    core_dump_dest = c:\apps\db\Oracle9i\admin\ORC1\cdump
    user_dump_dest = c:\apps\db\Oracle9i\admin\ORC1\udump
    Q:  Does this mean I need to create c:\apps\db\Oracle10g\admin\ORC1 plus subfolders bdump, cdump and udump?  I particularly wonder if those exact names are correct, especially since the examples are for the 9i version.
    Q:  The guide says (above) that it's the init<SID>.ora parameter file which makes the above control file references... but as I showed above, that file only contained the one line, before I added the parms I mentioned.  Is the install guide saying that I should add the control file references above to my initHCM.ora file?

    With regard to the CONTROL_FILES variable...
    I'm not sure how forward slashes are meant to be interpreted in the Windows world. Are you saying that I should substititute an entire valid Widows path, like this?
    CONTROL_FILES = (c:\myfilesys1\cntrl1HCM.txt,c:\myfilesys2\cntrl2HCM.txt)
    ...after having first created folders c:\myfilesys1 and c:\myfilesys2, and that the database creation script will generate files cntrl1HCM.txt (I added the extension) and cntrl2HCM.txt?
    Can you post a sample Windows init<SID>.ora file?
    Edited by: M_Borok on Oct 7, 2008 7:46 AM
    (continued)
    ...on re-reading, it seems to me that section Task 7A-1-5: Creating an INIT<SID>.ORA File shows the general format:
    CONTROL_FILES = (/filesystem1/cntrl1<SID>,/filesystem2/cntrl2<SID>)
    ...but section Task 7A-1-6: Creating Target Directory Paths shows an example of substituted code for this line:
    control_files = ("c:\apps\db\oracle9i\oradata\ORC1control01.ctl", "c:\apps\db\oracle9i\oradata\ORC1control02.ctl", "c:\apps\db\oracle9i\oradata\ORC1\control03.ctl")
    Is that true? i.e. does this mean that I can create any path and file name I want, and the database create script will read it here and use it?
    If so, does this mean that I have to substitute actual paths ANYWHERE I see a forward slash?
    Also... I'm thinking that ORC1 in the sample code is their example of the SID, and for me it might be HCM instead.
    I note that their example shows three control files instead of the two shown in the first template. Does it matter.
    Q: Are these control files files that will be written by the create script, or are they a reference to files I should have created and populated?
    Edited by: M_Borok on Oct 7, 2008 7:51 AM
    Edited by: M_Borok on Oct 7, 2008 8:02 AM

  • Process 0kb empty file and deliver to target directory

    Hello Experts,
    We had a requirements to process an empty file handling and send it to the receiver/target directory. We had configured to "Process Empty File" Handling and “Write Empty File. The 0KB file polling successfully and archived to the directory with empty payload, but the message output was never created/sent to the target directory. In smxi_moni error message displayed:
    <?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>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">CANNOT_READ_PAYLOAD</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to read payload from the message object</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Since this is an empty file, there are no mappings involved.  Is there a way to that we could check for 0kb file? If it is empty file, we want to pass/place the empty file to the target directory and if it is not empty, we want the message to process in the standard way.

    Hi David,
    "Since this is an empty file, there are no mappings involved. "
    do you mean you didnt do the mapping at all cos it is empty file ?
    though it is empty file still you need to do the mapping as usually,but when you check the option process the empty file both in sender and receiver adapter ,then it will process even an empty file comes.if you dont check these options and you get an empty file during the process then the mapping will fail.
    in real time you don't know which one is empty file right,but her you know cos you are placing empty file.
    I think you got to do all the steps you do in eneral for a scenario and top on that you have to check process empty file in both sender and receiver adapters,but you may not see the payload in SXMB_MONI.
    but search in SDn you get lot stuff.

  • File sender channel - file name "null"

    Hi all,
    I am designing a scenario where I am reading 2 files from 2 different senders, and these 2 messages are fed to a multi mapping in BPM, which creates a single target message. I need to read the name of only one of the two source files and populate it in one field of the target message.
    I have read some blogs and forum threads about how to access the file name from the sender file channel. It calls for turning on the adapter specifc parameters in the channel and writing the following UDF (taken from Michal's blog #2664) -
    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;
    After doing all this, I am getting file name as "null". Can someone pls let me know the cause for this ? My concern is since I want to read only one file name, so I have updated only that specific file sender channel for adapter specific attributes.
    Regards,
    Shankar

    Hi Raj,
    I checked the ASMA for second channel also, but no luck
    I can see both the files names in their respective messages in SXMB_MONI under node 'Dynamic Configuration'. But the two messages enter the multi-mapping within BPM (where I have put trace to print the file name as per above code), the value is shown as "null".
    1) Is this file name access is possible only in simple scenarios ?
    2) Also, is the file receiver mandatory ? I have email receiver in my scenario.
    Any clues ?
    Regards,
    Shankar

  • File Adapter - pass in target directory as parameter

    Hi
    I'm currently using a number of File/FTP Communication Channels
    all of which talk to the same FTP server
    but I have a requirement to send my translated file to specific directories on the FTP Server
    Ideally I'd like to have just 1 FTP Comms channel that has parameters for the Target Directory - how can this be done exactly.
    I can see in the File/FTP comms channel in advanced tab the ability to provide parameters and the saphelp
    is saying I'd need to pass in a directory paramater.... But where do I get to do this - I can think of Receiver or Interface Determination
    but I can see nothing there to do this.... what am I missing ?

    hi,
    In your Receiver Determination, you can add multiple Receievers and you can also add the condition on which the receiver has to be choosen.
    you can refer to:
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    regards,
    ujjwal kumar

  • Adapter moduler in file adapter receiver - get Target Directory from param

    Hi everybody,
    We are in PI 7.1
    I need in an adapter module (file adapter receiver) to access to the Target Directory comming from parameters
    I foound the code in a weblog
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    Here is the code I found
    public ModuleData process(
              ModuleContext moduleContext,
              ModuleData inputModuleData)
              throws ModuleException {
              Object obj = null;
              Message msg = null;
              try {
                   Channel ch = new Channel(moduleContext.getChannelID());
                   obj = inputModuleData.getPrincipalData();
                   msg = (Message) obj;
                   XMLPayload xmlpayload = msg.getDocument();
                   String path = ch.getValueAsString("file.targetDir");
                   if (!path.endsWith("
    ") && !path.endsWith("/"))                    
                             if(path.indexOf("
    ")!=-1)
                                  path+="
                             else
                                  path += "/";
                   if (xmlpayload != null) {
                        convert(xmlpayload.getContent(), path);
                   inputModuleData.setPrincipalData(msg);
              } catch (Exception e) {}
              return null;
         private void convert(byte[] bs, String path) throws Exception {
              String bs_out = new String(bs);
              String filename =
                   bs_out.substring(
                        bs_out.indexOf("<FileName>") + 10,
                        bs_out.lastIndexOf("</FileName>"));
              bs_out =
                   bs_out.substring(
                        bs_out.indexOf("<Base64>") + 8,
                        bs_out.lastIndexOf("</Base64>"));
              byte bb[] = com.sap.aii.utilxi.base64.api.Base64.decode(bs_out);
              File f1 = new File(path + filename);
              FileOutputStream fos = new FileOutputStream(f1);
              fos.write(bb);
              fos.close();
    The object Channel come s from the package import com.sap.aii.af.service.cpa.Channel;
    The jar is in the build path (com.sap.aii.af.service.cpa.jar);
    When I write in NWDS
    Channel ch = new Channel(moduleContext.getChannelID());
    NDWS gives me an error "Cannot instantiate the type Channel".
    Can somebody help me about that, please?
    Does that code dosn't work in pi 7.1?
    Thanks in Advance for your help.
    Best Regards.
    E. Koralewski
    Edited by: Eric Koralewski on Feb 3, 2011 1:40 PM

    > When I write in NWDS
    > Channel ch = new Channel(moduleContext.getChannelID());
    > NDWS gives me an error "Cannot instantiate the type Channel".
    it should be:
    Channel ch = (Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, moduleContext.getChannelID());
    (taken from sample module ConvertCRLFfromToLF)
    http://help.sap.com/javadocs/pi/pi711sp03/index.html?com/sap/aii/af/service/cpa/Channel.html
    Edited by: Stefan Grube on Feb 3, 2011 2:02 PM

  • Creating Personal Directory Option On 6941 IP Phone

    How do you get the personal directory option to show in the directory menu of a 6941 phone?  Corporate Directory is there, but not personal.  Personal directory is a configured phone service in CUCM.
    CUCM 9.1.2.11900-12, if it's relevant.

    Are you using a specific softkey layout that is preventing it from being displayed?  Was the personal directory for some reason removed as a subscribed service for the phones in question?

  • Sender channel FTP archive problems.

    Hi all,
    I'm trying to archive the file I upload from folder /xx/yy/filename.txt in folder /xx/yy/archive.
    In the Adapter monitor I can see that the archive is not succesful. It is trying to archive under /xx/yy/archive//xx/yy/filename.txt !!!!!!
    It looks like it the adapter is using the hole file reference "/xx/yy/filename.txt" as the new filename !!!!
    Can any one help me !!!!!

    Dear Frank,
    This might help you
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    You can archive files using Archive option of File Adapter.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
    Archive flat file on different server
    File sender adapter (FTP) -> processing mode "Archive"
    Regards
    Agasthuri Doss

  • No .java file found in the target directory of JSP compilation

              There are only .class files. Where are those .java files? I am using WL5.1 SP7.
              

    We had to add the following to our application's web.xml file:
              <!-- keepgenerated initArg to JSPServlet -->
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              John J. Feigal Voice (651)766-8787 (main)
              Sr. Technical Consultant (651)766-7249 (direct)
              Ensodex, Inc. Fax (651)766-8792
              4105 N. Lexington Ave., Suite 150 email [email protected]
              Arden Hills, MN 55126 WebSite http://www.ensodex.com
              "Jim Linux" <[email protected]> wrote in message
              news:3a40b129$[email protected]..
              >
              > There are only .class files. Where are those .java files? I am using WL5.1
              SP7.
              

  • Issue with archiving in file sender channel

    Hi Experts,
    We have configured a file to  ABAP proxy scenario in our production PI  7.0 system. the  file sender  communication  channel  is configured to perform " file content conversion"    and archive the  source file  after it is processed successfully.
    Recently , the sender channel stopped archiving the files.  but it is processing them.
    we need the source files to be archived.  i do not see any  related error  in XI logs and default trace files . also it is not a problem with disk space on file system either.
    can you please let me know  how the issue can be resolved.
    Thanks.
    -Kaushik

    Hi
    Make sure that you have selected processing mode Archive
    Try by Checking Add Time stamp  check box.
    Check the Archive File path in correct format
    or put archive file in diffrent folder from which selecting file.

  • XI3.0 File Adapter - Changing target directory at runtime

    Hi all,
    I have a XI3.0 running and I'm using the file adapter of SAP Basis 7.00. I'm trying to change the target directory at runtime, as I already did with the file name. The file name could be changed using the DynamicConfiguration, but this does not work for the directory. In help.sap I found the hint to use the variable substitution of the communication channel. I did not get it running, but it also does not solve my problem since I don't want to get the value for the target directory from the message header, but from a SAP IS-U system.
    Can anybody help me to solve this problem?

    Hi,
    while using variable substitution, did u set the indicator for create Directory:
    <i>If the adapter is to create the target directory, if it doesn't already exist then set the indicator Create Target Directory.
    If the indicator is not set and the target directory doesn't already exist the adapter returns an error.</i>
    Regards
    Vijaya

  • Sender FTP without Archive or delete

    Hi All,
    Has anyone tried using FTP sender channel without archiving or deleting .
    Just read the file and continue.
    The option seems to be not available in the comm channel.
    Thanks
    Bikram

    Hi,
    this is what the "Test" mode is doing, but it's recommended to avoid using it for productive systems.
    Regards
    Patrick

  • Create target table using ODI model

    Hi all,
    I am new to ODI. I am trying export RDBMS table to RDBMS table from source to target.
    whether we need to create target table structure in trg schema or we can create using obi trg model by selecting new datastore.
    In owb while loading target tables are created and data will be loaded.
    Pls help me regarding this.
    thanks in advance.

    Hi
    You can create it in both ways.if you create datastore by using ODI you must select create target table option in flow while loading to target.

  • Date and Time in Sender File Adapter Target Directory

    Hi there,
    is there a way of using Date and Time from XI to the Target Directory naming? To use variable substitution some fields of the message had to contain that date and time information, which is not our case.
    For filename you can use "add time stamp" option, but and for target directory?
    Thanks and regards,
    Henrique.

    > <i>Do you have further information on how to perform
    > this with shell commands?</i>
    > >> You need to write a shell script. This script will
    > add the date/time stamp into the folder in the target
    > system. This shell script is executed from the File
    > adapter. So once the file is written into the target
    > directory, then it will rename the directory.
    Hi there, Moorthy
    We've tried to write that shell script that you mentioned, but now we have a few doubts on how to make it create the proper directory.
    In the file adapter, my target directory is "/%var1%/%var2%/", where %var1% and %var2% are variable substitutions, referencing data which comes from the payload. Now, I need the shell script to append "/<Year>/<Month>/" in the target directory. But where to archive the script? If it stays in the root directory, than how to make it create "/<Year>/<Month>/" folders inside a directory which is variable (/%var1%/%var2%/)?
    Is there a way of passing %var1% and %var2% as parameters for the shell script?
    Thanks a lot,
    Henrique.

Maybe you are looking for

  • Facebook-skype account -- how can I get my old acc...

    Long story short, after the frustration of trying numerous ways to log in to Skype with facebook, on of which consists of disconnecting Skype from my Facebook Apps, I found that though I have successfully gotten the dektop client to work, my old "fac

  • I just rented a movie from iTunes, there is an image but no sound.

    I just downloaded Argo onto my MacBook. When I played the movie the image appeared but there was no sound. This has never happened before with movies that I downloaded to my laptop.

  • Why don't Yahoo embedded videos work

    videos from youtube, hulu, netflix, etc. work but not yahoo embedded ones. I have the latest version of firefox and adobe flashplayer on windows 7 64 bit. i have tried installing/uninstalling flashplayer and firefox. i also tried loading it in safe m

  • Error when opening Query Designer

    I keep getting an error when I open up query designer and hit on open query.  the error is bexopensaveservices -get nodes:RFC exception.  any ideas on how to fix?  Basis says my RFC connections are fine

  • Upgraded to IOS5, now my music files are missing

    Hi! I am hopeing someone can help me I updated to IOS5 a couple of days ago, and since then I have been trying to find a solution to the "missing music files" in my music library. All 439 songs are listed in the Music Library, but when I double click