File - Resource name mask

Hi ODI gurus!
Today I have a question about resource name (case of file name) mask. Is it possible to add a sthg like * character to resource name? I have a file which incudes a generation date in name. I'd like to load this file but I dont know the full name. Is is possible to create file mask which includes only the "core" file name without date? ie. FILE_YYYYMMDD.csv => FILE_*.csv.
If its possible please let me know how :)
Regards,
PsmakR

Hi,
One approach would be use the OdiFileMove tool to rename the file to a fixed filename based on wildcards, then your filename would always be the same when you try to read it in.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • The specified resource name cannot be found in the image file.

    Dear Experts,
    I have developed an import too and it imports many of the Business Objects from a temporary data base to SAP B1. It was running fine for more than 6 months now.
    Currently when the Tool is importing Credit Notes in to SAP B1, the following error is thrown.
    The specified resource name cannot be found in the image file.
    And I have no Clue about the error. Any one had any experience regarding the above error???
    Thanks in Advance,
    Vasu Natari.

    Hello VAsu,
    Somethimes this unexpected, ununderstandable eroor messages caused by corrupted observer dll.
    Do a clean up (delete %TEMP%SM_OBS_DLL) folder, and see the result ! (i had several issues in the past with some strange messages...)
    Regards
    János

  • Dynamic Resource name for Excel/csv files

    Hi All,
    Reading from a source excel (as well as csv) file, I tried passing the resource name via a variable which is set to contain the name of the file (refresh). However, on execution, the file name shows up with an additional "\" character without being specified in the variable text causing the interface to face on load step.
    The error says:
    ODI-1227: Task SrcSet0 (Loading) fails on the source FILE connection <ConnNameHere>.
    Caused By: java.sql.SQLException: ODI-40438: File not found: C:\DirectoryNameHere\ /OTD.
    Is this expected behavior where one needs to escape the special character?
    I've verified that the extra / is not present in either the variable value or the directory for the Physical Schema.
    TIA.

    http://youtu.be/-QMV6cElgsk
    http://youtu.be/V7OzzZ3kYdc
    http://youtu.be/hNqqbZ4sJWA
    http://youtu.be/TMHzhtEwgrA
    http://youtu.be/REJDi584jh8
    http://youtu.be/jE6k5OfWqi0
    http://youtu.be/P3EKyykseps
    http://youtu.be/-QMV6cElgsk
    http://youtu.be/Gl7YvZohVVA
    http://youtu.be/zb1ue5BP9mI
    http://youtu.be/NhPDcc8n4VU
    http://youtu.be/tD_kw5QXmps

  • File adapter issue - files not processed (file name mask is *)

    Hi guys!
    I have a problem I never faced before. My file adapter doesn't process files in the source directory. When I put there exact file's name, it is processed. But when I use * , nothing happen. This is very strange. I was wondering, if problem can't be in that my PI box is UNIX and it's accessing Win filesystem.
    Any ideas, what to try?
    Thank you!
    Olian

    Yes, but I meant the one directory we're working in. We can write, delete there, so we should be able also use wildcards,  don't we?
    However, I tried it on a directory with 777 attributes. There is a file named clooo.ttt. When I run del .ttt I get Requested action not taken, file unavailable. The same for clooo. , clooo*,...  But when I type del clooo.ttt, the file is deleted...
    Any suggestions?
    Olian

  • Creating A File Resource Using Tomcat JNDI

    Hi guys,
    My problem is that I am creating a web service and I cannot get to a properties file without creating an absolute reference to that file. If I was creating a servlet I would simple use getServletContext() method to get a relative reference to it. However since it is an axis web service i have to deploy my applications in the WEB-INF/services directory, and because it does not interact with the axis servlet I cannot use getServletContext(). So i thought I could create a JNDI file resource reference in the tomcatHome/conf/context.xml file, similar to how I created a JNDI connection pool. The resouce definition looks like this;
    <Resource name="resource/dialogueEngineConfig" auth="Container"
                      type="java.io.File"
                      url="file:/Applications/apache-tomcat-5.5.1/webapps/axis2/META-INF/DialogueEngine.properties">
    </Resource>now I tried to access the resource in my code like this;
    // Obtain our environment naming
    Context envCtx = (Context) new InitialContext().lookup("java:comp/env");
    // Look up our file
    File  f = (File) envCtx.lookup("resource/dialogueEngineConfig");However I get a NamingException; 'Cannot create resource instance'
    I don't understand why I cant create a file resource in JNDI, it seems like a simple enough thing to do. Am I doing something wrong or missing something? Any help would be greatly appreciated.
    Thanks

    Hello xalien,
    I have the same problem. I need to access external xml config file via JNDI from my servlet, running on Tomcat 5.0.28. Have you manage to define an URL resource? If so, please provide an example how to do it. Many thanx.

  • How to retrieve resource name in JSP page

    Hello,
    I have the following scenario:
    User wants a new resource to be provisioned to himself, he makes standard steps; chooses one resource from the list of available resources and sends a request. After that a summary page is displayed - my goal is to create an url to external application on that summary page (i.e. tjspRequestSubmitTiles.jsp) that should be displayed depending on the name of the resource, e.g. if user requests for a ResourceA - link appears, but when he requests for a ResourceB - link does not appear.
    So far I have created a link with a sample if statement - it works.
    My problem is how to make a real condition - retrieve the resource name that request deals with. Anybody know how to do that, which API to use etc.?
    Regards,
    Maciej.

    After adding the code to tjspProvideDataShowInfoTiles.jsp file, nothing has been improved, I am still facing the same result (on the console):
    RO: null
    It seems that file (tjspProvideDataShowInfoTiles.jsp) does not take part in the process.
    I have tried to pass some sample session attribute in tjspRequestVerificationTiles.jsp and this works, but I do not know how to retrieve resourceName in this file.
    I was trying to make some code retrieving resourceName in tjspRequestSubmitTiles.jsp, e.g.
    tcRequestWizardForm tcReqWizForm = (tcRequestWizardForm)session.getAttribute(requestWizardForm);
    String requestID = tcreqWizForm.getRequestID();
    ...and what to do now to retrieve resourceName?

  • Printing Resource Name Form View

    Hi there,
    I am using Project 2013 Professional on SP1 with all the updates applied.
    I am trying to print the resource name form so I can give all the business users involved in the project a list of thier tasks, when they are due, and how much effort is expected of them.
    I get the view fine.
    I then go +File +Print and get the print page but there is a message saying "Print is not currently available". I tried printing anyway, but as expected nothing happens.
    I can print some views but not others so it is not a generic printing issue, but seems to be related to not being able to print particular views.
    Has anyone experienced the same issue? Is there a fix? Am I doing something wrong?
    Thanks in advance
    Tony

    Backwardsit --
    Yup, I am experienced the same problem as you.  I cannot print the Resource Name Form view in Microsoft Project 2013, SP1.  If it were me, I would customize the Resource Usage view with the columns you want to print (such as Start, Finish, and
    Work) and then print the Resource Usage view.  Just a thought.  Hope this helps.
    Dale A. Howard [MVP]

  • Resource name field for target oracle table

    Hi,
    I want to build a generic interface that takes data from different similar structured flat files and loads to different target table (similar structure).
    I thought I will use the resource name field for both source and target and use variables to determine the source and target names during runtime.
    the problem is it runs fine at the source when i change the file names to load from but it fails at the target when i use variable to determine the target name.
    Did anyone try this earlier? if yes, can you please help? The error I got was 911 : 42000 : java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    and the query generated was
    insert into      SCHEMANAME.#PROJREP."v_generic_interface_target_name"
         COL1,
         COL2,
         COl3
    select     
         C1_COL1,
         C2_COL2,
         C3_COL3
    from     STGSCHEMA.C$_0DEMO1
    where     (1=1)
    Edited by: sriksd on May 7, 2010 6:51 PM

    Hi,
    Which KM you are using ?
    Try to use #PROJREP.v_generic_interface_target_name into Resource name of the table in the data models.
    Regards

  • How use USB with VISA resource name?

    Hi, 
    I'm new at LabVIEW and I'm working on a code that has to acquire data from a measurement device.This device only has a USB output so I have to work with it. As far as know the block that is used to refer a external port is VISA resource name. I have installed a driver that recognizes the serial ports, and they appear in the list of VISA resource file at front panel. So I figured that installing the product's USB driver so the USB's ports would appear. I installed and nothing of USB ports. I don't know it is that simple or working with USB ports is a little bit harder. I've tried a lot of things and nothing worked so here I am.
    PS: I have noticed that the driver's version is 64 bits (my pc is 64 bits)  and my LabVIEW version is 32 bits, so could that be the problem?
    The device by the way is Digital Analyzer WT500, Yokogawa.
    Thank you.
    Solved!
    Go to Solution.

    Victor,
    the suggestion of Instrument Driver is to make more easy using the instrument. 
    Normally, you should install a windows drive from manufacturer (if it isn't installed, the instrument will appear like a pendrive in device manager) and the NI VISA. But for some instruments, the manufacturers have API's that uses NI VISA to communicate with your equipments.
    So check if your instrument appear correctly in device manager (as indicated by Yokogawa). If not, check if Yokogawa has an appropriated driver for this instrument and install it. 
    Is it clear?
    If you prefer, contact NI Brazil Support by website or by phone (11)3149-3149 Ext 3.
    Ricardo Ramos
    Engenheiro de Vendas - Sul
    National Instruments Brasil

  • Visa Resource Name in cluster passed to Network Stream writer causes error 42.

    If I try and pass this "motor data" cluster with an embedded VISA resource name:
    to a Network Stream Writer in this manner:
    Then I get this error from the "Write Single Element to Stream" VI
    If I change the motor data cluster TypDef so that a string control is used instead of the VISA reference, the error disappears and the data passes over the Network Stream without problem.
    Is this expected behavior? 
    I thought that the "data in" (type = "POLY"?) like the one found on the "Write Single Element to Stream" VI was supposed to accept pretty much anything...
    Solved!
    Go to Solution.

    Doug
    I would consider this a bug, as the memory location (more precisely the VISA refnum or session) of a VISA resource means nothing on a potentially remote system. Also I was under the impression that most streaming methods like binary file IO, but also the network streams would use the LabVIEW flattened format for data clusters and for that the VISA resource name would be the only logical choice instead of the underlaying VISA refnum, but I might be wrong in this specific case and the default behaviour for flattening VISA resources might always have been to the VISA refnum.
    Considering that the VISA control can resurect the VISA session from a VISA resource name if it is already opened, flattening to the VISA resource name instead would be more logical, but using a string control in the cluster type definition is a reasonable work around of course.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Pass export file/directory name in Web Engine plug-in

    I use a custom Lightroom web engine plug-in that I use to publish my website (5000+ pages).  Here is an example of an output section:
    http://www.johnkane.com/2010-03-01-MuirWoods/index.html.
    I use Dreamweaver to synchronize all the assets such as menus and links, including the plug-in files (Lua pages).  Each web gallery is published to its own folder in my website.  It works great except that every time I publish/republish a web gallery, I have to scroll and identify the directory in the Export / Save Web Gallery dialog box (or type the file (directory) name in for an initial export/publish).
    I have created a panel text box and variable (metadata.directoryPermalink.value) that can contain the directory name.  By storing this directory permalink along with the web gallery, I hope to ensure that each gallery is always published to its correct directory...
    ... except I don't know how to pass this variable to the export dialog box (as "File name" which actually is the directory name all the gallery files are exported to.
    Do I specify this in the manifest?  I don't see references in either the manifest or galleryInfo files... or in the sdk LrWebViewFactory section.  Perhaps I've missed it?
    Any help appreciated!
    Thanks,
    jk

    Hi,
    I haven't tried to write a web engine so don't know the answer off the top of my head. A quick glance at the SDK guide and the two SDK samples didn't give me any hints at the answer.
    Before I nudge one of the gallery developers to see if they know the answer I need to confirm one thing. Can you please confirm you have a file in the same directory as your manifest using the name "myfunctions.lua", and that your require statement looks something like this:
      require "myfunctions"
    (Thie filename should be considered case sensitive).
    I know its an obvious question but I need to ask before I ask one of the others for assistance.
    Matt
    UPDATE: It might also be worth having a look at Sean's 3 post series on web galleries, which is the only other resource I can recall re building web galleries.
    Added additional resource re web gallery development

  • Dynamic Resource Name in  DataStore

    Hi,
    I have situation like this, i need to generate dynamic filename based on the input date passed. For example i have package with following steps
    1. inputDate - inputParameter to the interface
    2.vFileName - name of the output file generated by the Interface
    3. Interface - business logic interface
    The Target Data Store for interface is GENERIC_FILE_TEST. The output file needs to be changed based on input date.
    May be i could use evaluate variable. Not sure about the right syntax.
    Theoritically the logic would
    be
    if(inputDate=xx)
    vFilename==zzz;
    else
    vFileName=vvcv;
    and then use vFileName in resource name field of Target Data Store.
    Appreciate providing correct syntax/technique.
    Thanks

    Hi,
    let me suggest something....
    1 - at package, receive the parameter in the variable (named inputDate for instance)
    2 - write an sql query that solves what you need, like, in a oracle example: (the variable refers to itself)
    select case when #inputDate=xx
    then zzz
    else vvcv
    end
    from dual
    3 - after the step 1 at package, just add the variable again in refresh mode
    4 - execute the interface.
    Make any sense?
    Cezar Santos
    http://odiexperts.com

  • How to get Resource Name in the Repository Service when Publish evt trigger

    Hi ,
    I have created a repository service in which I have registered the
    StatemanagementEvent.PUBLISH
    My requirement is I need to know which resource rather resource name triggered this event.
    This is the code which
    public class ApprovProcs extends AbstractRepositoryService implements IReconfigurable, IResourceEventReceiver
      private static final String TYPE = "ApprovProcs";
      private Collection repositoryManagers;
      public ApprovProcs()
        super();
        // Do not add code here. Add it to startUpImpl() instead
      public String getServiceType()
        return ApprovProcs.TYPE;
      protected void startUpImpl(Collection repositoryManagers) throws ConfigurationException, StartupException
        // implement this method as follows:
        // - Verify configuration data
        // - Get references to other needed (global) services
        // - Check whether other repository services (this service depends on) are also assigned to the repository managers
        // - Usually the service registers itself for certain events at all repository managers
                 this.repositoryManagers = repositoryManagers;
              Iterator it = repositoryManagers.iterator();
              while (it.hasNext())
                   try
                        addRepositoryAssignment( (IRepositoryManager) it.next());
                   catch (ServiceNotAvailableException e)
                        e.printStackTrace();
      protected void shutDownImpl()
         Iterator it = repositoryManagers.iterator();
         while (it.hasNext())
              try
                   removeRepositoryAssignment( (IRepositoryManager) it.next());
              catch (WcmException e)
                   e.printStackTrace();
      protected void addRepositoryAssignment(IRepositoryManager mgr) throws ServiceNotAvailableException
        // Implement this method: Usually the service registers itself for certain events at the repository manager.
         try
              // capture all the respurce which are published
              mgr.getEventBroker().register( this, new StatemanagementEvent( StatemanagementEvent.PUBLISH, null ));
         catch(WcmException e)
      protected void removeRepositoryAssignment(IRepositoryManager mgr) throws WcmException
        // Implement this method: Usually the service must unregister itself as an event handler.
         //mgr.getEventBroker().unregister(this, new ResourceEvent(ResourceEvent.CREATE_COLLECTION, null));
         mgr.getEventBroker().unregister( this, new StatemanagementEvent( StatemanagementEvent.PUBLISH, null  ));
      public void reconfigure(IConfiguration config) throws ConfigurationException
        this.stateHandler.preReconfigure();
        // check the new configuration data
        try {
        catch (ConfigurationException ex) {
          this.stateHandler.postReconfigure(ex);
          throw ex;
        this.config = config;
        this.stateHandler.postReconfigure();
      public void received(IEvent event)
         System.err.println( "----rid --42354543--- " );
           IResource rsrPublished  = (IResource)event.getParameter();
           if( rsrPublished != null )
              System.err.println( "----rid --42354543--- rsrPublished.getDescription() --- " + rsrPublished.getDescription() );
           else
              System.err.println( "Resource Does not exist -----" ) ;
    In the log file I am getting Null Pointer Exception
    Can any one please help me in this as where I am going wrong
    thanks
    pk

    Hi Romano & Detlev ,
    Thanks for the reply .
    This is what I was looking
    Detlev:
    About the NPE ... in the above code I am not getting that.
    Thats my mistake
    Earlier I tried with
    IResource rsrPublished  = (IResource)event.getParameter();
    String rid = rsrPublished.getRID().toString();
    In the second line of code I was getting the NPE
    after that I used to if condition to debug it
    Sorry for the confusion...
    One more thing
    which is the event triggered for approval or how to capture the Approval Event when a content is approved by the Approver
    thanks
    pk

  • Datastore Resource Name Variable

    Hello Experts,
    In the past, we have successfully implemented the use of a variable name inside the resource name of a Datastore to dynamically change the name of the table. This technique has been always useful to loop through a set of files assigning the name of the file to a variable and then using this value within the resource name of a Datastore.
    When trying to implement the same technique in ODI 11g, it looks like the value of the variable is not being use by ODI when executing the package. When I look at the execution code the FROM clause is using the name of the variable instead of the value assigned to that variable IE:
    select *
    from #NameOfVariable
    Is this a known issue in 11g? or is there a new way to implement variables for Datastore resource names?.
    The variable that i'm using has been set to Alphanumeric type and I'm assigning a static value inside my ODI package.
    Thanks for your help.
    Pablo C.

    better you can store all the resource names into one db table after that with helping of the refresh variable u can get file name one by one ,better declare a loop for this dynamic variable.
    if you have any doubts please revert back this.
    Regards,
    sh

  • Resource name

    Hi,
    I am working on a VB .NET/C# app to talk to NI PXI 2503 switch card. Is
    there any way I can query the card to get the resource name/topology
    before initializing the card? Thanks.

    Hi John123,
    You can access the recourse names and limited card info using the niModInst calls, but you will not be able to access the topology of the card before initialization. The function to scan the computer to give the resource descriptors of all boards specific to a Modular Instruments driver is called niModInst. The niModInst Open Installed Devices Session call will create a handle to a list of installed devices supported by the specified driver. Call this API and select the name of a National Instruments instrument driver, such as NI-SWITCH, from the driver control. This call searches the system and constructs a list of all the installed devices that are supported by that driver, and returns both a handle and the number of devices found. The handle is used with other functions to query for attributes such as device name and model, and to safely discard the list when finished.
    This is a link to the help files for available niModInst function calls.
    'Hope this helps.
    Regards,
    Natasa

Maybe you are looking for