How to failed a odi Scenario

Hi ,
I have a situation , in one package i have 5 step like
step1-----ok----->step2-----ok----->step3-----ok----->step4----ok----->step5
| |
| |
ko ko
| |
error_log error_log
and like that , here if any error occurred in any step it will insert error in error_log , and the package show successfully executed
but my situation , i hev to call pkg-2 if pkg-1 successfully completed , but here pkg-1 is failed but still i am getting success message in operator
so , can we make pkg-1 failed if it's failed in any step

In the step "error_log" add a step to raise the error.
You can look at these posts:
Re: How to make an ODI session Error Out
Re: Jython code to check file in a Directory

Similar Messages

  • How to migrate an ODI scenario from DEV to PROD env

    I have a PROD and DEV environments which are same, however I have now developed a new package/scenario on the DEV and would like to merge it with PROD.
    One way I generally do is to drop the PROD ODI repositories and then Export , Import from the DEV ODI repositories; this process does not suit us as we have an incremental development on daily basis.
    Is there any other way I can transport the DEV scenario development to the PROD?
    Thanks in Advance
    B

    I think that would be far easier if you just export the scenario which is a xlm file and then when you are logged in on Operator (if work repository is the execution) you import the exact exported file , pretty simple!!
    best regards

  • ODI:Expose an ODI scenario as Web service

    how to expose an ODI scenario as web service.

    Hi
    Hope following link will helps you
    OdiInvokeWebService - How to pass a variable in the request value
    Thanks
    Phani

  • How to pass a Variable value into an ODI Scenario from ODI Package

    I have created an Interface that uses the variable #ENTITY_ID for retrieving entity data from the DWH; now I have generated a Scenario from the interface and placed the Scenario in an ODI Package; am not sure how to pass the #ENTITY_ID variable to the ODI Scenario?
    Any help is greately appreciated.
    Best Regards
    Bee

    Hi Sutrtha,
    Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
    Am I missing something?
    Regards
    B

  • How to execute ODI scenario from a web application

    Hi
    I need to execute ODI scenario from ApEx form.
    how to execute ODI scenario from application. Using 10.1.3.5.5
    -app

    In the SQL property of the TQuery object, enter the call as an anonymous block:
    begin
      pkg_name.procedure_name(true);
    end;

  • How to invoke odi scenario from bpel without passing plain text password

    Hi
    We have following requirement,we would like to invoke odi scenario from oracle bpel process.But one problem is we dont want to pass the odi password as plain text.Please let me know how do i achive this task.
    Thanks
    Baji

    Hi,
    Thanks its working now. I am facing another issue. I do not use parameters in my Scenario. Now when i run my scenario i m getting the following error. I think its because i have not assigned anything to the Variable element. I guess its taking null value for Variable element here and cheking if such a variable exists. Have you come accross such an issue? If so, please sugest remedy.
    java.lang.Exception: Specified variable not found in the Repository : null
         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.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:619)
    Edited by: silas.john on May 13, 2009 1:29 AM

  • How to expose ODI scenario as a web service

    How to expose ODI scenario as a web service?
    Can we generate wsdl of ODI scenario if yes then how?

    SSZ wrote:
    Yes.But couldn't understand where to start.In that case use the magic wand.
    Ask specific questions, Many of your posts have an underlying tone , that of you not having read any documentation of bothered to research anything yourself I havent got the time to tell you how if you havent got the time to tell me what you have read , what you grasp and what you do not grasp.

  • How to make ODI scenario sessions run mutually exclusive

    We want to restrict the end user of the ODI scenario to be able to run only 1 instance of the scenario at once. Is it possible in ODI ? Basically we want the ODI scenario sessions to be mutually exclusive ? if one is running, and if user tried to run another one, it should not allow him to do so.
    Please note that we are aware of how to handle parallel runs while coding for the same, but here we don't even want to get to a situation like that.
    Thanks,
    Ankit

    Hi Ankit,
    Trying to help...
    Two solutions -
    Solution 1:-
    Create a dedicated agent for that particular execution and for that agent set the maximun number of execution as 1.
    (so only one session will be executed at a time)
    Solution 2:-
    Create a log table/ (lock table) to maintain the status of the execution . (column - Session state)
    When ever an execution starts change the satus of the log (lock) table column as "Running"
    and once the session is completed change the status of the column as "Not Running"
    And in the package (starting) put a condition variable to check the column - Session state of the table log table/ (lock table)
    if its running exit the application , else continue.
    Hope this helps.
    Regards,
    Rathish

  • How to run ODI scenario from java?

    I am new to java, need to do some testing on how to invoke ODI scenarios from java.
    Can somebody drop me some simple code?
    Thanks a lot,
    Lei

    Hi there
    1. Start your agent (double click agent.bat)
    2. generate scenario for ur package(right click ur package , select generate scenario)
    3. Add the odi-sdk-invocation.jar file to your java project
    ODIcmdScenario=new OdiCommandScenario();
    ODIConnection=new OdiRepositoryConnection();
    ODIConnection.setOdiUser("ur-username");
    ODIConnection.setOdiPassword("ur-password");
    ODIConnection.setJdbcDriver("Driverdetail");
    ODIConnection.setJdbcUrl("url-details");
    ODIConnection.setJdbcUser("dbusername");
    ODIConnection.setJdbcPassword("dbpass");
    ODIcmdScenario.setScenName("scenarioname");
    ODIcmdScenario.setScenVersion("scenarioversion");
    ODIcmdScenario.setLogLevel(5);
    ODIcmdScenario.setContext("context");
    ODIConnection.setWorkRepositoryCode("repository");
    ODIInvocation = new OdiInvocation("hostname", 20910); //20910 default port
    OdiInvocationResult result=ODIInvocation.invokeCommand(ODIcmdScenario,ODIConnection);
    Hope this helps!
    Cheers

  • How to run ODI scenario using command prompt

    Hi expets
    Please let me know if we can run ODI scenario using command prompt or any way other than operator.
    Regards
    Janakiram

    Go to <ODI_HOME>/oracledi/bin in command prompt and invoke startscen command with teh below parameters.
    Edited by: Guru Sankar on Feb 28, 2011 4:19 PM

  • Automate an ODI scenario

    Need to aumtomate an odi scenario with some conditions.
    Let me know any link on which all the related information regarding scheduling an odi scenario will be done.

    rv wrote:
    I have read this document and done all that steps which are explained in it.
    What I am trying to do is that when an automatic scenario failed to do the work which was planned.
    Then after how much time it will try to do that work again.
    In the execution cycle tab of scenario scheduling the constraints tab have two option of number of attempts on failure and stop execution after but there is no option of time after which it will restart the scenario.
    This is the problem which i am facing.
    Please suggestIn your package that is calling the scenario, you have 'Number Of Attempts' and 'time between attempts (in seconds)' you can set it there.

  • Invoke ODI scenario from Fusion ESS

    Hi,
    We have developed one ODI scenario as part of our project to migrate the data from source(oracle DB) to target(oracle DB).
    We would need to call this ODI scenario from a ESS Job to migrate the data to target.
    Can you please let us know, what job type need to be defined for ESS job and
    how the ODI scenario can be invoked from the ESS job ?
    Thanks

    Can you go to the command line from ESS?
    Install the Agent only runtime client so its visible to ESS and run startcmd.sh in this format :
    startcmd.sh OdiStartScen -SCEN_NAME=PURGE_OPERATOR_LOG -SCEN_VERSION=-1 -CONTEXT=GLOBAL -AGENT_CODE=DGDW_AGN
    If you want to specify the agent.
    or simply :
    startscen.sh PURGE_OPERATOR_LOG -1 GLOBAL NAME=DGDW_AGN
    if you are happy for the machine where the Agent software has been installed to orchestrate the job.
    Failing that, you could look at invoking your scenario from web services ?

  • How to achieve poll-based scenarios in Oracle Data Integrator

    Hi ,
    Could you pleaes let me know as to how to achieve poll-based scenarios in ODI?
    I have a requirement where in, ODI has to interface with a JMS Queue for XML messages and write to a DB.
    This is not based on a schedule. The ODI interface has to poll for the messages from the queue and write to the DB.
    How would I achieve this?
    It would help if one can give the required steps to go about this.
    I have created a package containing the interface that picks the xml msg from queue and inserts into a DB table. I have generated a scenario for the package. I have modified the MAXMESSAGETIMEOUT in the LKM to 0
    then what else I have to do?
    I have launched a listener agent; but how would I associate this with the generated scenairo?
    Any insights into this would really help!!!
    Thanks,
    Manoj Nair.

    Hi,
    ODI will do a SINGLE commit after all the rows have been inserted/updated in to the target table, so dont worry about the "rollback" if the transactions fails.
    For the handling failed transactions, you need handle it using CKM by having constraints defined for the transactions and move it to E$ table if its violated.
    Hopes this helps.
    Thanks,
    Guru

  • Publishing ODi scenario as Web Service

    Hi
    I could use ODI invoker Service to invoke ODi scenario from SOap UI, or BPel and other Tools
    The ODI invoker service invokes the SCENARIO & returns the session number for the Scenario triggered. But the issue is it will not wait for the scenario to complete.
    What I need is the status for the scenario after it is done....anyone can suggest how is it possible.
    Other way around is
    If its possible to publish scenarios as web services????

    Hi Setting Sync Mode to 1 helped .Thanks. But there is one issue :
    For Hard errors it returns the repsosne as false ( Failed) but for scenarios with data errors or unique constraint errors it returns a true.. is tehre a way to handle that.
    Anothe rquestion related to publishing the scenario as service is:
    Added Application server: AXIS2, and used "SKM Oracle" Knowledge module on a datastore(table) to generate and deploy webservice
    I get this error
    java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
         at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
         at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
         at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:663)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:709)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
         at com.sunopsis.dwg.dataservices.WSDLGenerator.d(WSDLGenerator.java)
         at com.sunopsis.dwg.dataservices.AbstractWSGenerator.m(AbstractWSGenerator.java)
         at com.sunopsis.dwg.dataservices.AbstractWSGenerator.b(AbstractWSGenerator.java)
         at com.sunopsis.dwg.dataservices.WSGenerationTask.a(WSGenerationTask.java)
         at com.sunopsis.graphical.b.c.b(c.java)
         at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
         at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
         at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
         at java.lang.Thread.run(Thread.java:619)

  • ERROR WHILE RUNNING ODI SCENARIO FROM BAM ALERT

    We are using oracle data integrator 11g and have created an ODI Scenario and able to run the scenario from ODI studio client.
    We have done the configuration for BAM-ODI integration as mentioned in http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bam_odi.htm#BABEJIGD
    We have started ODI Agent, soa and bam servers. Created a BAM alert -> select action - Run ODI Scenario -> selected the same scenario.
    Alert ran at scheduled time but failed with following error:
    java.io.IOException : truncated data integrator frame received
    Error Message (if any)
    [2012-08-06T11:24:21.046+05:30] [bam_server1] [WARNING] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Error occured while running a ODI Scenario.
    [2012-08-06T11:24:21.250+05:30] [bam_server1] [ERROR] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Action exception: EEInstEv2 EEInstAct1 Rule
    Id: 2 exception: java.io.IOException: truncated Data Integrator Frame
    received
    [2012-08-06T11:24:21.250+05:30] [bam_server1] [WARNING] []
    [oracle.bam.eventengine] [tid: bam-pool-Action-thread-1] [userId:
    OracleSystemUser] [ecid:
    3576f9092ef9497a:-743c430a:138fa7450c3:-8000-00000000000000a8,1:23453] [APP:
    oracle-bam#11.1.1] EventEngine: Exception stack trace: [[
    at
    oracle.bam.eventengine.engine.event.action.RunScenario.invokeScenario(RunScena
    rio.java:145)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.runScenario(ActionP
    rocessor.java:891)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.actionHandler(Actio
    nProcessor.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
    ava:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.bam.system.Delegate$Sink.invoke(Delegate.java:80)
    at oracle.bam.system.Delegate.dynamicInvoke(Delegate.java:186)
    at
    oracle.bam.common.threading.threadpool.ThreadPoolController$PoolQueueItem.proc
    essWorkRequest(ThreadPoolController.java:155)
    at
    oracle.bam.common.threading.threadpool.ThreadPoolController$PoolQueueItem.run(
    ThreadPoolController.java:128)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java
    :886)
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908
    at java.lang.Thread.run(Thread.java:619)
    Any help on this is highly appreciated...
    Thanks
    Rajdip Mukherjee

    Hi,
    Forgot to include the ODI classes RunScenario.invokeScenario() is invoking odi scenario using odi sdk api. Please see the below stack trace :-
    java.io.IOException: truncated Data Integrator Frame received
    at
    oracle.odi.sdk.invocation.internal.AgentNetworkCmd.readCmd(AgentNetworkCmd.java:303)
    at
    oracle.odi.sdk.invocation.OdiInvocation.invokeCommand(OdiInvocation.java:176)
    at
    oracle.bam.eventengine.engine.event.action.RunScenario.invokeScenario(RunScenario.java:140)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.runScenario(ActionProcessor.java:891)
    at
    oracle.bam.eventengine.engine.event.action.ActionProcessor.actionHandler(ActionProcessor.java:337)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Thanks
    Rajdip Mukherjee

Maybe you are looking for

  • Can't copy folder to hard drive. Why?

    I can't copy a folder from an external drive to the hard drive! A message comes up: "The operation can't be completed because an item with the name  ".DS_Store" already exists." What does this mean and what do I have to in order to be able copy the f

  • How to downgrade window OS 8.1 update 1 back to 8...

    Hi I have a window phone 635 that came with window phone 8.1 so I singed up for the developer program so I can see what window phone 8.1 update 1 was all about but I would now would like too downgrade. Back to window phone 8.1 if I can some one tell

  • I ordered some RAM but it doesn't fit inside the slot.

    http://www.newegg.com/Product/Product.asp?Item=N82E16820146575 I discussed purchasing some RAM and was told that this product would work for my G5. However upon recieving the product I discovered that doesn't work and doesn't even fit inside the slot

  • Timing in Labview

    Hello I am creating an application where I use a 72- hour data set, in order to find the best timeintervall to do a certain operation. However, as people tend to sleep at night, it is not very realistic to just place the operation at the time when it

  • WiFi connections are unstable on multiple different WiFi networks

    Has there been any updates on the unstable WiFi connection issues with the Note 3? I have this issue with multiple different WiFi networks even though signal strength is not an issue when it happens. I picked up my Note 3 in August/Sept 2013. 1. Work