CX_RSROUT_SKIP_RECORD & Error Stack.

Hi. I want to load certain records from the RESULT_PACKAGE (End Routine),  that don't meet a condition to the Error Stack.
So, I am using RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD, to fill the error stack. But this statement is not filling up the error stack.
Any suggestions.
Thanks.

Hi JD,
The end_routine call from the  generated transformation program lies in between TRY and ENDTRY.
In the genereted program there will be the logic to catch the exception CX_RSROUT_SKIP_RECORD from end_routine.
TRY.
        i_r_log->add_substep( 'ROUTE' ).
*<<<    Rule ID: '27'.
        _curr_rule-ruleid = '27'.
*       Step ID: '1', Type: 'ROUTINE'.
        _curr_rule-stepid = '1'.
        CALL METHOD me->end_routine
          EXPORTING
            request        = l_request
            datapackid     = i_r_inbound->n_datapakid
          IMPORTING
            monitor        = _lt_msg_s
          CHANGING
            RESULT_PACKAGE = <_yt_TG_1>.
        IF ltmsg_s[] IS NOT INITIAL.
Since you are using your own CATCH Statement in end_routine, may be the exception is not being forwarded to the exception handling in the generated transformation program.
You can try removing the TRY, ENDTRY and the CATCH statement just leaving the RAISE EXCEPTION TYPE CX_RSROUT_SKIP_RECORD. Ignoring ht warning it displays and then see if the error stack gets populated.
Hope it helps!
Check

