ODI tool Start Scenario

Hi guys!
In my package I've used an ODI Tool OdiStartScen with variable which corresponds to the Interface scenario name (#SCENARIO_NAME). My Interface is dynamic. Its source is flat file datastore with resource name based on a variable #FILE_NAME. Now the tricky part. Executing the package ends with an error with the interface. If the variable is not specified, then ofc interface wont work because there is no such file like the variable name (#FILE_NAME file not found), but if I specify the variable in the Variables tab in the ODIStartScen tool I get an error that this variable is not within the work repository. How do get it right?
Please help.
Regards,
PsmakR

Insert the variable in the package (evaluate/refresh) and regenerate the scenarion. It should ask to about variables that will be included in the scenario. When you call the scenario you have to define what value to pass to that variable.
Also, you could show us the error message.

Similar Messages

  • Isues with ODI Start Scenario

    I need help in executing the odi start scenario command.
    We have around 100 scenarios to be executed thru an external framework. I am trying to create a generic scenario which can used to trigger the 100 scenarios dynamically using a variable so that, at run time i can pass the scenario names one after the other.. This is the command:
    OdiStartScen -SCEN_NAME=#SCN_NAME -SCEN_VERSION=001
    OdiStartScen "-SCEN_NAME=#SCN_NAME" -SCEN_VERSION=001
    Both these versions did not work for me.

    Hi,
    You need call a specific version or the last version? If you need the last, try -SCEN_VERSION=-1 . -1 indicates to agente to be use a last version avalaible.
    Regards

  • ODI, can't start scenario running in different machines

    Hello All
    Well i am working in a consulting proyect where I need ODI and BPEL to connect each other.
    I have installed Oracle SOA Suite for weblogic 9.2 in a machine with ip 192.168.1.108
    I have installed ODI as a server in another machine ip 192.168.1.109
    I have installed Oracle Data Base in the of ODI 192.168.1.109
    Then I installed ODI CLIENT in my laptop (i mean, the topology manager, designer, operator all in my laptop)
    I have made a simple example where i created a "interface in odi" using ODI designer and the a package in which a call a bpel process and it works fine
    Now i need to create a bpel process to call a ODI SCENARIO...but i am stock in it.
    I have done the following:
    1. I deployed the AXIS2 webservice and it's working ok.
    2. I have started and ODI agent and I tested it using the topology manager and it is OK
    3. I created and deployed a bpel process to call the ODI scenario
    When i execute the instance of bpel, i get the following error in the AGENT (which is running in the same machine where ODI SERVER is installed 192.168.1.109)
    Server Launched
    java.lang.NullPointerException
            at com.sunopsis.dwg.dbobj.SnpScen.getObjectLst(SnpScen.java)
            at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.java)
            at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
            at com.sunopsis.dwg.cmd.e.t(e.java)
            at com.sunopsis.dwg.cmd.h.y(h.java)
            at com.sunopsis.dwg.cmd.e.run(e.java)
            at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
            at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
            at com.sunopsis.dwg.cmd.e.t(e.java)
            at com.sunopsis.dwg.cmd.h.y(h.java)
            at com.sunopsis.dwg.cmd.e.run(e.java)
            at java.lang.Thread.run(Thread.java:595)
    And of course, the Scenario doensn't start.
    I have done many many tests, but i can't make it work.
    In my last test, I tried to invoke an odi scenario using the STARTSCEN.bat
    I followed the instructions in the otn thread {thread:id=839508}
    I modified the odiparams.cmd like this
    set ODI_SECU_DRIVER=oracle.jdbc.driver.OracleDriver
    set ODI_SECU_URL=jdbc:oracle:thin:@192.168.1.109:1521:soadesa
    set ODI_SECU_USER=ODIMASTER
    set ODI_SECU_ENCODED_PASS=ccfHG.0VJJ73yntbtLhr7xxbls
    set ODI_SECU_WORK_REP=ODIWORK
    set ODI_USER=SUPERVISOR
    set ODI_ENCODED_PASS=fJyH6P1neaZHeWG1cxpicApI Launched the agent in my laptop (local)
    and i got the same error in the ms-dos console where I use the startscen.bat program
    startscen CREATE_BPEL_HWF_TASKS 002 Global
    Starting scenario CREATE_BPEL_HWF_TASKS 002 in context Global ...
    java.lang.NullPointerException
            at com.sunopsis.dwg.dbobj.SnpScen.getObjectLst(SnpScen.java)
            at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.java)
            at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
            at com.sunopsis.dwg.cmd.e.t(e.java)
            at com.sunopsis.dwg.cmd.e.y(e.java)
            at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
            at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
            at oracle.odi.Agent.main(Agent.java)
    java.lang.NullPointerException
            at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
            at com.sunopsis.dwg.cmd.e.t(e.java)
            at com.sunopsis.dwg.cmd.e.y(e.java)
            at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
            at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
            at oracle.odi.Agent.main(Agent.java)
    java.lang.NullPointerException
            at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
            at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
            at com.sunopsis.dwg.cmd.e.t(e.java)
            at com.sunopsis.dwg.cmd.e.y(e.java)
            at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
            at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
            at oracle.odi.Agent.main(Agent.java)Does anyone know what could the possible problem be???
    I have tested the connection to the schemas/user of the database (ODIMASTER and ODIWORK repositories) and it's OK
    I am kind of new using ODI, but i have made the same TEST in a Virtual Machine installed in my laptop, where i use a Express Edtion Database, a BPEL console, and ODI CLIENTE (everything local) and all the tests works ok.
    1. Call a bpel web service from ODI ....OK
    2. Call a ODI scenario from BPEL using the AXIS2 web service ....OK
    3. start an scenario using the msdos console STARTSCEN ....OK
    I also checked that the SNP_REM_REP and SNP_LOC_REPW columns are the same in the master and work repositories, but it's OK
    What could be my problem?
    I think i can be related to the MASTER and WORK repositories, but i don't know what more could i check
    Thanks in advance

    It was a mistake with the parameters using the ODIparams.sh

  • Problem with spaces in filenames when using ODI tools

    Hi everyone,
    has anyone of you ever encountered the following behaviour:
    When using any ODI tool related to file manipulation the tool does not work if the file parameter value contains a blank/space. Example:
    OdiFileDelete "-DIR=c:temp" "-FILE=Test this.txt" "-RECURSE=NO" "-CASESENS=NO" "-NOFILE_ERROR=YES"
    In this case an error will occur saying the file does not exist although it exists in the directory.
    Has anyone a workaround for this?
    Thanks in advance,
    Hauke

    Hi Madha,
    thanks for the prompt answer.
    We decided to rename the files to make the tools work. Definitely not always applicable but in our case it's possible. Any hint why the behaviour is designed like this?
    Regards,
    Hauke

  • Unable to start scenario

    Is this the correct version of JDK I should be using? Please look below:
    Thanks,
    Dinesh.
    I set my ODI_JAVA_HOME to C:\Program Files\Java\jdk1.6.0_14. However I am getting the below error:
    F:\OraHome_1\oracledi\bin>startscen TEST 001 GLOBAL LEVEL5
    OracleDI: Starting scenario TEST 001 in context GLOBAL ...
    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
    at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2451)
    at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188)
    at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166)
    at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
    at com.sunopsis.sql.i.run(i.java)

    Hi,
    change the commando to:
    F:\OraHome_1\oracledi\bin>startscen TEST 001 GLOBAL 5
    there is no word "LEVEL"

  • Can we Customize ODISQLUnload ODI tool.?

    Hi Guru,
    Can we Customize ODI Tool i.e ODISqlUnload
    I want to add contents in file in Append Mode.
    Thanks

    Hi,
    As u are interested for the customization. Please follow the steps.
    1. Clone/backup ur IKM SQL To File Append.
    2. Open "Insert New Rows" step, go to -> COmmand on Source and add the below code in the last line after <%=snpRef.getHaving() %>,
    ORDER BY
    <%=snpRef.getColList("","[EXPRESSION]","","","UD1")%>
    3. In ur interface click on the column which u want to sort out/order by and click on/mark as UD1. Make this column to execute on STAGING.
    Thats all.
    Thanks,
    Guru

  • Odi tools

    Is there any odi utility which can delete,rename the file which is located into the remote server.
    Through shell script we are able to do this work but i need to know if that can be done through odi tools utility or not...
    Please suggest.

    You can use the OdiFileDelete to delete a file . But the agent must be created in your remote server. Regarding FileRename better you can move the files into another directory with another name.
    If you are aware of java bean shell technology then also you can write a small program to rename the files.
    Thanks
    http://bhabaniranjan.com/

  • Calling a shell script from ODI tool OS command

    hi,
    I am trying to call a shell script from the ODI tool OS command with the following command "sh /Oracle/ODI/backlog.sh"
    where "backlog.sh" is the name of the shell script. I am redirecting the output of the script to a file called "backlog.out" and this part is done in the script itself.The ODI session is successful and the output file i.e "backlog.out" gets created in the specified location but the output of the script doesnot get written to this output file.Is this the right way of calling the shell script using ODI OS command.

    Hi-
    It seems there is no input parameters for your script. Please check your script file needs any input parameters and try the syntax below:
    path/scriptname.sh input1 input2
    where input1 and 2 are input parameters for the script file which you are calling.
    Hope this will work for you.
    Thanks,
    Saravanan Rajavel

  • Start scenario when source data change

    Hi,
    is it possible to start a scenario when a data on one table changes on the source DB ?
    For example, an application change a timestamp on a table in the source db, this change triggers the start of the ODI scenario.
    Many thanks,
    Olivier

    Olivier,
    Can you create a database trigger on that table and populate a row in another table indicating that the timestamp on the table has changed.
    Then, you can use OdiWaitForData tool from toolbox in the package as a Starting step and connect its OK with odiStartScen tool which further invokes the scenario that you want to execute.

  • Start scenarios

    Guru, please help!
    At attempt of start of the scenario from an operating system
    ./startscen.sh DATA_EXPORT 001 AB LEVEL5 –v=5 –NAME=HYP
    I receive an error
    java.lang.Exception: Specified variable not found in the Repository : .v
         at com.sunopsis.dwg.dbobj.SnpSession.a(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.y(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSessionPreTrt(SnpSession.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.e.y(e.java)
         at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
         at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
         at oracle.odi.Agent.main(Agent.java)
    Has tried to adjust Scheduling in Designer but it does not start the scenario at all.
    In the scenario I have 3 variables.
    Please help.

    Based on the snps_user, the syntax should be as the following, but I still got error java.lang.StringIndexOutOfBoundsException: String index out of range: 5
    startscen <Name> <Version> <Context code> [<Log_Level>] [-SESSION_NAME=<session name>] [-KEYWORDS=<keywords>] [-NAME=<agent_name>]
    [-v=<trace level>] [<variable>=<value>]
    startscen.sh LOAD_SUPPLIER 001 GLOBAL 5 RA_POC.v_base_path=/rapoc
    Anybody has any idea?

  • BPM start scenario

    Hi there,
    I have a BPM for a Leave request process which is working fine.
    For triggering the BPM I would like to have the following scenario:
    1. User has a link "Leave request" on our Intranet page (no SAP portal) to trigger the BPM
    2. The user is directly forwarded to the first WebDynpro "Fill leave request" of the BPM (without navigating through UWL).
    How can I achieve that?
    I've successfully started the BPM from WebDynpro, but that doesn't really help.
    Thanks in advance!

    Hi John, so you mean, I should take out the first Web Dynpro of the BPM (Fill leave request) and trigger the remaining BPM when pushing the submit button?
    Sounds ok, but on the other hand I take out an important step of my BPM.
    I think it would be better that a BPM always reflects the whole process with all activities included.
    Is there any other solution for this.

  • ODI Export/Import Scenario DWR to EWR

    Hi,
    I need to import the Scenario into Execution Work Repository from Development Work Repository (with different Master Repositories and different internal IDs).
    The export Scenario is performed by ODI Studio.
    But when I try to import in IMPORT_UPDATE mode I get this error:
    ODI-10015: The work repository 2 is not declared in this master repository, the import process has been cancelled.
    I 'm able to import the Scenario only in Duplication mode.
    Is it correct?Or do I need to do some changes?
    Please could you help me?
    Thanks.
    Regards,
    Mariano

    Hi,
    thanks for your quickly reply.
    Yes, I use Synonym mode Insert_Update but I get the error.
    Now I've just tried checking the "Declare Missing Repository for Synonym Mode Import" and it seems to work fine
    Thanks,
    mariano

  • PP Module: Machine tool industry scenario

    Hi Gurus,
    My scenario is that the company is making machine tools -
    A machine is assembled from about 60 sub-assemblies (60 sub-assemblies in BOM).
    Which can be produced in-house or purchased. Each of these sub assemblies have
    further child sub-assemblies. This BOM explosion may happen till about 4-6 levels.
    In some cases, the suppose the customer already has certain machines which have
    say servo motor sub assemblies from Seimens. He would prefer his new machines to
    have same servo motors (so that maintenance is easy for him or say his trust lies
    in  servo motors of 'Seimens' make).
    So, at the time of making the order for purchase of a new machine,
    the customer may negotiate the scope of supply of parts/sub-assemblies as well.
    As a result  -
    1. Some sub-assemblies (say about 25 of the 60 in the BOM) will be purchased by
    the customer at his own end and provided to the machine tool company to be fitted
    into his machine. (e.g. he will purchase directly from Seimens and send it to you
    to be fitted into his machine.)
    2. Some sub-assemblies may be produced by the the machine tool company in-house.
    3. Some items may be purchased by the machine tool company from their vendors though
    they can also be produced in-house. (e.g. you may decide to buy the sub-assemblies due
    to shortage of time for production or there is request from the customer that please
    use particular hydraulic components of 'Vickers' make).
    In addtion, the customer may also ask for commercial quotation for the machine based on any
    of the above permutation combinations (e.g. what will be the price of the machine if you procure all the components or what will be the price if he provides one or more materials).
    We are in a position to freeze all this data at the time of punching the sales order.
    We will then run MRP.
    The MRP should provide the following -
    1. Planned/production orders for materials to be produced in-house.
    2. Planned orders/purchase requisition for materials to be purchased from Vendors.
    3. Some PR (or return sales orders or some other document) to get material from the Customer
    so that we are able to follow-up incase he delays sending the materials.
    4. In case the sub-assembly is to be purchased the system should not give production orders for its child parts.
    Kindly suggest how to  map a solution of this scenario.
    Shud I make Sales order BOM or variant configuration or what ?
    Thanks and Regards,
    Vishal Saha

    Hi,
       After the completion of Sale order, you wil come to know about the scope of work to be taken by the manufacturer i.e) the items to be manufactured in-house and to be extenally procured. So, in material master you wil define the type of Procurement.
    Depending on this, after MRP run, in-house produced materials wil get a planned ordre and externally procured materials wil get a purchase requisition.
    Customer Supplied Product can be made as a dummy code for which no costing is added to that sale order under the manufacturer's scope. You can define a new material type for this Customer supplied product and the items pending for this sale order under this material type can be filtered through a Z-report.
    You can use Sales Order BOM for your Scenario as the BOM  varies for each order.
    Hope this gives you some hint to proceed further...
    -Thaila Shree

  • Why can't the Pan & Zoom Tool start with the whole frame using photos

    I've used the pan and zoom animation in Microsoft Movie Maker - and want that same ease of use in any other program (I find it doesn't do a great job of soundtrack and text/image placement) see menu options below....   I Purchased Premiere Elements after watching a short video of the pan & zoom tool - however now that I am trying to use it it falls way short.
    Is there a way to allow me to select the whole photo as the starting frame -- in the screenshot below the frame 1 will not extend to the whole photo so I start off with a cropped image.  I want the full Frame of the photo and then be able to zoom and pan in toward faces - while I can still do this with the cropped frame I loose a good deal of my photo and the context it provides.
    The Microsoft Movie Maker options - very easy                        |              Limitation of Premiere Elements 13 to start with the full photo frame

    Hi,
    You might like to ask that question in the Premiere Elements forum
    Premiere Elements
    It looks to me as though the aspect ration of the photo and the video frame are different and therefore something has to be cropped off.
    But I could be wrong
    Brian

  • (EPMA)ODI -1241:-ODI TOOL EXECUTION FAILED

    Hi All,
    I'm trying to run a batch script using ODI OS Command.But i"m getting an error while running the command.
    Error:-
    ODI-1241: Oracle Data Integrator tool execution fails.
    Caused By: com.sunopsis.dwg.function.SnpsFunctionBaseException: ODI-30038: OS command returned 1.
    Command:-
    OdiOSCommand "-WORKING_DIR=\\server_name\Oracle\Middleware\EPMSystem11R1\products\Foundation\BPMA\EPMABatchClient" "-SYNCHRONOUS=YES"
    epma-batch-client.bat -C"\\Server_name\Oracle\Middleware\scripts\Import.txt" -R"\\Server_name\oracle\Middleware\scripts\Import.log" -UXXXX -Pxxxxx
    Am i doing something wrong here.
    Please advice....
    Actually I have a question,
    Do we need an agent to call a script from a different server.
    Thanks !!!
    Regards,
    RSG

    What are you trying to achieve as that will not run the script on the remote machine, it will only run an OS command, you would really need an agent on the machine which host the epma batch utility if you want to run it like that.
    Have you tried running it outside of ODI using command line and see the results.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Width of Report view changes in Oracle Workspace

    Hi, I'm having a problem with BI publisher. With some reports for example the Inventory Adjustment standard report supplied with Oracle retail and BI publisher when selecting values of parameters in the dropboxes and fields the paramter fields width

  • I would like to no if there is a way to have a version of iTunes on an external hard drive

    I have several external hard drives lying around with thousands of songs on them some 10+ years old. I would like to know if there is a way I can create another copy of my current itunes and store all my music pics ect. On an external hard drive. I w

  • Safari won't play videos (or anything else for that matter)

    Hi folks, I have a MacBook Pro running all the latest software and it seems that Safari's having trouble playing things, like videos. Nothing works: Flash, HTML5 or QuickTime. Tried it all. MP3s won't play in the browser either. I've looked around an

  • 8 hours to render 30 minute movie

    I must be doing something wrong. I'm assuming it shouldn't take 8 hours to render a 30 minute movie. iMovie version is 7.1.4 I used share with web browser so it would be a "large" movie. Does anyone know why it's taking so long??? It's driving me cra

  • Add Portlet Customization

    Hi Everybody, I'd like to create a more friendly and simple interface for my user choose between hide and show any portlet in one page. Does anybody have any simple idea about how i get it? Thanks in advance.