ODi Generates random name at HFM load log.

Hi Gurus,
I am using ODI 11.1.1.3 to load data into HFM.
I Want the data load log to be attached in an email.
The problem is that a random log name is generated.
I've opened the IKM and a function generates the random log name (<?=java.lang.System.getProperty(“java.io.tmpdir”)?/<%=snpRef.getTargetTable("RES_NAME")%>.log)
I've tried to attach the file generated using this : REFRESH (<?=java.lang.System.getProperty(“java.io.tmpdir”)?/<%=snpRef.getTargetTable("RES_NAME")%>.log) as the attached file.
I also tried: REFRESH (<%=snpRef.getTargetTable("RES_NAME")%>).log, in both cases I got the same error:
oracle.odi.oditools.OdiToolInvalidParameterException: Error while setting parameters on tool
at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:607)
at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java:480)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java:1340)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2785)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:322)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:237)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:794)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
at com.sunopsis.dwg.function.SnpsFunctionBase.getCoreOdiTool(SnpsFunctionBase.java:599)
... 15 more
Anyone knows how can I use this random log name as the attached file ?
Best Regards,
Fernando.

Hi SH,
I tried that already and double checked it right now.
It generates the NEWLOGNAME.log as an empty file with no log on it and the HFM1789027940921749.log with the real log on it.
Edited by: 921871 on 19/03/2012 10:59
Edited by: 921871 on 19/03/2012 11:38