Similar Messages

  • Error while comitting a transaction in oSB. The following is the error stack

    Error while comitting a transaction in OSB. The following is the error stack
    <Apr 20, 2015 12:00:15 AM MDT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-1AE41F1CAE45F2B146FD(296700848),Status=Rolled back. [Reason=Unknown],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=120,XAServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(ServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(state=new,assigned=none),xar=null,re-Registered = false),XAServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(ServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(state=rolledback,assigned=OSB_MS1),xar=WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_11603460297,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.jta.DataSource]=(ServerResourceInfo[weblogic.jdbc.jta.DataSource]=(state=ended,assigned=none),xar=CMSDS,re-Registered = false),SCInfo[OSB_PRDKS_DOMAIN+OSB_MS1]=(state=rolledback),SCInfo[SOA_PRDKS_DOMAIN+SOA_MS2]=(state=pre-prepared),properties=({}),local properties=({weblogic.jdbc.jta.CMSDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=OSB_MS1+soaprd-vip-osb-ms1.cos.is.keysight.com:8001+OSB_PRDKS_DOMAIN+t3+, XAResources={eis/wls/Queue, WEDB_EVEREST_OSB_PRDKS_DOMAIN, XREFDS_OSB_PRDKS_DOMAIN, eis/activemq/Queue, CustomSchemaDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS1_OSB_PRDKS_DOMAIN, eis/tibjmsDirect/Queue, eis/jbossmq/Queue, eis/Apps/Apps, MobileApps_AOS_MDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_DRDS_OSB_PRDKS_DOMAIN, WSATGatewayRM_OSB_MS1_OSB_PRDKS_DOMAIN, eis/webspheremq/Queue, eis/AQ/aqSample, SBLPROD_OSB_PRDKS_DOMAIN, wlsbjmsrpDataSource_OSB_PRDKS_DOMAIN, eis/aqjms/Queue, CMSDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_WseeFileStore_auto_1, FAP_OSB_PRDKS_DOMAIN, eis/sunmq/Queue, eis/pramati/Queue, FMWAPPDS_OSB_PRDKS_DOMAIN, weblogic.jdbc.jta.DataSource, GSDC_OSB_PRDKS_DOMAIN, eis/tibjms/Topic, eis/fioranomq/Topic, WLStore_OSB_PRDKS_DOMAIN_FileStore_MS1, PresidioOracleAppsDS_OSB_PRDKS_DOMAIN, GSDCDS_OSB_PRDKS_DOMAIN, eis/aqjms/Topic, CustOutDS_OSB_PRDKS_DOMAIN, OFMW/Logging/BAM, MobileAppsDS_OSB_PRDKS_DOMAIN, FIDDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN__WLS_OSB_MS1, HRMSDS_OSB_PRDKS_DOMAIN, WEDB_OSB_PRDKS_DOMAIN, OracleAppsDS_OSB_PRDKS_DOMAIN, eis/wls/Topic, eis/tibjms/Queue, eis/tibjmsDirect/Topic, IntrastatDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_COSDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS2_OSB_PRDKS_DOMAIN, EVEREST_WEDB_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1, Everest_OSB_PRDKS_DOMAIN},NonXAResources={})],CoordinatorURL=SOA_MS2+soaprd-vip-soa-ms2.cos.is.keysight.com:8002+SOA_PRDKS_DOMAIN+t3+): javax.transaction.SystemException: Lost connection to server while commit was in progress, ignoring because initiating server is not coordinating server. Remote Exception received=weblogic.rjvm.PeerGoneException: ; nested exception is:
            java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
            java.io.InvalidClassException: oracle.jdbc.xa.OracleXAException; local class incompatible: stream classdesc serialVersionUID = -2542408691177300269, local class serialVersionUID = -4551795881821760665
            at weblogic.transaction.internal.TransactionImpl.commit(TransactionImpl.java:376)
            at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:237)
            at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:224)
            at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:552)
            at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:423)
            at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:325)
            at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
            at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
            at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
            at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
            at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Hi,
    Have you tried Cancelling the release before adding the version?
    Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
    Please let me know if it worked!
    Vijay

  • Error Stack in Expert Routine, Infos about Object Log

    Hi all,
    currently I try to find some information about using the error stack in combination with an expert routine. So far I know that I have to use the Object Log, which is already in place in my code for monitor messages.
    LOOP AT itab_input INTO wa_input.
    IF sy-subrc <> 0.
            CLEAR msg.
            msg-msgid = 'MY_CLASS'.
            msg-msgty = 'E'.
            msg-msgno = '002'.
            msg-msgv1 = v1.
            msg-msgv2 = v2.
            msg-msgv3 = v3.
            APPEND msg TO t_msg.
            " ??? Write wa_input to error stack???
            CONTINUE.
          ENDIF.
    ENDLOOP.
    Does somebody know how I could append wa_input to the error stack? Or does somebody have a good documentation about Object log?
    Thanks a lot!
    Nita

    Good Morning,
    thanks a lot for your input. I tried to implement this function, but I do not know where I could get the Segment Id from.
    Do you know what i_use_crosstab is used for? I think i_with_message should be set to 'X' if I want to write wa_input-record it to the error stack.
    CALL METHOD log->verify_record
              EXPORTING
                i_use_crosstab  = ''
                i_segid         = lv_segid
                i_record        = wa_input-record
                i_with_message  = 'X'
              RECEIVING
                r_skip          = lv_skip
              EXCEPTIONS
                too_many_errors = 1
                not_in_crosstab = 2
                OTHERS          = 3.
    From semantic point of view the coding should do following:
    - To avoid a second loop in my expert routine it should only check the current src record. If this is wrong, which I already determine in my coding, it should write the record in the error stack. If it is correct, it should check whether there are already records with the same semantic key in the error stack and if yes, add it also to it.
    - I assume that I have to delete this record manually from my src. package than.
    Cheers
    Nita

  • How to delete the error stack in process chain?

    Hi all,
    we just want to do the following:
    - we are loading in FULL daily to our datatarget (data is versionized by 0calday)
    - we want to use the error-stack in order to analyze wrong data
    --> but we now encounter the problem that, if data has once been added to the error stack and has not been handled yet, all data from the next daily load will be sorted out as records with this key do already exist in the error-stack. But that's exactly what we want to avoid.
    with other words: how can we delete the records in the error stack by a report by e.g. using this in a process chain?
    Thanks in advance,
    Best regards,
    bivision
    Edited by: bivision2009 on Jul 6, 2010 12:25 PM

    Dbl click that DTP.... From menu... Extras -> Setting for Error Stack
    Here U can see error stack table name /BIC/B0001234000.
    Using SE38, create simple program "Delete from /BIC/B0001234000"
    In the process chain, add process type "ABAP Program" to add above deletion statement.

  • Error while saving changes in RSPC Error Stack.

    Hi gurus,
        I am able to make changes in the error stack in the transaction RSPC, However, when trying to save those changes, I get an error stating that the request "DTPR_* " doesn't exist. and the message is RSAODS005.
    I tried searching in SDN as well in SAP notes, but in vain. Does anybody have any idea how to solve this error.
    Regards,
    Sree.

    Hi Sree,
    delete Error DTP in process Chain, do modifications for Error DTP in RSA1 and add that again in process Chain and activate Process Chain.
    Regards
    Daya Sagar

  • How to populate the Error stack during error records in field level routine

    hi,
    I am capturing the error records in Field level routine in transformation. now i want these records to reflect in error stack.
    i am using 'Append monitor-rec to MONITOR' at the moment but i cant see any records in error stack.
    but when i am using the same statement in start routine i am getting records in error stack.
    can anyone please help as to how can i populate error stack through field level routine?

    Hi,
    Try to do it in the end routine instead of the field routine.
    It should work.
    Regards,
    Joe

  • Printing java layer error stack in a custom module!--Experts, please reply!

    Hi to all OAF experts,
    We are in a process of making a fully customized module, which is integrated with OM and other modules, and takes the place of Quoting module. There is beasically a custom module which takes the place Quoting module in Apps in Order to cash cycle. Now in the final page of this module where we submit the quote, we need to through the entire Java layer error stack, similar to what is done in stanadard quoting module. There they use AOLMessageManager class for this purpose. But since quoting module is in JTT/JTF framework and our custom module is in OAF , we were looking for alternatives.
    I was going through oaf doc and i found a class called OAExceptionUtils, which contains a method called processAOLJErrorStack(ErrorStack)
    As per the documentation it says --"Returns an OAException representing the error stack populated by the Oracle Applications user session context AppsContext. ", that is exactly what we need. But , when i use this method, i get error stack as null! Any idea y this is happening? Any alternative how to get this done!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Mani,
    What is the source (technology source) of the error?
    This is OAF.In a way we have developed entire quoting module from scrath .I believe you would be embedding the Quoting (JTF) pages on to your custom OAF pages. This is similar to how it is implemented in the Standard Sales module.
    We are using same quoting APis to create quote. Our code only goes in JTF tech only while entering in and of configurator.Is your requirement to read the java error stack (JTF Code) from the standard quoting application (embedded in your custom OAF Page) in your Custom page's controller (OAF Code)?
    Yes, we can create quotes from quoting as well as from our custom table,the only difference is that if you create aquote from quoting, it does not updates our custom tables. We want to throw the same java error which quoting throws, while submitting a code in our oaf controller. It throws even Order management error messages!Any idea how we can go about this..!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Working with the Portal Error Stack in PL/SQL

    Hi,
    In brief, this is a question about the persistence of errors on the stack, as they appear to disappear without warning. Any help would be appreciated, if you'd like background, read on.
    I'm writing PL/SQL web applications and as ever one of the required tasks is user validation.
    I have a form on a page which submits directly to a stored procedure. If the validation within the proc is ok, the value(s) get inserted into a DB table and the user gets directed to another Portal page. If there is a user input error then the code reloads the original page (via redirect) with the necessary errors displayed.
    I used to use the Session storage to hold any error messages and then check to see if any errors existed at the point of page redirection, and this worked fine.
    Now that I figure that I should do the job properly and use Portals' error stack, everything falls over!
    It would seem that between moving from one page to another any values held in the stack are lost, yet I know they are definitely getting put there in the first place as I can view them, as long as I don't redirect the Portal page.
    Any ideas??
    Thanks in advance.
    Dan

    1.) Create a hidden item on your page.
    2.) In your Page Rendering PL/SQL Process add logic which assigns 'EDIT' or 'NO_EDIT' to the hidden item.
    3.) Create a "Message" HTML region which conditionally displays based of the value of your hidden item being 'NO_EDIT'.
    4.) Make your edit field conditionally Read Only based on the value of your hidden item being 'NO_EDIT'.
    There may be an easier way but I got this to work
    Mike

  • Empty error stack with RON

    I am trying to check out a folder using RON and am getting an empty error stack.
    I am able to check out folders above it but am unable to check out this folder. I need to upload a new file into the folder and am unable. I get the same empty error stack.
    Thanks

    Andrew,
    From the RON Options menu open the diagnostics and enable them. You should get more detail on the error.
    David

  • Empty Error Stack Message

    When trying to edit work area rules in the RON I am getting the following message:
    "The error stack that you are attempting to display is empty. There is no message to display."
    I have tried the same actions on 5 different machines, on three there was no error message and on two I got the empty error stack message. On each machine I logged into RON using the same account. The rule that I am trying to add is an include_folder rule. The message pops up when I click on the browse for the folder location.
    We are using Oracle 9i Developer suite 9.0.2.
    Thanks
    Pam

    Pam,
    This looks like <Bug:1480975>. This is being investigated at the moment, but appears to be an issue with saving workarea
    details to the local windows registry, thus it works for some users on some machines and not for others.
    David Brown
    SCM Product Management

  • Error stack is empty

    Hello,
    I am trying to create a new version of an existing configuration and when I check out the configuration I am getting the following error:
    "The error stack you are attempting to display is empty. There is no message to display."
    The Cause and Action blocks are empty and there is no error number to reference.
    Any help would be appreciated.
    Thanks
    Cathy

    Cathy,
    I run into the same problem or very similar. Try to search forum for handle biciste.
    I'll reveal the secret anyway. Check if you have enough space in designer's tablespaces. I believe it was VERSION_TABLES of VERSION_INDEXES tablespace in my case.
    Good Luck,
    Radek

  • How to fill the error stack

    Hi,
    we want to check the data quality of the source in the start routine, process the good in the target and the bad in the error stack. Have you any idea which exception I have to raise to put it in the error stack?
    regards, Adrian

    Hi Adrian,
    you have to use skip record exception in a transformation routine. If this exception is rissen, the return code of the routine is unequal to zero and the data row is moved to error stack.
    If you create a transformation routine there is a short example given how to rise skip record exception. Skip value exception wont help, it will only clear the result and returns a blank or zero to the target.
    Please be aware of that the exception neither exits in start nor in end routines. There is no errorhandling on row level possible.
    Additionally create monitor entries to describe the error you are creating with calling the exception. It's recommended to create your own message class to do so.
    Regards Michael
    edit
    Remember switching on error handling in DTP configuration
    Edited by: Michael Seifert on Aug 12, 2008 1:46 PM

  • Use of Error Stacks when loading to a DSO

    Hi all,
    Hope you can help with the below.
    I am loading from a flat file datasource to a DSO.
    I do not want to use the DTP option 'No futher processing without master data' to identify master data errors as this causes the load to fail should an error be encountered.
    I want to use the error stack and need the errors in both the transactional data AND master data to be moved to the error stack so the load to the DSO can continue, and errors be corrected later.
    When I load the file which contains transactional and master data the only error that is sent to the error stack is for the transactional data - a 'data field' set to overwrite in the mapping.
    However all Key Fields are master data and the errors are not being reported as well, they are flowing through to the DSO and only being reported when we try to activate the DSO.
    So how can I get master data (Key Field) errors to also be moved to the error stack ?
    Many thanks.

    I think its not possible.
    Check this doc http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10c6c05c-89c4-2c10-89bd-fc5ce1d124e2?quicklink=index&overridelayout=true
    It defines a way to handle these records.

  • Error Stack Table

    Hello Experts,
    In SE16, when i am trying to see the contents of an error stack table, it is saying that: "this table does not exist yet in the library". But i thought whenever we create a DTP, the error stack and the corresponding table gets generated automatically. Then how is it possible that the error stack table is missing??
    Please explain.
    Thanks a lot.
    Regards,
    LM.

    Hi
    You are not able to display the error stack table in SE16 because the table was created by the system without a unique index, because the tables created directly in the database and have no unique index
    Check the links
    http://help.sap.com/saphelp_nw70/helpdata/EN/c4/3a716d505211d189550000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/c4/3a716d505211d189550000e829fbbd/frameset.htm
    Hope this clarifies that why you were able to see the table in DB02
    Regards
    Shilpa

  • How do I clear or delete the DTP ERROR STACK..?

    HI Experts
    I have a number of records written to a DTP Error Stack for a Master Data load. Subsequent executions of the DTP result in further records being written to the stack if they have the same semantic key (even if they are not in error).
    I know I can execute an Error DTP to clear the stack.
    But is there any way to clear the stack rather than running the Error DTP? I don't want the records in error to be processed through to the InfoObject. I only want the subsequent records to go through, without going into the error stack.
    tony

    Hi Tony,
    you have to remove the request from the target to delete the records from the error stack. If you don't want to reprocess them, try to avoid moving them to the error stack. One way is to skip the records without creating a monitor entry, so the system doesn't recognize the error and it's not shifted to the error stack, the other one is to delete the record from the source or result package throug a routine.
    Single Record deletion iin the error-stack is not possible. For further information read this thread:
    Delete & Automate deletion of Error Stack
    Regards Michael
    Edited by: Michael Seifert on Nov 20, 2008 4:04 PM

Maybe you are looking for