Process Flow errors in OEM Scheduler

Hi
I'm using OWB 10.1.03. I've created 2 process flows that load data from different sources. I have also set up a job schedule on Oracle Enterprise Manager (OEM) that runs a stored procedure. This procedure comprises two steps:
(1) Start a loop and check for a table flag. If flag set then Run Process Flow 1 (using
ret:= wh_runtime.wb_rt_api_exec.run_task('TARGET_LOC','PROCESS','WF_NAME','','',1)). Else keep looping until flag is set.
Then immediately after Process Flow has run,
(2) Start a loop and check for a different table flag. If flag set then Run Process Flow 2. Else keep looping until flag is set.
If there has been an error in Process Flow 1, the mapping completes with error and an email notification is sent. However, according to the stored procedure, Process Flow 1 has completed and it therefore moves onto Process Flow 2.
Is there a way of identifying if a Process Flow has completed with an error or warning, and therefore preventing the procedure moving onto step 2?
Thanks
GB

Hi
I managed to solve this by using part of the oem_exec_template.sql script within my stored procedure. I used l_audit_result to check the status of the workflow run and raised an exception if it was not a success.
GB

Similar Messages

  • Process flow Deployment for OEM

    I try to define a process module with an OEM deployment location.
    It is not possible to create a new one during the creation wizard.
    I'm not able to allocate later on an existing OEM location.
    How cum?
    OWB 9.2.
    Oracle 9i

    Hi Igor,
    Thnx for your response.
    I did look already to viewlet but this is the way to schedule jobs to run mappings which are PL/SQL packages.
    What i try to do is defining in the OWB tool a process flow and a deployment location for this process flow and there i can't choose to define a location of the OEM type.
    I would expect that OWB generates specific code or package for this process flow that i can scheduled using OEM and the oem template.
    I will check the things you mentioned maybe they are related but i would be surprised. I would not expect that OWB tool is so depended of the deployment environment.

  • Process flow fails in OEM

    I am trying to schedule an external process in OEM. The task has been successfully deployed from Deployment Manager. The process flow location is owf_locn and the process flow name is stg_tgt. The parameters that I specified were "runtime_owner owf_locn process stg_tgt". The scheduled job ends with the error below. Preferred credentials were set for the runtime_user. Have I selected the correct parameters or is there something else that I have missed?
    SQL>
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=owf_locn
    | task_type=ProcessFlow
    | task_name=stg_tgt
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261

    Hi Igor
    We're getting close, but not quite there yet. You may have missed my last posting due to the similar time of posting.
    My batch files will require reference to an application on a remote machine. Thus while I can copy the batch file to the server, the application referenced in the batch file must refer to files on another remote server specified as \\server2\d$\external.ear. As you can see this requires an administrative account on the remote server to access the 'd$' directory. In my last posting I had reached the stage where the batch job was denied access to the remote server, but otherwise (eroneously) reported success. What account do these jobs run against so that I can set up access permissions on the remote server?
    I tried your suggestions. #1 fails for the above access problem. #2 runs for hours until I cancel - this is the case anytime that I have tried using c:\windows\system32\cmd.exe. #3 Not sure what you mean by set up and register a file location?

  • Process Flow Error

    I ran into a problem with one of my process flows, within my staging area. I have not had this problem before. My process flow looks as follows:
    --- > Map2
    --- > Map3
    --- > Map4
    Map1 --- > Fork --- > Map5 --- > AND --- > Map 9 --- > Map10 --- > Map11 …
    --- > Map6
    --- > Map7
    --- > Map8
    Mappings 1 through 8 ran successfully and populated their staging tables. The process flow showed success of mappings 9 through 16 (the last one) and successful completion of the process flow. However Mapping 9 was still extracting data and had not yet loaded its staging table. I was watching the execution in OEM. Mappings 10 through 16 did not execute after completion of Mapping 9.
    This is a weekly large data load into our data warehouse so I will not be able to run this process flow again until this weekend. Map 9 was running with a degree of parallelism of 16, if it matters, and did not fail.
    Has anyone run into this issue before?
    Thanks.
    Scott

    user10483084 wrote:
    I ran into a problem with one of my process flows, within my staging area. I have not had this problem before. My process flow looks as follows:
    --- > Map2
    --- > Map3
    --- > Map4
    Map1 --- > Fork --- > Map5 --- > AND --- > Map 9 --- > Map10 --- > Map11 …
    --- > Map6
    --- > Map7
    --- > Map8
    Mappings 1 through 8 ran successfully and populated their staging tables. The process flow showed success of mappings 9 through 16 (the last one) and successful completion of the process flow. However Mapping 9 was still extracting data and had not yet loaded its staging table. I was watching the execution in OEM. Mappings 10 through 16 did not execute after completion of Mapping 9.
    This is a weekly large data load into our data warehouse so I will not be able to run this process flow again until this weekend. Map 9 was running with a degree of parallelism of 16, if it matters, and did not fail.
    Has anyone run into this issue before?
    Thanks.
    Scottperhaps there's an error at MAPPING before MAPPING10, but it's not detected
    I suggest you to add 2 transitionto COMPLETE ERROR and COMPLETE WARNING
    from MAP1; AND; MAP9, MAP10, MAP11, ...
    and fill the transition; enumerate ERROR for ERROR, enumerate WARNING for WARNING,
    and the other line; enumerate SUCCESS
    --- > Map2
    --- > Map3
    --- > Map4
    Map1 --- > Fork --- > Map5 --- > AND --- > Map 9 --- > Map10 --- > Map11 …
    --- > Map6
    --- > Map7
    --- > Map8
    so you can know what MAPPING that doesn't success, and you can test it manually with control center, to know the error message
    Thanks

  • Owb process flow error handling

    Hi,
    I am using OWB 10gR2.
    I have 2 process flows that each call a series of mappings. Then I have one "master" process flow that calls the two aforementioned proecess flows. When a mapping errors, I want my whole master process flow to abort. I put error handling in, but it doesn't seem to work. For example, if I get an error in the first process flow, I get my email notification that something is wrong. The process ends. However, the master process flow continues to go. I want it to stop. It continues to go because there wasn't an error in the first process flow. The error was handled, and the process flow ended successfully. Does anyone have any tips or tricks on how to handle this type of situation? I'm not doing anything revolutionary. I'm just new to these process flows.
    Thanks,
    Tim

    hmm ok this sounds a bit weird to me.
    I've created similar processflows with customers and never had similar problems like you describe.
    Just to verify your design, here is how I would solve your master1 processflow.
    _______________________END_WARNING
    w w
    start----PF1----------s---------------PF2------s---- END_SUCCESS
    e e
    \___________________\____END_WARNING
    where the conditions for the transitions is indicated with w for warning, s for success and e for error.
    Some poorly made ascii art there but hopefully you get the idea...:p
    This also sounds like what you've done already and with extra email functionality.
    Are you sure that pf2 starts after pf1? Or can it actually run in parallel with pf1 but just finishes after pf1 so it seems like it its done afterwards? The reason I ask is that I experienced that in one of my processflows with around 30+ mappings, one of the mappings that was supposed to be executed almost at the end, executed before everything else and messed everything up. It was quite the annoying little bug and took a long time for me to discover. If you have noticed on the transitions, there is a little number next to the line on the canvas, indicating in which order the operators are to be executed. In my case, two transitions had the same number and that caused one of the mappings to just start as soon as the processflow was told to start. If this is the case there is a way to set these, but I don't remember right now. Delete and recreate the transitions also do the trick I think.
    Hope you figure it out!
    Ragnar
    edit: seems like my ascii art got a bit messed up... :(
    Message was edited by:
    rhaug

  • Process Flow Error: nonexistent LOB value

    Hi,
    I would like to send an email of all mapping statuses of the day. I created function to retrieve all messages from OWB$WB_RT_AUDIT_MESSAGE_LINES. Sometimes it works and another time it fails. After a little investigation I got the cause of this failure: length of the message exceed the limitation of VARCHAR2 (4000 bytes).
    Then I created another function for testing as follows:
    CREATE OR REPLACE FUNCTION FTEST_VAR RETURN CLOB IS
    tmpVar CLOB;
    BEGIN
    tmpVar := 'test';
    RETURN tmpVar;
    END FTEST_VAR;
    From SQLPlus I was able to query this function:
    SQL>select ftest_var tst from dual;
    TST
    test
    Then I created a process flow like this:
    START1->FTEST_VAR->EMAIL->END_SUCCESS
    In the process flow I created a variable EMAILBODY to bind to the output of FTEST_VAR and then bind EMAILBODY to the MESSAGE_BODY of the EMAIL.
    I deployed and run the process flow. It failed with this error message:
    ORA-22922: nonexistent LOB value
    ORA-06512: at line 1                                        
    Could anybody please shed a light on this?
    TIA
    Prat

    I am trying to setup pretty much the same type of flow to email job messages using a CLOB.  Were you able to find a solution?
    Thanks!

  • Process Flow errors - how do you see them

    Hi there
    Created and deployed a process flow but when run it either comes up with warnings or errors. Really simple process flow to run two mappings which, individually run fine. when run the process flow in Conrol Cenetr has error or warning symbol, click job details but can't see what the error, warning message is.
    Any ideas how to see them - this is the first process flow I've created?
    Many Thanks

    Hi
    You can either;
    * use the repository browser and view the audit trail there (must start the browser listener first).
    * use the OWB SQL Developer reports that use the public views on the exchange, the error details are recorded in the public views.
    http://www.oracle.com/technology/products/warehouse/htdocs/Experts/owb_sqldeveloper.zip
    I created these for a quicker turnaround time in building/debugging process flows. The browser is the official mechanism.
    This is fixed in 10.2.0.3 - you will see the errors in the control center manager, where you might have expected them in the first place!
    Cheers
    David

  • Process Flow error- RPE 01003

    Hello,
    We are facing a very strange problem while running process flows in OWB. We are getting followig error when we execute process flows.
    InfrastructureException: RPE-01003: An infrastructure condition prevented the request from completing.
    - Io exception: The Network Adapter could not establish the connection
    It's strange because we are able to connect to source and target database outside owb. Also, the location test is successful. Any idea why it fails to connect while running process flow only. We tested the db links created by owb. They work as well.
    We are using OWB 10.2 on Oracle 10G installed on Linux RAC machines.
    Any help is appreciated.
    Thanks
    Madhavi

    I have a MATERALIZED VIEW in the process flow and it fails. the erros i get are as follows? can any one tell me what wrong with it?
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-01038: Failed to evaluate expression null. Please modify the expression, redeploy and retry again.
    RPE-01003: An infrastructure condition prevented the request from completing.
    RPE-02226: Cannot test Control Center user null. This user must match the login credentials of the deployment location.
    RPE-01003: An infrastructure condition prevented the request from completing.
    no rows found for select into statement

  • Process flow errors

    Hi all,
    I am upgrading owb from 10g R1 to 10g R2. Now, I can deploy and loading data for every mapping. When I am testing the process flow, I get the error message like this :
    ORA-01924: role 'OWB_O_OWBRTR2' not granted or does not exist
    ORA-06512: at "SYS.DBMS_SESSION", line 132
    ORA-06512: at line 1
    RPE-02215: Failed to test synonym QREGODSL_WB_RTI_WORKFLOW_UTIL.
    RPE-02260: Database User OWF_MGR must be a Control Center User.
    When I doing the upgrading, I did reporsitory upgrads, but nothing for process flow. Do I need to take some steps for process flow upgrades? If yes, how can I do it or where can I find the related document? If no, then what does the error message above mean?
    thank you so much

    The Process Flow Database User should be created as Target User before you deploy the process flow.
    i.e OWF_MGR should be created as a target user

  • Process flow errors while deploying

    Hi all,
    The following error occurs while deploying a simple process:
    RPE-02085: Failed to test wb_rti_workflow_util.initialize through deployed Workflow Database Link
    CF.US.ORACLE.COM@WB_LK_F_IMP_BB. Please check that "EXECUTE ANY PROCEDURE" privilege is set and
    that the OWB Runtime is available.
    - ORA-04052: error occurred when looking up remote object
    [email protected]@WB_LK_F_IMP_BB
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12545: Connect failed because target host or object does not exist
    OWF_MGR has been given execute any procedure grants. My opinion is that the database link has an error. This is how Oracle creates the DB link:
    create database link CF.US.ORACLE.COM@WB_LK_F_IMP_BB connect to RUNTIME_OWNER identified by RUNTIME_OWNER using'
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=demo.SMS)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=CF)))';
    When i create another DB link manually without the '.sms'-part in the HOST then the DB-link works fine. Where can i find the parameter that tells OWB to put .sms behind the hostname? I have tried numerous possibilities in sqlnet.ora, listener.ora and tnsnames.ora, but nothing seems to work. I have read the previous articles on this subject but havent found the solution.
    Thankz in advance,
    Eric

    I am getting the same problem, The problem was caused by the domain suffix (.KC.RR.COM).
    when I deploy a processflow package, owb creating bd_link with following description. Actually my host name is NG.
    (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=NG.KC.RR.COM)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)))
    How can I avoid creating domain suffix as part of db_link. Please let me know the steps you have taken to correct this.
    Your help is greately appreciated.
    Thanks,
    Reddy

  • Trigger admin e-mail on process flow error in real time

    I currently have an e-mail sent (success, warning, error) at the end of a workflow, and somewhere in the middle at the end of larger collection of mappings. However, now I am looking into triggering e-mails at any error or warning in the middle of the workflow. Is this possible?

    The major challenge on your stated information is that you are going to work with Windows.
    Windows is not a deterministic OS. That means that you can have any kind of timing jitter at any time. The common jitter does not exceed 1-10ms in average, but you can have spikes of up to even several seconds at any time (e.g. if virus scanner scans or hard drive is indexed, ...)!
    So regarding the hard limits of your timing requirements, you might want to switch to a deterministic system, either Real Time (RT) or even FPGA (which seems to overblow the requirements....).
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Scheduling Process flows

    I have created process flow and created and schedule and attached it to the process flow thru configure and refferred calander and depoyed the process flow again. But the flow doesnt start.
    Is there anything else to do. I read in form that some _job appears in Control center. I dont find in my control center.
    Can anyone explain me any other steps which are required to run PF based on schedue.
    Thanks..

    Hi Tom
    You will find pfname_JOB in the control center. if you expand the location under which you created your Schedule, you will see a scheduled jobs tree expand that and then you will find your schduled job( pfname_ JOB) which requires deployment to start running.
    Hope this helps
    Regards
    Vibhuti

  • Scheduling Process flows in scheduling tool Control M

    Hi,
    We need to schedule 3 to 4 process flows through the general scheduling tool "Control M". So how do we do this? I mean where should we login to run the OWB jobs (Process Flows) through Control M.
    Any help will be appreciated.
    Thanks,
    Harsha

    Create a shell script that will take in the required parameters you need (i.e.connection User/pwd@SID and OWB mapping inputs if required), which call sqlplus with a procedure that will run your workflow.
    My current client migrates all OWB incl Worflows created through OWB by the means of export. This is why the prefix of the workflow activity will differ from an environment from another.
    Here is a procedure that will launch the OWF and wait for the workflow to be completed before it exits and return control to CONTROL-M.
    CREATE OR REPLACE PROCEDURE XX_OWF_Daily_Load (
    ATTR01 IN VARCHAR2(10),
    ATTR02 IN VARCHAR2(10),
    ATTR03 IN VARCHAR2(10),
    ATTR04 IN VARCHAR2(10),
    ATTR05 IN VARCHAR2)
    IS
    v_ITEM_KEY VARCHAR2(40);
    v_PREFIX VARCHAR2(4);
    v_ITEM_TYPE VARCHAR2(8):= 'MY_ITEM';
    v_PROCESS VARCHAR2(32):='MY_ITEM_KEY';
    /*Mapping Inputs for OWB */
    v_ATTRIBUTETXT01 VARCHAR2(1):='ATTR01';
    v_ATTRIBUTETXT02 VARCHAR2(1):='ATTR02';
    v_ATTRIBUTETXT03 VARCHAR2(1):='ATTR03';
    v_ATTRIBUTETXT04 VARCHAR2(1):='ATTR04';
    v_ATTRIBUTETXT05 VARCHAR2(1):='ATTR01';
    v_STATUS VARCHAR2(30):='RUNNING';
    BEGIN
    /* Generate a unique key */
    SELECT 'DAILY_PROCESS'||TO_CHAR(SYSDATE,'YYYYMMDD:HH24MI') INTO v_ITEM_KEY FROM DUAL;
    SELECT TRIM(TEXT_DEFAULT)||'_' INTO v_PREFIX
    FROM WF_ACTIVITY_ATTRIBUTES_VL
    WHERE
    ACTIVITY_ITEM_TYPE = 'MY_ITEM'
    AND ACTIVITY_NAME = 'MY_ITEM_KEY'
    AND NAME = 'SYS:TLA';
    /* Creating the Workflow Process */
    Wf_Engine.createprocess(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    process => v_PROCESS);
    /* Setting all required attributes for the Workflow Process */
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_WORKAREA_POLICY',
                                  AValue => v_ATTRIBUTETXT01);
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_WORKAREA_TR_POLICY',
                                  AValue => v_ATTRIBUTETXT02);
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_USER_DIM',
                                  AValue => v_LOAD_USER_DIM);
    Wf_Engine.SETITEMATTRTEXT(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    AName => v_PREFIX || 'LOAD_VEHICLE_DIM',
                                  AValue => v_ATTRIBUTETXT05);
    Wf_Engine.setitemowner(ItemType => v_ITEM_TYPE,
    ItemKey => v_ITEM_KEY,
    Owner => 'OWF_MGR');
    /* Starting the Workflow Process */
    Wf_Engine.startprocess (itemtype => v_ITEM_TYPE,
    itemkey => v_ITEM_KEY);
    WHILE (v_status <> 'COMPLETED')
    LOOP                              
    SELECT ACTIVITY_STATUS INTO v_status
         FROM WF_ITEM_ACTIVITY_STATUSES
    WHERE ITEM_TYPE='MY_ITEM' AND ITEM_KEY=v_ITEM_KEY;
    SYS.DBMS_LOCK.SLEEP(600);
    END LOOP;
    END;
    /

  • Scheduling a Process Flow

    Hi All,
    I wanted to run my process flow at a predefined schedule. I had created a schedule for the same. But how do I specify which mapping need to be run on this schedule and how do I deploy this schedule. I am not able to see this schedule in my Location?
    Thanks & Regards,
    Danish

    Hi
    1. Deploy the process flow.
    2. Create a schedule and set the time parameters
    3.Right click on the process flow you want to schedule
    4 select configure
    5. Assign the schedule to the process flow using referred calendar. This will create a process flow job or scheduled job under the location string used for creating a schedule. The scheduled job would be having the name of the process flow but with suffix "_JOB"
    6. Deploy the scheduled job.
    7. Start the scheduled job manually initially. This will start/enable the schedule and the Process flow is executed for every interval of time.
    Hope this helps
    Regards
    Vibhuti

  • Multiple Schedules of Objects (Process Flows)

    Hello,
    How can you assign a process flow to two different schedules (and jobs) f.i. a week and a weekend job. Do I need to make some copy of the object as you assign object to a schedule.
    Regards,
    Edwin

    a process flow can only refer to one calendar at a time, for your requirement you will ahve to copy the process flow and refer the weekend calendar to one Pf and weekly calendar to another.
    this is precisely the reason why lot of companies use schedulers like autosys or control M as there is a calendar facility which can run the same job at different schedules rather have 2 different process flow and calendars.
    You might be better off using "sqlplus_exec_template" which can be found in /owb/rtp/sql folder and using a dbms scheduler to run this process flow in which case you can sue the same process flow but create 2 jobs to run at different times rather than creating 2 process flow and 2 different schedules.
    Regards

Maybe you are looking for

  • Material Determination at the time of Order Entry

    Hi All, I am a novice to SD Module. I am basically an ABAPER. We have a requirement to restrict certain Materials. My question is as follows : While in the time of Sales Order Creation if you give the Material Characteristic SAP gets the Material Num

  • Mighty Mouse scroll ball problems

    I wondered if anyone could help me with a scrolling issue with the mighty mouse. Some days scrolling works vertically up and down and other times just one direction. I dont believe it is due to dirt in the mouse - it seems software related and is spo

  • How to i get passed the sign in required when trying to download a free app....

    my card was decined in a recent purches from the app store now i cant download anything not even a fre game with out putting in my card info agian but it still wont go thru due to zero balance how do i get passed it?

  • Combo Type UDF

    I have created a UDF in AR Credit Memo which is type of combo in line level matrix. how can i clear that combo box? have any one solution ? when i am trying to remove items from combo box the error message occuring "Iem - The Item is not a user defin

  • Can't find the toolbar

    Hello to the Community, i'm new here so i have a (simple?) question. I doesnt find the toolbar anymore (see picture). I have since 2 years photoshop so i know a little bit about adobe programs, but i cant find it in dreamweaver CS6. It shouldnt be so