Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8963417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:21:01+00:00 2026-06-15T16:21:01+00:00

I have the following issue: I created a trigger which is activated when a

  • 0

I have the following issue:
I created a trigger which is activated when a row is inserted into the table.
The trigger then starts a procedure.
The procedure then starts a workflow.

When I start the procedure it works fine. But when I start the trigger by entering a new row I got the following error:

Zeile 12: ORA-20001: Task not found - Please check the Task Type, Name and Location are correct.
ORA-06512: in "OWBSYS.WB_RT_API_EXEC", Zeile 759
ORA-06512: in "OWB***.EXECUTE_WF_ABC", Zeile 10
ORA-06512: in "OWB***.START_EXECUTE_WF_ABC", Zeile 7
ORA-06512: in "OWB***.ABC_WORKFLOW", Zeile 2

This is my trigger:

create or replace
TRIGGER  ABC_WORKFLOW
BEFORE INSERT  
ON OWB***.STG_ABC  
FOR EACH ROW

BEGIN  
OWB***.EXECUTE_WF_ABC;   
END ;

This is my procedure:

create or replace
PROCEDURE        EXECUTE_WF_ABC

AS
  status   NUMBER;
  -- paramlist VARCHAR2(30000 CHAR);
BEGIN

   owbsys.wb_rt_script_util.set_workspace ('OWBREPOWN.OWB***');
   status :=
      owbsys.wb_rt_api_exec.run_task (
       p_location_name => 'OWF_LOCATION',
       p_task_type => 'PROCESS',
       p_task_name => 'WF_ABC',
  --     p_custom_params => paramlist ,
       p_system_params => '', 
       p_oem_friendly => 0 ,
       p_background => 1); -- execute in background

   DBMS_OUTPUT.put_line (status);
   COMMIT;
---   EXCEPTION
---   when others then
---   message;
---      null;

END;

Did I miss something here?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:21:02+00:00Added an answer on June 15, 2026 at 4:21 pm

    if your table is the TASK table, then your trigger is firing BEFORE the row exists, so if that workflow is checking for data in the row you’re inserting then there is no wonder it’s failing.

    also COMMIT; in a trigger is really bad (and would fail if you inserted more than 1 row).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following trigger on my table, issue I am facing is in
I have created a trigger with no errors and I have a mutating table,
I have the following issue related to iterating over an associative array of strings
I have the following issue and I would like to know what exactly happens.
I have the following issue with a UTF8 files structured as following: FIELD1§FIELD2§FIELD3§FIELD4 Looking
I have the following issue: I have a splash like window coming with my
I have the following issue: A java object contains two arrays of core datastore
I have the following issue: I open a dialog box with jQuery UI. This
I am using Django 1.3 and have the following issue: In the Admin list
I'm just starting with Object Oriented PHP and I have the following issue: I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.