Similar Messages

  • File download frm Webdynpro App generates Random Name whn download in EP

    Hi Experts,
    I have developed a webdynpro application where I download a file in the excel format.
    I have written a code to generate the name of the file and have set it to the context attribute.
    When I download the file from the Application
    http://<server>:<port>/webdynpro/dispatcher/local/<project>/<application>
    The name of the downloaded file is perfect
    but when downloaded from the Jave webdynpro Portal Iview we get random names like "CARYHWT9" in the Dialog which stores the file on the local system.
    Is there anything which needs to be done in Iview properties so that when downloaded into local machine we get the same name as we get during the download from the application directly.
    Regards,
    Krishna
    Points will be awarded for helpful answers

    Hi Siva,
    The thread u mentioned is titled as -  Error Message comming in German for invalid date format
    And theres nothing which I could notice that would solve the issue with the download.
    Please let me know if theres some specific thing u want me to do.
    Best Regards,
    Roby..

  • File dwnloded frm Webdynpro App generates Random Name whn downloaded frm EP

    Hi Experts,
    I have developed a webdynpro application where I download a file in the excel format.
    I have written a code to generate the name of the file and have set it to the context attribute.
    When I download the file from the Application
    http://<server>:<port>/webdynpro/dispatcher/local/<project>/<application>
    The name of the downloaded file is perfect
    but when downloaded from the Jave webdynpro Portal Iview we get random names like "CARYHWT9" in the Dialog which stores the file on the local system.
    Is there anything which needs to be done in Iview properties so that when downloaded into local machine we get the same name as we get during the download from the application directly.
    Best Regards,
    Roby..

    Hi Siva,
    The thread u mentioned is titled as -  Error Message comming in German for invalid date format
    And theres nothing which I could notice that would solve the issue with the download.
    Please let me know if theres some specific thing u want me to do.
    Best Regards,
    Roby..

  • Script for generate randomize administrator password which make log file to recorded new administrator password with associated computer name on it

    Hi
    I Need VDS script in order to change domain client local administrator password in my domain ,and put this script in startup script via group policy, but for security purpose  I want to randomize local administrator password and log new password
    set for each computer on a text file, I want to over write the old password of eachcomputer in log file with new one in order to have the update log file ,my support team some times need administrator password for troubleshooting.
    I need a script for generate randomize administrator password  which make log file to recorded new administrator password with associated computer name on it and each time new administrator password set it over write the old record on
    the log file and update the content of log file automatically.
    Regards

    Hi
    I need a script for generate randomize administrator password  which record new password on a  log file with associated computer name  and each time new administrator password set for a computer it  over write the old record
    on the log file and update the content of log file automatically.
    Regards

  • Generate file names randomly

    are there anyways to generate file names randomly? if there are, are there any reference codes i could refer to? thanks.
    heard that using random characters from ascii code (generating random numbers and translating them into chars) could do the job but i am rather new to it. can anybody advise me on how to go about it? thanks.

    There is a method called createTempFile in the java.io.File class for this purpose. I suggest you use that one.

  • Random name generator

    Does anyone know how to make a random name generator or have
    any links to pages that could help me?
    Thanks for your time
    Jason

    Something just like the name generator on
    http://www.rftc.com/
    It doesn't seem complex but Im not sure how to do it :S
    Thanks for your time

  • How do you generate random data info using json and spry?

    I have a mobile applicaton that uses spry datasets that dynamically populate a jquery mobile listview by using a json file. Everything is operating as it should.
    However, I would like to understand how to pull random objects from the json file to have them displayed on a different page.
    My json file is standard and not complicated. It has several levels. Each is represented as below:
                                  { "Level1":
                                                                {"imageurl":"images/_myimage.png",
                                                                "someData":"S,A,P,R",
                                                                "levelLongDesc":"further description",
                                                                "name": "John Doe",
                                                                "page": "referencepage",
                                                                "description":"The description of the image"
    {"imageurl":"images/_myimage.png",
      "someData":"S,A,P,R",
      "levelLongDesc":"further description",
      "name": "John Doe",
      "page": "referencepage",
      "description":"The description of the image"
    Json file Level1 has about 70 objects
    What I would like to do is randomly load one of the Level1 object arrays into the page when the user selects a Level 1 radio button that is on the screen. I know how to create the page, radio buttons and basics, but just don't know how to pull in the random data.
    I've found one code sample on this site that speaks to spry and xml, but I haven't been able to apply it in any way that works for me with the json file:
    http://forums.adobe.com/message/662551
    I've also googled. There isn't much on spry datasets with json and generating random info. There was a little bit on sorting, but that didn't help either.
    Does anyone have a good example/tutorial of how to use the random function with spry/json?
    TIA
    -Rachel

    I've done similar things before.  A few thoughts for you:
    1. I'm assuming you're doing a buffered period or frequency measurement on the incoming encoder pulses, right?  First key point is that you'll have data that is spaced equally in position, but not equally in time.  If you are looking for a time-based FFT such that increasing speed will shift your spectrum, you're going to need to go through an interpolation process to resample your data as though equally-spaced in in time. 
    2. Your 149 pulse per rev encoder may be a significant source of error unless its 149 pulses are placed with extreme accuracy.  Any error in pulse placement violates your underlying assumption of data that is equally-spaced in position.  It'll be very helpful to send your data through a software lowpass filter to attenuate those artifacts. 
    3. I am not sure what you mean by "decompose the buffered data (array) into a single datastream."  You'll get an array of periods / frequencies from the call to DAQmx Read.  If you want to use it in a LabVIEW waveform datatype, you'll first need to do the resampling to create equally-spaced-in-time data.  The LabVIEW waveform datatype (and all the analysis functions like FFT that use it) depend on receiving data with a fixed constant time interval between samples.
    -Kevin P.

  • Problem specifying SQL Loader Log file destination using EM

    Good evening,
    I am following the example given in the 2 Day DBA document chapter 8 section 16.
    In step 5 of 7, EM does not allow me to specify the destination of the SQL Loader log file to be on a mapped network drive.
    The question: Does SQL Loader have a limitation that I am not aware of, that prevents placing the log file on a network share or am I getting this error because of something else I am inadvertently doing wrong ?
    Note: I have placed the DDL, load file data and steps I follow in EM at the bottom of this post to facilitate reproducing the problem *(drive Z is a mapped drive)*.
    Thank you for your help,
    John.
    DDL (generated using SQL developer, you may want to change the space allocated to be less)
    CREATE TABLE "NICK"."PURCHASE_ORDERS"
        "PO_NUMBER"      NUMBER NOT NULL ENABLE,
        "PO_DESCRIPTION" VARCHAR2(200 BYTE),
        "PO_DATE" DATE NOT NULL ENABLE,
        "PO_VENDOR" NUMBER NOT NULL ENABLE,
        "PO_DATE_RECEIVED" DATE,
        PRIMARY KEY ("PO_NUMBER") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS NOCOMPRESS LOGGING TABLESPACE "USERS" ENABLE
      SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
        INITIAL 67108864
      TABLESPACE "USERS" ;
    Load.dat file contents
    1, Office Equipment, 25-MAY-2006, 1201, 13-JUN-2006
    2, Computer System, 18-JUN-2006, 1201, 27-JUN-2006
    3, Travel Expense, 26-JUN-2006, 1340, 11-JUL-2006
    Steps I am carrying out in EM
    log in, select data movement -> Load Data from User Files
    Automatically generate control file
    (enter host credentials that work on your machine)
    continue
    Step 1 of 7 ->
      Data file is located on your browser machine
      "Z:\Documentation\Oracle\2DayDBA\Scripts\Load.dat"
       click next
    step 2 of 7 ->
      Table Name
      nick.purchase_orders
      click next
    step 3 of 7 ->
      click next
    step 4 of 7 ->
      click next
    step 5 of 7 ->
      Generate log file where logging information is to be stored
      Z:\Documentation\Oracle\2DayDBA\Scripts\Load.LOG
      Validation Error
      Examine and correct the following errors, then retry the operation:
      LogFile - The directory does not exist.

    Hi John,
    But, i did'nt found any error when i am going the same what you did.
    My Oracle Version is 10.2.0.1 and using Windows xp. See what i did and i got worked
    1.I created one table in scott schema :
    SCOTT@orcl> CREATE TABLE "PURCHASE_ORDERS"
      2  (
      3      "PO_NUMBER"      NUMBER NOT NULL ENABLE,
      4      "PO_DESCRIPTION" VARCHAR2(200 BYTE),
      5      "PO_DATE" DATE NOT NULL ENABLE,
      6      "PO_VENDOR" NUMBER NOT NULL ENABLE,
      7      "PO_DATE_RECEIVED" DATE,
      8      PRIMARY KEY ("PO_NUMBER") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS NOCOMPRESS LOGGING TABLESPACE "USERS" ENABLE
      9  )
    10  TABLESPACE "USERS";
    Table created.I logged into em Maintenance-->Data Movement-->Load Data from User Files-->My Host Credentials
    Here i total 3 text boxes :
    1.Server Data File : C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    2.Data File is Located on Your Browser Machine : z:\load.dat <--- Here z:\ means other machine's shared doc folder; and i selected this option (as option button click) and i created the same load.dat as you mentioned.
    3.Temporary File Location : C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ <--- I did'nt mentioned anything.
    Step 2 of 7 Table Name : scott.PURCHASE_ORDERS
    Step 3 of 7 I just clicked Next
    Step 4 of 7 I just clicked Next
    Step 5 of 7 I just clicked Next
    Step 6 of 7 I just clicked Next
    Step 7 of 7 Here it is Control File Contents:
    LOAD DATA
    APPEND
    INTO TABLE scott.PURCHASE_ORDERS
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    PO_NUMBER INTEGER EXTERNAL,
    PO_DESCRIPTION CHAR,
    PO_DATE DATE,
    PO_VENDOR INTEGER EXTERNAL,
    PO_DATE_RECEIVED DATE
    And i just clicked on submit job.
    Now i got all 3 rows in purchase_orders :
    SCOTT@orcl> select count(*) from purchase_orders;
      COUNT(*)
             3So, there is no bug, it worked and please retry if you get any error/issue.
    HTH
    Girish Sharma

  • Generate random User Alias - Entity adapter

    Hi,
    I am a newbie. Can anyone please help me in telling steps for creating an Entity Adapter which generate a random User Alias.
    TIA.
    Got few threads that tell about pre-populate adapter, none for entity adapter.

    Hi,
    Follow the below steps to create new entity adapter in OIM
    To add the new created event handler to OIM server, perform the following steps:
    1. Write a java code to perform the needed operation ("Generate random user alias" in your case).
    2. Copy the file to OIM_HOME\xellerate\EventHandlers
    3. Open Design Console and navigate to: Development Tools -> Business Rule Definition -> Event Handler Manager
    4. Create a new Event Handler and specify:
    Event Handler Name: +<give the class name of your code>+
    Package: +<give the package name of your code>+
    Pre-Insert: Checked (for this scenario)
    5. Save the event handler
    6. Navigate to Development Tools -> Business Rule Definition -> Data Object Manager
    7. Search for "Users" and add the event handler to the Pre-Insert list.
    8. Save.
    Regards,
    NS

  • Generating Computer Name automatically without "-"

    Hi,
    I am generating PC name with Sysprep unattend and setup generates PC name automatically based on Organization /Owner information .... but it adds a hyphen "-" after organization /user and then appends a random number , all I need to know if its
    possible to omit "-" in PC name.?
    Example 1234567-xyzxyz
    Here 8th character is "-" which I don't want to have but appended automatically.
    N.A.Malik

    Hi,
    I am afraid this is not possible to omit "-" in computer name.
    Here is the Help file articles:
    Computer Name:
    Specifies the computer name used to access the computer from the network. If 
    ComputerName is empty or missing, the user must enter a computer  name in Windows Welcome.
    If you set this value to an asterisk (*), a random computer name is  generated. This random name has at most 8 characters from the
    RegisteredOwner and/or 
    RegisteredOrganization strings plus random characters.
    Computer_name is a string with a maximum length of 15 characters.
    I think the "-" here is generated automatically to distinguish the two different parts in the computer name.
    Best regards
    Michael Shao
    TechNet Community Support

  • How can I generate random password

    Hello...
    I use oracle 10g for windows,,,I have an employee table , there are a lot of colunms , their names are employee_name , employee_id ,employee_pass .....
    employee_pass colunm is empty
    I want to generate random password for employee_pass colunm
    How can I generate random password for employee_pass colunm
    thanks
    omer faruk akyuzlu
    in Turkey

    SQL>  exec dbms_random.seed(to_char(sysdate, 'sssss'))
    PL/SQL procedure successfully completed.
    SQL> select dbms_random.string('X', 8) from dual
      2  /
    DBMS_RANDOM.STRING('X',8)
    4YT1H150
    SQL> select dbms_random.string('X', 8) from dual
      2  /
    DBMS_RANDOM.STRING('X',8)
    WIA3QCIP
    SQL> Please be aware that storing the actual passwords in a the EMPLOYEES table is a very bad idea. Oracle has a pretty good password implementation. It's not perfect but it's a darn site better than hand-rolling our own.
    Cheers, APC

  • HOW TO GENERATE RANDOM MEANINGFUL STRINGS ?

    Friends,
    How do I generate random meningfull strings ? I know how to generate strings randomly but I want to generate meaningfull names. The length is not important. Please help me in this matter as I have to implement this soon.
    Thanks in advance
    Ankit.

    Thanks for reply,
    I want to generate any string randomly and also want to make sure that it is meaningfull name. I can use Random(0n class to generate random number then convert according to ascii table to char and concat these generated chars to have string but then it is not meaningfull string, it could be anything. I want the string to be meaningfull too.(any word or name in english language). I don't want to pick up already generated word or names from list randomly(i think this is what you are thinking)

  • Java random names

    import java.util.Scanner;
    import java.io.*;
    import java.util.Random;
    public class RandomName
         public static void main(String[] args) throws IOException
              Scanner key = new Scanner(System.in);
              Random randomNumbers = new Random();
              int n = 0;
              String[] names= new String[50];
              int index = 0;
              int count =0;
              //Opens the file from user
              File file = new File("name.txt");
              Scanner outputFile = new Scanner(file);
              while(outputFile.hasNext())
                   names[index] = outputFile.nextLine();
                   index++;
                   n++;
              //prints out the number of people in the file
              //Store into an array
              //prints out a random name from the file
              System.out.println("Number of people: " + n );
              int x = randomNumbers.nextInt(n);
              System.out.println(names[x]);
              System.out.print("Command? ");
              String command = key.nextLine();
              //contine to loop the program
              //Write to the file
              while(!command.equals("exit"))
                   if(command.equals("n"))
                        x = randomNumbers.nextInt(n);
                        System.out.println(names[x]);
                        System.out.print("Command? ");
                        command = key.nextLine();
                        count++;
                   else if(command.equals("help"))
                        System.out.println(" n    Next random name");
                        System.out.println(" exit Exit the program");     
                        System.out.print(" list List all the unique names that have been");
                        System.out.println(" called as well the number of times");
                        System.out.println(" help Display this message");
                        System.out.print("Command? ");
                        command = key.nextLine();
                   else if(command.equals("list"))
                        System.out.println(count);
                        System.out.print("Command? ");
                        command = key.nextLine();
              outputFile.close();
              //Exit the program if user enter exit
              if(command.equals("exit"))
                   System.out.println("The program has generated " + count + " name(s) with " + "" + "repetition(s)");
                   System.exit(0);
    }Beside using hashmap is there another way count how many names appear more than once using like array
    the random should be like:
    john
    david
    john
    it should printout
    john(2)
    david(1)

    RSun wrote:
    Yea because i have never tried hashmap.That really makes no sense at all. If you're always going to look for a solution that only uses what you know, rather than learning something new when it's perfectly suited to the problem you're solving, you're in for nothing but frustration and unmaintainable code.

  • Random name generation

    I need to generate a large number of demonstration records for a users database. I'd like to have vaguely credible looking names and e-mails but not based on any real data for reasons of data protection.
    Anyone got a good random name and/or address generator to hand? I was thinking of constructing a Markov chain of letter sequences from some English text, though I'm told this doesn't look that good.

    As stated, this has nothing to do with java.
    But actually I've done the same thing once (in Perl actually), and so have a useful tip: The U.S. Census office has (or had a couple years ago) some data about the most common names in the U.S. at the time of the previous census. It listed the most common family names, and male and female given names, from most to least common, along with a percentage. This information was freely given out on their web site.
    With these files, it was pretty easy to write a 20-line (or so) brute-force perl script that would read in the files, then generate a series of statistically likely names. I faked emails too, by just grabbing the first 6 or 7 chars from the last name and one or two from the first, tweaked as necessary to make them unique.
    (BTW, this was necessary, because a purely randomly generated list of names is obviously wrong from a quick (human) inspection. Without balancing the names by likelihood, you get as many Hubert Bigglesworths as you do John Smiths.)
    So my advice is, check the census office of the government of the country whose names you're trying to fake out.
    Also, I think Perl is more appropriate for this task than Java, by the way. It's great for quick-and-dirty text processing like this.

  • InfoPath library generates random ID numbers

    I have created an infopath lib.
    Sometimes when submitting a form sharepoints is skipping 100 (aprox)  ID's and generates random ID number...
    Can anyone help what might be the reason for that?
    Thx, Ofer

    I am suspecting this...
    My clients asked me to show the form ID after save.
    So, here is my solution:
    I do submit on the 1st time & then query my lib with the form name (which I know) &
    resubmit again to save the ID + additional nested data.
    (The implementation is quite complicated & in some cases I must resubmit after the 1st time...)
    I've noticed that in the most of these cases SP skips 99 ID's

Maybe you are looking for

  • Prefix zero to a decimal number

    Hi All, I need to send a value to third party system. The value is a decimal number but before sending it i need to prefix zero. Eg: 1.25---> 00000000001.25 The Functiom module CONVERSION_EXIT_ALPHA_INPUT works only for integers. Can you please sugge

  • Dates when saving picture

    Hello, I would like to get "today's date" when saving a picture.  At the present when I save the picture, it keeps its original date. No clue how to do that in windows 7 with Photoshop CS5 at 64. Thanks for info. Bert

  • Urgent Regarding Grading

    Hello Everyone, Do we have any Cookbook for Grading Scale & PI Setup. I am finding it very difficult to address requirement stated below Academic results of students are captured in terms of grades (A, A-, B+, etc), and are converted to points using

  • Server Assistant hangs at: Installation...  window?

    Hello All! I'm trying to do a clean install of the server OS (10.4)on a "no-video card" XServer. I'm using my powerbook on a little standalone network (server, switch, and powerbook). Server Assistant connects fine from Powerbook using "169.254.X.X."

  • Distorted audio when trying to record simple VO tracks

    I'm running my Heil PR-40 mic through an Alesis USB output mixer. I have my input settings as USB Audio Codec in my record preference settings. When I monitor through headphones (connected to mixer) my output signal is clean as a bell. When I playbac