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!

Similar Messages

  • ORA-22922: nonexistent LOB value in outer join in XMLDB parsing query

    Hi,
    We are in a situation where i must use outer join with the address type fragment in the XML reader query,
    Here is the oracle installation details
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE     11.2.0.3.0     Production"
    However once i add the (+) sign i get an error, other wise it runs absolutely fine without the (+) s
    ORA-29400: data cartridge error
    ORA-22922: nonexistent LOB value
    29400. 00000 - "data cartridge error\n%s"
    *Cause:    An error has occurred in a data cartridge external procedure.
    This message will be followed by a second message giving
    more details about the data cartridge error.
    *Action:   See the data cartridge documentation
    for an explanation of the second error message.
    Query:
    =======
    select
    from PWAYWORKFILE_TABLE,
    xmltable(
    xmlnamespaces(DEFAULT 'http://www.cccis.com/Pathways/Workfile'
    , 'http://www.cccis.com/Pathways/CommonType' as "pct")
    , '$XS/PwayWorkfile' passing WORKFILE as "XS"
    columns
    CURESTID VARCHAR2 (4000) PATH 'EstimateComp/LastOutboxEstID',
    Est_Fragment XMLTYPE PATH 'EstimateComp/EstList/VehEstimate'
    ) m,
    XMLTABLE(
    xmlnamespaces(DEFAULT 'http://www.cccis.com/Pathways/Workfile'
    , 'http://www.cccis.com/Pathways/CommonType' as "pct")
    , '$PY/VehEstimate' passing m.Est_Fragment as "PY"
    columns
    NUMBERLINES VARCHAR2 (4000) PATH '@NumberLines',
    LINEESTIMATEID VARCHAR2 (4000) PATH 'EstimateID',
    EstLine_Fragment XMLTYPE PATH 'EstimateLines/EstimateLine'
    ) (+) l,
    XMLTABLE(
    xmlnamespaces(DEFAULT 'http://www.cccis.com/Pathways/Workfile'
    , 'http://www.cccis.com/Pathways/CommonType' as "pct")
    , '$NY/EstimateLine' passing l.EstLine_Fragment as "NY"
    columns
    LINENUMBER VARCHAR2 (4000) PATH '@LineNumber',
    LINEBLOCKID VARCHAR2 (4000) PATH 'LineBlockID',
    LABORCATEGORY VARCHAR2 (4000) PATH 'LaborCategory',
    LABORHOURS VARCHAR2 (4000) PATH 'LaborHours',
    LINEOPERATION VARCHAR2 (4000) PATH 'LineOperation',
    MANUALLABORINCLUDE VARCHAR2 (4000) PATH 'ManualLaborInclude',
    MANUALPAINTINCLUDE VARCHAR2 (4000) PATH 'ManualPaintInclude',
    MANUALPRICEINCLUDE VARCHAR2 (4000) PATH 'ManualPriceInclude',
    OEMPRICE VARCHAR2 (4000) PATH 'Calculation/OEMPrice',
    SINGLEOHINCL VARCHAR2 (4000) PATH 'DataList/DBMotorData/LaborInclType/@SINGLEOHINCL',
    DOUBLEOHINCL VARCHAR2 (4000) PATH 'DataList/DBMotorData/LaborInclType/@DOUBLEOHINCL',
    PPAGEINCL VARCHAR2 (4000) PATH 'DataList/DBMotorData/LaborInclType/@PPAGEINCL',
    SUPPLIERID VARCHAR2 (4000) PATH 'DataList/RPSPart/SupplierID'
    ) (+) j
    where
    l.LINEESTIMATEID = 51 or
    l.LINEESTIMATEID = m.CURESTID or
    l.LINEESTIMATEID = (CASE
    WHEN m.CURESTID = 101 THEN 51
    WHEN m.CURESTID > 101 THEN m.CURESTID -1
    ELSE -1 END);
    Please note that the PWAYWORKFILE_TABLE is objection relationally stored with XMLs.
    Please suggest what kind of error i am getting and what possible steps might resolve the same, let me know if i missed any details which might shade more light on the same.
    Regards,
    Arghyadip

    Which outer join gives you the error? I don't see any address information in the SQL, hence my question. The first outer join, on table alias L is not needed. The WHERE clause you have setup requires that L.LINEESTIMATEID has a value and so NULL will not evaluate to TRUE and the row will be filtered out. This means you will only be returning rows where there exists rows in the L table, hence the outer join is not needed.
    Are all your columns really VARCHAR2(4000)? You say it is object-relational, but was something defined as a CLOB?
    You did not provide much in order to duplicate your error so I am just guessing at causes to identify the error.
    Also see #9 in
    {message:id=9360002}

  • ORA-22922: nonexistent LOB value  during import

    During the import of a dump file of a database with a table holding
    several CLOB column I get the error message 'ORA-22922: nonexistent LOB value'
    the import is partially rolled back and fails in the end.
    How can I get around this problem? Is there any way to check the locators in the
    original database table if there is any LOB value missing?

    Which version of RDBMS you are using. The following link talks about the issue being fixed in 8.1.7
    http://asktom.oracle.com/pls/ask/f?p=4950:8:11560397072454048249::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:715689791379

  • 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 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 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

  • 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

  • ORA-22922: nonexistent LOB value

    hi, we are working With orascle stream in 11.2.0.4 database version.
    and we use  DML  HANDLER for a table that contain CLOB, in handler procedure, we store or save LCR into  our table MTAB1, that contain a column with anydata type.
    then we send this LCR to a procedure to get data and we have the error when try:
             v_anydata := pi_lcr.GET_VALUE('new','RESOLUTION_TEXT');
                         rc := v_anydata.GETCLOB(po_clob_resolution);
    if we comment this seccion of the procedure all its ok.
    and if we call procedure to get data directly in handler, its ok..
    1.  STAGE A -- ERROR
    source                                                      TARGET                                                                           send LCR to procedure
    CAPTURE LCR ---> PROPAGATE---->  APPLY -->DML HANDLER--->Save LCR into a TABLE X ----->CALL_GET_DATA  
    STAGE B -- OK
    source                                                      TARGET                            send LCR to procedure
    CAPTURE LCR ---> PROPAGATE---->  APPLY -->DML HANDLER--->CALL_GET_DATA  
    please your help to solve the issue
    regards:

    THis question would be better placed in the general database forum, this forum is used for multimedia support in the database, adn we do use lobs, but are not recovery experts.

  • 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.

  • User defined activity problem in process flow

    Hi ,
    any one can help me out
    I have added a user defined activity in process flow , and given command values as \\windows\system32\cmd.exe
    and parameter list : ${input.value}
    and in script : kpi.bat
    where i written
    cd \kpi_sap
    for /f "tokens=1-5 delims=/ " %%d in ("%date%") do copy "c:\kpi_sap\kpi_sap.csv" %%e-%%f-%%g.dat
    but its not working ...
    can any one give me direction to get success in this activity
    best regards,
    mahi

    Hi Mahi,
    I see that your post is a few days old and you might have resolved this issue, but if you haven't you might want to change the command value to c:\windows\system32\cmd.exe instead. Its been a while since I worked with commands, but I remember that I had a lot of problems when I defined paths with '\\'. What I found out was that OWB jobs was run under the windows system account and the system account don't have access to networkshares (even if its really not on the network).
    I can't say whether the script in the kpi.bat is wrong, but as long as you can run it manually using cmd.exe you should be ok.
    If this doesn't help it might be helpful with some more specific error messages.
    regards Ragnar

  • Process Flow Transistion dissapears

    Hello!
    Some of the created transitions are not created in the actual Process Flow. This is obvious when looking in the Process Monitor. When I redraw the one missing, deploy and execute the process flow again. I get more transitions but not all of them!
    Does anyone know how to solve this issue?
    Best regards,
    Tina

    Hi Tina,
    it is an OWB bug. For more details and workarounds look at these threads
    [owb process flow error handling|http://forums.oracle.com/forums/message.jspa?messageID=2138808#2138808]
    [10GR2 - Process Flow executes in wrong order...|10GR2 - Process Flow executes in wrong order...
    Also on Metalink is registered a lot of bugs for different releases (including 10.2.0.4 and 11.1.0.7, for example bug 7603716)
    Regards,
    Oleg

  • OWB 11.2.0.4: Process flows execute in parallel instead of serial

    Hi all,
    we migrated a 10gR2 repository (Linux) onto 11.2.0.4 and noticed a heavy error: the sub-processes which are supposed to execute serially (and did this in 10g) are started in parallel, so, that the whole dependency concept is destroyed. Prior to raise a SR I'm asking the community if such a behavior has been seen already. The process flow deployment was done with the brand new Windows client for 10.2.0.4.
    best regards
    Thomas

    Hi Thomas,
    Have you checked if you have problems with the transition order property? It was still present on 11.2 when the process flow was migrated from 10.2. Check this thread:
    Re: owb process flow error handling
    Regards
    Ana GH

Maybe you are looking for