Hierarchical Query for generating a tree for a given node value

Hi,
I have a requirement where i want to populate a tree only populating the structure that contains a given value.
For ex. the complete structure for emp table is
PATH
-> SCOTT
-> SCOTT -> ADAMS
-> FORD
-> FORD -> SMITH
-> ALLEN
-> JAMES
-> TURNER
-> MARTIN
-> WARD
-> MILLER
-> ADAMS
-> JONES
-> JONES -> SCOTT
-> JONES -> SCOTT -> ADAMS
-> JONES -> FORD
-> JONES -> FORD -> SMITH
-> CLARK
-> CLARK -> MILLER
-> BLAKE
-> BLAKE -> ALLEN
-> BLAKE -> JAMES
-> BLAKE -> TURNER
-> BLAKE -> MARTIN
-> BLAKE -> WARD
-> SMITH
-> KING
-> KING -> JONES
-> KING -> JONES -> SCOTT
-> KING -> JONES -> SCOTT -> ADAMS
-> KING -> JONES -> FORD
-> KING -> JONES -> FORD -> SMITH
-> KING -> CLARK
-> KING -> CLARK -> MILLER
-> KING -> BLAKE
-> KING -> BLAKE -> ALLEN
-> KING -> BLAKE -> JAMES
-> KING -> BLAKE -> TURNER
-> KING -> BLAKE -> MARTIN
-> KING -> BLAKE -> WARD
and I would need only those records that has SCOTT, so the expected output would be
-> SCOTT
-> SCOTT -> ADAMS
-> JONES -> SCOTT
-> JONES -> SCOTT -> ADAMS
-> KING -> JONES -> SCOTT
-> KING -> JONES -> SCOTT -> ADAMS
How can this be achieved. Any help will be appreciated.

script for create tabel
CREATE TABLE EMP
  EMPNO     NUMBER(4),
  ENAME     VARCHAR2(10 BYTE),
  JOB       VARCHAR2(9 BYTE),
  MGR       NUMBER(4),
  HIREDATE  DATE,
  SAL       NUMBER(7,2),
  COMM      NUMBER(7,2),
  DEPTNO    NUMBER(2)
)script for insert
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7369, 'SMITH', 'CLERK', 7902, TO_DATE('12/17/1980 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 800, 20);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
   (7499, 'ALLEN', 'SALESMAN', 7698, TO_DATE('02/20/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1600, 300, 30);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
   (7521, 'WARD', 'SALESMAN', 7698, TO_DATE('02/22/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1250, 500, 30);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7566, 'JONES', 'MANAGER', 7839, TO_DATE('04/02/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2975, 20);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
   (7654, 'MARTIN', 'SALESMAN', 7698, TO_DATE('09/28/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1250, 1400, 30);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7698, 'BLAKE', 'MANAGER', 7839, TO_DATE('05/01/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2850, 30);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7782, 'CLARK', 'MANAGER', 7839, TO_DATE('06/09/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 2450, 10);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7788, 'SCOTT', 'ANALYST', 7566, TO_DATE('04/19/1987 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3000, 20);
Insert into EMP
   (EMPNO, ENAME, JOB, HIREDATE, SAL, DEPTNO)
Values
   (7839, 'KING', 'PRESIDENT', TO_DATE('11/17/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 5000, 10);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
   (7844, 'TURNER', 'SALESMAN', 7698, TO_DATE('09/08/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1500, 0, 30);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7876, 'ADAMS', 'CLERK', 7788, TO_DATE('05/23/1987 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1100, 20);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7900, 'JAMES', 'CLERK', 7698, TO_DATE('12/03/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 950, 30);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7902, 'FORD', 'ANALYST', 7566, TO_DATE('12/03/1981 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 3000, 20);
Insert into EMP
   (EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, DEPTNO)
Values
   (7934, 'MILLER', 'CLERK', 7782, TO_DATE('01/23/1982 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), 1300, 10);
COMMIT;

Similar Messages

  • Hierarchical Query for Chart of Account

    Hellow all
    I have one Table which is for chart of account
    The Column in this Table is
    Acc_id and Acc_name
    I Insert data in This chart of account
    Insert into COA
    values
    *(01,'ASSETS');*
    values
    *(01001,'Current Assets');*
    values
    *(01002,'Fixed Assets');*
    values
    *(010010001,'Banks');*
    values
    *(010010002,'Cash');*
    values
    *(01001000100001,'Metrol Politan Bank');*
    values
    *(01001000100002,'Royal Bank');*
    values
    *(01001000100003,'Stander Charted Bank');*
    values
    *(01001000200001,'Cash in Hand');*
    values
    *(01001000200002,'Patty Cash');*
    That's all my record now i need to create a Hierarchical tree
    Which look like this
    *01- Assets*
    ------010001 Current Assets+
    ----------010010001 Bank+
    --------------01001000100001 Metrol Politan Bank+
    --------------01001000100002 Royal Bank+
    --------------01001000100003 Stander Charted Bank+
    ----------010010002 Cash+
    --------------01001000200001 Cash in Hand+
    --------------01001000200002 Patty Cash+
    ------010002 Fixed Assets+
    ----------010020001 Machinery Assets+
    --------------01002000100001 Needle Machine+
    --------------01002000100002 GGT Machine+
    ----------010020002 Computer Assets+
    --------------01002000200001 Computer Server+
    --------------01002000200002 Computer other+
    Hope you guys understand i need the Hierarchical query for making this kind of Tree
    Regards
    Shahzaib

    In above posts you have solution to your problem but maybe you can think about changeing the design slightly.
    I would suggest using parent_id to find parent account, instead of operations on strings which can be slower in larger tables.
    SQL> create table t14(id int, account_code varchar2(16), account_name varchar2(32), parent_id int)
      2  /
    Table created.
    SQL> insert into t14 values(1,'01','Assets',null);
    1 row created.
    SQL> insert into t14 values(2,'01001','Current Assets',1);
    1 row created.
    SQL> insert into t14 values(3,'01002','Current Assets',1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t14;
            ID ACCOUNT_CODE     ACCOUNT_NAME                      PARENT_ID
             1 01               Assets
             2 01001            Current Assets                            1
             3 01002            Current Assets                            1
    SQL> select lpad(' ',2*(level-1)) || account_code as account_code, account_name
      2  from t14
      3  start with parent_id is null connect by prior id = parent_id
      4  /
    ACCOUNT_CODE                   ACCOUNT_NAME
    01                             Assets
      01001                        Current Assets
      01002                        Current AssetsWith kind regards
    Krystian Zieja

  • How to find the name of query for a given report

    Hi All,
    I am having the name of a report and i need to find out the name of query for that report . Plz tell me how to find out the name of the query for a given report.
    Thanks.
    Regards,
    Pooja Joshi.

    Use this FM
    RSAQ_DECODE_REPORT_NAME
    This FM takes program name as I/P and gives Query Name as O/P.
    This FM uses the structure AQADEF to fetch the data.
    Hope this helps.
    Regards
    Vinayak

  • AIP-50547:  Trading partner agreement not found for the given input values

    I am trying to setup outbound 810. I have it working in one environment I took export and imported in another environment. But it gave me following error. I purged repository and configured everything again and it still gives me same error:
    2007.08.25 at 19:41:20:997: Thread-21: B2B - (DEBUG) RepoDataAccessor:getAgreementIdByBaTPName() SELECT ag.agreementid FROM TIP_BusinessAction_ra ba1, TIP_Party_ra tp1, TIP_BusinessAction_ra ba2, TIP_Party_ra tp2, TIP_SupportedBusinessAction_ra sba1, TIP_SupportedBusinessAction_ra sba2, TIP_Participant_ra tpp1, TIP_Participant_ra tpp2, TIP_Agreement_ra ag WHERE tp1.name = ? AND ba1.name = ? AND sba1.isinitiator = ? AND tpp1.agreement = ag.ID AND tpp1.supportedbusinessaction = sba1.ID AND sba1.tradingpartner = tp1.ID AND sba1.businessaction = ba1.ID AND tp2.name = ? AND ba2.name = ? AND sba2.isinitiator = ? AND tpp2.agreement = ag.ID AND tpp2.supportedbusinessaction = sba2.ID AND sba2.tradingpartner = tp2.ID AND sba2.businessaction = ba2.ID AND tpp1.agreement = tpp2.agreement AND ((ag.effectivefromdate <= SYSDATE) OR (ag.effectivefromdate IS NULL)) AND ((ag.effectivetodate +1 >= SYSDATE) OR (ag.effectivetodate IS NULL))
    2007.08.25 at 19:41:20:997: Thread-21: B2B - (DEBUG) RepoDataAccessor:getAgreementIdByBaTPName() bind vars: RSC,SEND_INVOICE,Y,PETSMART ,SEND_INVOICE,N
    2007.08.25 at 19:41:22:854: Thread-21: B2B - (ERROR) Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "RSC", To party[NAME] "PETSMART ", Business action name "SEND_INVOICE"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementIdByBaTPName(RepoDataAccessor.java:1977)
    at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:166)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:389)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:192)
    at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:731)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:531)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:344)
    at java.lang.Thread.run(Thread.java:534)
    I took SQL from the log and used the parameter in the log and executed query at sql prompt and it finds agreement id see below.
    SQL> SELECT ag.agreementid FROM TIP_BusinessAction_ra ba1, TIP_Party_ra tp1, TIP_BusinessAction_ra ba2, TIP_Party_ra tp2, TIP_SupportedBusinessAction_ra sba1, TIP_SupportedBusinessAction_ra sba2, TIP_Participant_ra tpp1, TIP_Participant_ra tpp2, TIP_Agreement_ra ag WHERE tp1.name = 'RSC' AND ba1.name = 'SEND_INVOICE' AND sba1.isinitiator = 'Y' AND tpp1.agreement = ag.ID AND tpp1.supportedbusinessaction = sba1.ID AND sba1.tradingpartner = tp1.ID AND sba1.businessaction = ba1.ID AND tp2.name = 'PETSMART' AND ba2.name = 'SEND_INVOICE' AND sba2.isinitiator = 'N' AND tpp2.agreement = ag.ID AND tpp2.supportedbusinessaction = sba2.ID AND sba2.tradingpartner = tp2.ID AND sba2.businessaction = ba2.ID AND tpp1.agreement = tpp2.agreement AND ((ag.effectivefromdate <= SYSDATE) OR (ag.effectivefromdate IS NULL)) AND ((ag.effectivetodate +1 >= SYSDATE) OR (ag.effectivetodate IS NULL));
    AGREEMENTID
    100

    Hello Mr Desai,
    Few question and pointers.
    1. Are these two environments pointing to the same repository. Please ensure the system date is appropriate.
    2. Please point your second environment to the Repository of the first environment and check. This will give us some data point.
    3. Make sure the agreement is deployed in your new environment and active. I assume you are importing the agreement on a clean repository.
    4. Please send us the export and payload file for analysis
    Rgds,
    Ramesh
    4.

  • Trading partner agreement not found for the given input values

    Hi,
    I am working on EDI X12 over generic exchange outbound.
    In enqueue script:
    replyToMsgID =
    from =TEE
    to =RF
    actionName =BASFEDI841
    doctypeName =841
    doctypeRevision =4010
    msgType =1
    payload =RF_841_4010_1_12.xml
    attachment=
    I am getting the Trading partner agreement not found.
    B2B log:
    ***** REQUEST MESSAGE *****
    Exchange Protocol: Generic Version 1.0
    Transport Protocol: FTP
    Unique Message ID: TEE_2009Mar01_15_37_29_170.dat
    Trading Partner: RF
    Message Signed: No
    Payload encrypted: No
    Information incomplete
    2009.03.01 at 15:37:29:477: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processOutgoingMessage Exit
    2009.03.01 at 15:37:29:477: Thread-20: B2B - (DEBUG) DBContext commit: Enter
    2009.03.01 at 15:37:29:477: Thread-20: B2B - (DEBUG) DBContext commit: Leave
    2009.03.01 at 15:37:29:478: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Exit
    2009.03.01 at 15:37:32:910: Thread-21: B2B - (DEBUG)
    Protocol = FTP
    Version = 1.0
    Transport Header
    filename:TEE_2009Mar01_15_37_29_170.dat
    filesize:7787
    file_ext:dat
    fullpath://users/dab2b01/RF841/TEE_2009Mar01_15_37_29_170.dat
    timestamp:1970-01-01T00:00:00.000-00:00
    2009.03.01 at 15:37:32:973: Thread-21: B2B - (DEBUG) DBContext beginTransaction: Enter
    2009.03.01 at 15:37:32:974: Thread-21: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2009.03.01 at 15:37:32:974: Thread-21: B2B - (DEBUG) DBContext beginTransaction: Leave
    2009.03.01 at 15:37:32:974: Thread-21: B2B - (DEBUG) InterfaceListener:onMessage - Invoke inbound callout - null - null
    2009.03.01 at 15:37:32:975: Thread-21: B2B - (DEBUG) InterfaceListenersyncAckEBMSchecking header names
    2009.03.01 at 15:37:32:975: Thread-21: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertNativeEvtTblRow(2 params) Enter
    2009.03.01 at 15:37:32:998: Thread-21: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertNativeEvtTblRow(2 params) Exit
    2009.03.01 at 15:37:32:999: Thread-21: B2B - (DEBUG) oracle.tip.adapter.b2b.transport.InterfaceListener:onMessage sendEventtrue
    2009.03.01 at 15:37:33:005: Thread-21: B2B - (DEBUG) DBContext commit: Enter
    2009.03.01 at 15:37:33:011: Thread-21: B2B - (DEBUG) DBContext commit: Transaction.commit()
    2009.03.01 at 15:37:33:011: Thread-21: B2B - (DEBUG) DBContext commit: Leave
    2009.03.01 at 15:37:33:012: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Enter
    2009.03.01 at 15:37:33:013: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Enter
    2009.03.01 at 15:37:33:013: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Transaction.begin()
    2009.03.01 at 15:37:33:013: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Leave
    2009.03.01 at 15:37:33:014: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processEvents Enter
    2009.03.01 at 15:37:33:014: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processEvents begin transaction
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Enter
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) DBContext beginTransaction: Leave
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleMessageEvent Enter
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:incomingContinueProcess Enter
    2009.03.01 at 15:37:33:015: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:getWireMessage Enter
    2009.03.01 at 15:37:33:019: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:getWireMessage Exit
    2009.03.01 at 15:37:33:020: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:formTransportMessage Enter
    2009.03.01 at 15:37:33:027: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:formTransportMessage Exit
    2009.03.01 at 15:37:33:028: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Enter
    2009.03.01 at 15:37:33:042: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Identify Business Protocol
    2009.03.01 at 15:37:33:042: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Do Unpack using the BP specific package class
    2009.03.01 at 15:37:33:043: Thread-20: B2B - (DEBUG) MimePackaging:unpack:Enter
    2009.03.01 at 15:37:33:043: Thread-20: B2B - (DEBUG) MimePackaging:doUnpack:Enter
    2009.03.01 at 15:37:33:044: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:Enter
    2009.03.01 at 15:37:33:044: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:encoding = UTF-8
    2009.03.01 at 15:37:33:045: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:oracle.tip.adapter.b2b.packaging.Component@8a2023
    2009.03.01 at 15:37:33:045: Thread-20: B2B - (DEBUG) MimePackaging:unpackNonMimeMessage:Exit
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) MimePackaging:unpack:Exit
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Decode the Incoming Message into B2B Message
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage Enter
    2009.03.01 at 15:37:33:046: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage Number of Components = 1
    2009.03.01 at 15:37:33:047: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage Transport Protocol = {FTP}
    2009.03.01 at 15:37:33:047: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage filename = TEE_2009Mar01_15_37_29_170.dat
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage FILE_FORMAT = FROM_PARTY - TEE
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage File TP Host name = TEE
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) calling setInitiatingPartyId() changing from null to TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:decodeIncomingMessage fromParty = TEE
    2009.03.01 at 15:37:33:048: Thread-20: B2B - (DEBUG) calling setFromPartyId() changing from null to TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:049: Thread-20: B2B - (DEBUG) calling setToPartyId() changing from null to TPName: null Type: null Value: null
    2009.03.01 at 15:37:33:049: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage security info NULL
    2009.03.01 at 15:37:33:056: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.exchange.generic.GenericExchangePlugin:GenericExchangePlugin:decodeIncomingMessage Exit
    2009.03.01 at 15:37:33:056: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage Enter
    2009.03.01 at 15:37:33:056: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage toTP null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage hubUrl null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processHubMessage Exit
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage ProtocolCollabId = null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage CollaborationName null
    2009.03.01 at 15:37:33:057: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:checkDuplicate Enter
    2009.03.01 at 15:37:33:058: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:checkDuplicate check non-RosettaNet Message
    2009.03.01 at 15:37:33:060: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:checkDuplicate Exit
    2009.03.01 at 15:37:33:060: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage Protocol Collaboration Id : null
    2009.03.01 at 15:37:33:060: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:identifyIncomingDocument Enter
    2009.03.01 at 15:37:33:063: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:preProcessor enter
    2009.03.01 at 15:37:33:064: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:preProcessor edi = X12
    2009.03.01 at 15:37:33:064: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:preProcessor segment delimiter is 27
    2009.03.01 at 15:37:33:073: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:identifyIncomingDocument preprocess result =
    ISA~00~Authorizat~00~Security I~01~Interchange Sen~01~Interchange Rec~090301~1935~U~00401~000001101~0~I~+'GS~SP~Application Sen~Application Rec~20090301~1537~1101~T~004010'ST~841~5709'SPI~00~01~Reference Identification~Entity Title~Entity Purpose~A~00~01~00~10~Source Subquali~773~1~AA~0001'RDT~A~Revision Value~001~~~01'RDT~A~Revision Value~001~~~01'RDT~A~Revision Value~001~~~01'RDT~A~Revision Value~001~~~01'NTE~AAA~Description'X1~C~Export Licen~C~~1~1~COU~SCHEDULE B~D~252876~59154.0269~A~01~8~U~Identification Code'X2~Import License Number~~20090301~~20090301~20090301'X7~Free-Form Message~Free-Form Message'AMT~1~1~C'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'DTM~001~~~01~CC~Date Time Period'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'N1~01~Name~1~Identification Code~01~01'N2~Name~Name'N3~Address Information~Address Information'N4~City Name~ST~POSTAL CODE~COU~A~Location Identifier'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'HL~1~~1~0'SPI~00~01~Reference Identification~Entity Title~Entity Purpose~A~00~01~00~10~Source Subquali~4~1~AA~0001'RDT~A~Revision Value~001~~~01'PRR~Assigned Identificat~10~Source Subquali~BRK~Description~10~Source Subquali~A~10~Source Subquali~1'PRT~EXC~10~Source Subquali~N'PRS~1~Description'LIN~Assigned Identificat~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'MSG~Free-Form Message Text~AA~3'N1~01~Name~1~Identification Code~01~01'N2~Name~Name'N3~Address Information~Address Information'N4~City Name~ST~POSTAL CODE~COU~A~Location Identifier'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'N9~01~Reference Identification~Free-form Description~~~01~01+Reference Identification+01+Reference Identification+01+Reference Identification'PID~F~01~10~Product Desc~Description~1S~Source Subquali~N~LAN'PKD~AMM01~Source Subquali~10~Packagi~L'QTY~01~1~01+3+60.42665+01+5+3+01+1+51887.5+01+6+7.79+01+2+3953.97808'MEA~9L~1~6~01+5+56318.8+01+1+30.72+01+1+1+01+7+8887.19467+01+6+661.97698~6~7~01~~1S~BM'MEA~9L~1~5~01+3+696.4+01+4+4+01+3+1221.27922+01+1+994232.001+01+3+872.859~3~9~01~~1S~BM'MEA~9L~1~3~01+8+8+01+1+7.75+01+2+6.395+01+1+2.1+01+6+7.59~6~4~01~~1S~BM'MEA~9L~1~6~01+6+7393.71+01+3+54258.8579+01+8+28012.940+01+5+8+01+7+8.8~9~9~01~~1S~BM'MEA~9L~1~8~01+5+8661152.98+01+7+6356848.72+01+7+1010847.39+01+5+4939.33859+01+3+7.84050~8~4~01~~1S~BM'UIT~01+7+8.3+01+2+8.702047+01+8+323.16049+01+8+40699.4+01+5+30.909~1~AA'LOC~01~Reference Identification~Description~Reference Identification~Catego~01~Reference Identification~Description~Reference Identification~6~01+7+257.30155+01+1+963640.085+01+1+9.42+01+4+1+01+3+67.61~8~01+6+3.6+01+2+20.5+01+4+6.99+01+7+5+01+5+213.507492~5~01+2+3077486.5+01+7+78023.621+01+3+6.74+01+7+138554.0+01+3+4111.4~2~01+9+2.6+01+8+91290.0173+01+9+1.9+01+2+6.168+01+1+26.9~2~01+2+1+01+6+67348.246+01+4+8.50+01+7+37.63+01+5+130691508.0~1~01+5+8.39+01+1+2.0+01+6+7.3+01+5+173.68084+01+5+550.4928~01~Reference Identification~Description'PWK~01~1~26~01~1~Identification Code~Description~1+1+1+1+1~AR'PKG~F~01~10~Packagi~Description~01'MEA~9L~1~6~01+9+99.2217+01+5+6.5043+01+8+30.76+01+9+3+01+1+7~3~2~01~~1S~BM'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'DTM~001~~~01~CC~Date Time Period'PER~1A~Name~AA~Communication Number~AA~Communication Number~AA~Communication Number~Contact Inquiry Refe'LX~6'LIN~Assigned Identificat~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID~A1~Product/Service ID'TMD~01~10~Product Desc~01~01~Description~~Reference Identification~Source Subquali'MEA~9L~1~4~01+7+71.1+01+2+277.0+01+2+9.19003+01+1+901.516+01+3+7803582.87~8~7~01~~1S~BM'PSD~01~01~9661549~01+2+140318.0112+01+3+30.74740+01+9+67.17+01+7+5.1130+01+3+56743.0~01~01~01~Description'SPS~193487350~66823328~472426~5.6~01+3+519.45554+01+6+145146.03+01+2+63994262.5+01+3+1.3166+01+8+4.7~440443'DTM~001~~~01~CC~Date Time Period'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'EFI~00~Free-Form Message Text~9A~Version Identifier~Program Identifier~Version Identifier~Interchange Format~Version Identifier~Compression Technique~A0~File Name~Bloc~7~84410~Version Identifier~ASB'BIN~3~hii'CID~1~01~10~Product Desc~Description~Source Subquali~N'UIT~01+6+940.5+01+3+4.7+01+9+3.1+01+6+58.1+01+2+115728.9010~3~AA'TMD~01~10~Product Desc~01~01~Description~~Reference Identification~Source Subquali'PSD~01~01~595~01+1+5.139+01+3+1+01+5+4+01+5+19.1+01+5+3441.57231~01~01~01~Description'CSS~GC~01+1+33832819.6+01+1+1.5332+01+5+1.1+01+1+12173.83+01+5+813.282453~874~27~1~2~38'SPS~9~1154210~75~9.5~01+2+473.9+01+5+28.394421+01+6+755.69932+01+3+8407.2+01+3+1~54261910'MSG~Free-Form Message Text~AA~66511'MEA~9L~1~3~01+6+4.979+01+8+60.167241+01+8+48.03003+01+1+1.6086+01+5+2417168.92~3~1~01~~1S~BM'DTM~001~~~01~CC~Date Time Period'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'STA~01~9~01+6+66133.5+01+1+1+01+6+45813032.4+01+3+3329.6+01+7+63878.29~1~9L~3~5~01'DTM~001~~~01~CC~Date Time Period'REF~01~Reference Identification~Description~01+Reference Identification+01+Reference Identification+01+Reference Identification'CRF~01+6+7050.3+01+3+892.07605+01+6+847.7520+01+7+4+01+4+1.7~59.926'LS~CID'CID~1~01~10~Product Desc~Description~Source Subquali~N'MEA~9L~1~1~01+2+316324.35+01+8+852.8+01+7+4.2+01+8+6.3+01+7+9.3~2~4~01~~1S~BM'STA~01~6~01+2+751.60984+01+2+5+01+7+60.63+01+3+5366069.5+01+7+1.891~1~9L~1~8~01'LE~CID'EFI~00~Free-Form Message Text~9A~Version Identifier~Program Identifier~Version Identifier~Interchange Format~Version Identifier~Compression Technique~A0~File Name~Bloc~2~64~Version Identifier~ASB'BIN~3~hii'SE~91~5709'GE~1~1101'IEA~1~000001101'

    .... b2b.log:
    2009.03.01 at 15:37:33:077: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Enter
    2009.03.01 at 15:37:33:078: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl validateEnvelope = false
    2009.03.01 at 15:37:33:078: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Leave
    2009.03.01 at 15:37:33:078: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:cloneSelector Enter
    2009.03.01 at 15:37:33:079: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:cloneSelector Return = oracle.tip.adapter.b2b.document.edi.ISelectorImpl@43da1b
    2009.03.01 at 15:37:33:085: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Param Name = SeverityConfig
    2009.03.01 at 15:37:33:085: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:getValue Value = null
    2009.03.01 at 15:37:33:107: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeSenderID Val = Interchange Sen
    2009.03.01 at 15:37:33:108: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeSenderQual Val = 01
    2009.03.01 at 15:37:33:108: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode standard = X12
    2009.03.01 at 15:37:33:108: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeReceiverID Val = Interchange Rec
    2009.03.01 at 15:37:33:109: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeControlVersion Val = 00401
    2009.03.01 at 15:37:33:109: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode ISA Key = InterchangeReceiverQual Val = 01
    2009.03.01 at 15:37:33:109: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode Group Key = GroupSenderID Val = Application Sen
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode X12 Doc Revision : 004010
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode X12 Doc Revision : 4010
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode Group Key = GroupReceiverID Val = Application Rec
    2009.03.01 at 15:37:33:110: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode Transaction Count = 1
    2009.03.01 at 15:37:33:111: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processNode DocType = 841
    2009.03.01 at 15:37:33:111: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeReceiverQual = 01
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeSenderID = Interchange Sen
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeReceiverID = Interchange Rec
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupReceiverID = Application Rec
    2009.03.01 at 15:37:33:112: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeControlVersion = 00401
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupSenderID = Application Sen
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeSenderQual = 01
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:identifyIncomingDocument exit
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Correlation:incomingCorrelate Enter
    2009.03.01 at 15:37:33:113: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Correlation:incomingCorrelate msginfo reftomsgid is null, nothing to correlate
    2009.03.01 at 15:37:33:114: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Correlation:incomingCorrelate Exit
    2009.03.01 at 15:37:33:114: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage number of b2b messages 1
    2009.03.01 at 15:37:33:114: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:processIncomingMessage msgtype = 1
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processIncomingTPA() Begin TPA Processing..
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() PARTIES (before calling processParty) :
    initial : null
    from : TPName: TEE Type: null Value: null
    to : TPName: null Type: null Value: null
    final : null
    initiating : TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() direction is incoming
    2009.03.01 at 15:37:33:115: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() calling processparty with : TPName: null Type: null Value: null
    2009.03.01 at 15:37:33:116: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:processParty() Begin..
    2009.03.01 at 15:37:33:119: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() after calling processparty : TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:119: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() PARTIES (after calling processParty):
    initial : null
    from : TPName: TEE Type: null Value: null
    to : TPName: TEE Type: null Value: null
    final : null
    initiating : TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:120: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() docTypeName: 841 docTypeRevision: 4010
    2009.03.01 at 15:37:33:127: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() actionName: BARFEDI841 actionRevision: 1.0
    2009.03.01 at 15:37:33:127: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor:getCollaborationDetails() Begin.. Activity Name : BARFEDI841 Activity Version: 1.0
    2009.03.01 at 15:37:33:131: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() eventName:<BARFEDI841>
    2009.03.01 at 15:37:33:131: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() messageType:1
    2009.03.01 at 15:37:33:136: Thread-20: B2B - (DEBUG) calling setMode() changing from -1 to 2
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) calling setInitiatingPartyId() changing from TPName: TEE Type: null Value: null to TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() cpaID=null
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() TPA Name : null
    2009.03.01 at 15:37:33:137: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAProcessor:processTPA() TPA Name : null
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAIdentifier:identifyTPA() Begin..
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.TPAIdentifier:identifyTPA()
    From Party -> null-null-TEE-null To Party -> null-null-TEE-null Business Action name -> BARFEDI841
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() Begin..
    2009.03.01 at 15:37:33:138: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() fromParty: TPName: TEE Type: null Value: null toParty: TPName: TEE Type: null Value: null initiatingParty: TPName: TEE Type: null Value: null
    2009.03.01 at 15:37:33:139: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() SELECT ag.name FROM TIP_BusinessAction_ra ba1, TIP_Party_ra tp1, TIP_BusinessAction_ra ba2, TIP_Party_ra tp2, TIP_SupportedBusinessAction_ra sba1, TIP_SupportedBusinessAction_ra sba2, TIP_Participant_ra tpp1, TIP_Participant_ra tpp2, TIP_Agreement_ra ag WHERE tp1.name = ? AND ba1.name = ? AND ba1.revision = ? AND sba1.isinitiator = ? AND tpp1.agreement = ag.ID AND tpp1.supportedbusinessaction = sba1.ID AND sba1.tradingpartner = tp1.ID AND sba1.businessaction = ba1.ID AND tp2.name = ? AND ba2.name = ? AND ba2.revision = ? AND sba2.isinitiator = ? AND tpp2.agreement = ag.ID AND tpp2.supportedbusinessaction = sba2.ID AND sba2.tradingpartner = tp2.ID AND sba2.businessaction = ba2.ID AND tpp1.agreement = tpp2.agreement AND ((ag.effectivefromdate <= SYSDATE) OR (ag.effectivefromdate IS NULL)) AND ((ag.effectivetodate +1 >= SYSDATE) OR (ag.effectivetodate IS NULL))
    2009.03.01 at 15:37:33:139: Thread-20: B2B - (DEBUG) RepoDataAccessor:getAgreementNameByBaTPName() bind vars: TEE,BARFEDI841,1.0,Y,TEE,BARFEDI841,1.0,N
    2009.03.01 at 15:37:33:145: Thread-20: B2B - (ERROR) Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementNameByBaTPName(RepoDataAccessor.java:2345)
    at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:186)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:587)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processIncomingTPA(TPAProcessor.java:238)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1832)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    2009.03.01 at 15:37:33:145: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: processIncomingMessage B2BDE
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleExceptionBeforeIncomingTPA Enter
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException Enter
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException Error message is Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    2009.03.01 at 15:37:33:146: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: isFARequired Enter
    2009.03.01 at 15:37:33:147: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: isFARequired {filename=TEE_2009Mar01_15_37_29_170.dat, filesize=7787, file_ext=dat, fullpath=//users/dab2b01/RF841/TEE_2009Mar01_15_37_29_170.dat, timestamp=1970-01-01T00:00:00.000-00:00}
    2009.03.01 at 15:37:33:147: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: isFARequired returning false
    2009.03.01 at 15:37:33:147: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException FA not required
    2009.03.01 at 15:37:33:148: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException Updating Error Message: Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    2009.03.01 at 15:37:33:148: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Enter
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Wire message found
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Creating new b2berror object
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState enum0 not null
    2009.03.01 at 15:37:33:149: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating wire message error information
    2009.03.01 at 15:37:33:155: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating wire message protocol message id
    2009.03.01 at 15:37:33:171: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating wire message payload storage
    2009.03.01 at 15:37:33:182: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Creating new business message
    2009.03.01 at 15:37:33:182: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow Enter
    2009.03.01 at 15:37:33:189: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow toparty name TEE
    2009.03.01 at 15:37:33:189: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow toparty type and value nullnull
    2009.03.01 at 15:37:33:196: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:insertMsgTblRow BusinessAction for the given name BARFEDI841 BusinessAction_0E95
    2009.03.01 at 15:37:33:207: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Updating business message error information
    2009.03.01 at 15:37:33:217: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateWireBusinessToErrorState Exit
    2009.03.01 at 15:37:33:218: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException Updating Native Event Tbl Row
    2009.03.01 at 15:37:33:218: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:DbAccess:updateNativeEvtTblRow Enter
    2009.03.01 at 15:37:33:220: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:updateNativeEvtTblRow msgInfo.id = TEE_2009Mar01_15_37_29_170.dat@0A4DBD5D11FC2AEDA770000018E26600
    2009.03.01 at 15:37:33:220: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.msgproc.DbAccess:
    ** DbAccess:updateNativeEvtTblRow:tip_wireMsg protocolCollabID = null
    2009.03.01 at 15:37:33:226: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException notifying App
    2009.03.01 at 15:37:33:226: Thread-20: B2B - (DEBUG) Engine:notifyApp Enter
    2009.03.01 at 15:37:33:232: Thread-20: B2B - (DEBUG) notifyApp:notifyApp Enqueue the ip exception message:
    <Exception xmlns="http://integration.oracle.com/B2B/Exception" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <correlationId>null</correlationId>
    <b2bMessageId>0A4DBD5D11FC2AEDA680000018E265F0</b2bMessageId>
    <errorCode>AIP-50547</errorCode>
    <errorText>Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate</errorText>
    <errorDescription>
    <![CDATA[Machine Info: (dgia21a.TEEis.com)
    Description: Unable to identify the trading partner agreement from the given input values. Also verify agreement effectiveToDate
    StackTrace:
    Error -:  AIP-50547:  Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementNameByBaTPName(RepoDataAccessor.java:2345)
    at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:186)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:587)
    at oracle.tip.adapter.b2b.tpa.TPAProcessor.processIncomingTPA(TPAProcessor.java:238)
    at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1832)
    at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2573)
    at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:2443)
    at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:2398)
    at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:527)
    at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:374)
    at java.lang.Thread.run(Thread.java:534)
    ]]>
    </errorDescription>
    <errorSeverity>2</errorSeverity>
    </Exception>
    2009.03.01 at 15:37:33:244: Thread-20: B2B - (DEBUG) Engine:notifyApp Exit
    2009.03.01 at 15:37:33:244: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleInboundException Updated the Error Message Successfully: Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "TEE", To party[NAME] "TEE", Business action name "BARFEDI841"; also verify agreement effectiveToDate
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:XXX: handleInboundException Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleExceptionBeforeIncomingTPA Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:incomingContinueProcess Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.engine.Engine:handleMessageEvent Exit
    2009.03.01 at 15:37:33:245: Thread-20: B2B - (INFORMATION) oracle.tip.adapter.b2b.engine.Engine:processEvents Exit
    2009.03.01 at 15:37:33:246: Thread-20: B2B - (DEBUG) DBContext commit: Enter
    2009.03.01 at 15:37:33:263: Thread-20: B2B - (DEBUG) DBContext commit: Transaction.commit()
    2009.03.01 at 15:37:33:263: Thread-20: B2B - (DEBUG) DBContext commit: Leave
    2009.03.01 at 15:37:33:264: Thread-20: B2B - (DEBUG) oracle.tip.adapter.b2b.data.MsgListener:onMessage Exit

  • How to model query for -- existing and unchanged values

    Hello BW Experts,
    I have material and material group as navigational time-dependent attributes. I have a requirement to show the existing and unchanged values for the material and material group in the time frame 2003 to 2006 . how to create a query for this.
    Suggestions appreciated.
    Thanks,
    BWer

    HI ,
    I think u need to add two more date fields as the attributes  to the master data and then use them and give restriction in the query with the Keydate to see data which has unchanged from One range to another . As key Date applies to only the system defined to and from dates present in the Master Data .
    In query give Keydate as 31.dec.2006 and then give restriction for user defined dates sa follows :
    User From : 01.01.1000 - 31.12.2002.
    User To : 01.01.2007 -- 31.12.9999 .
    Regards,
    Vijay.
    Message was edited by: vijay Kumar
    Message was edited by: vijay Kumar
    Message was edited by: vijay Kumar

  • Querying for existing set of values

    HI,
    I have the following scenario. I have one table which has the measure_id,measure_value and date.
    For every date, I will be populating the measure_value for every measure_id. 
    If the source, doesnt have the value for a day,for a measure_id, I should update it with 0.
    If the source gets fresh data for a date, then the related value should get updated(sum of values for that day) or inserted.(incremental)
    DATE MeasureID MeasureValue
    02/01  1 10
    02/01  2 20
    02/01  3 30
    02/02  1 10
    02/02  2 0(no data in source)
    02/02  3 30
    Can you please give me the best query for this scenario. Any help is appreciated.
    Porus

    you can try using Merge command.
    I have used some sample data in Source and Destination tables.Also i used a measures table with three measure.
    Declare @Source Table(Dt Date, MeasureID int, MeasureValue int);
    Declare @Destination Table(Dt Date, MeasureID int, MeasureValue int);
    Declare @Measure Table (MeasureID int);
    Insert into @Measure select 1 union all select 2 union all select 3
    Insert into @Source
    select '20140201',1,10
    union all
    select '20140201',2,10
    union all
    select '20140201',3,10
    union all
    select '20140202',1,10
    union all
    select '20140202',3,30
    Insert into @Destination
    select '20140201',1,0
    select * from @Source
    select * from @Destination
    ;With AllMeasures
    as
    select * from
    (SELECT distinct Dt from @Source) A
    cross join @Measure
    MERGE @Destination AS target
    USING
    select A.Dt,A.MeasureID,isnull(S.MeasureValue,0) from AllMeasures A
    left join @Source S on A.Dt=S.Dt and A.MeasureID=S.MeasureID
    ) AS source (Dt, MeasureID,MeasureValue)
    ON (target.Dt = source.Dt and target.MeasureID = source.MeasureID)
    WHEN MATCHED THEN
    UPDATE SET MeasureValue = source.MeasureValue
    WHEN NOT MATCHED THEN
    INSERT (Dt, MeasureID,MeasureValue)
    VALUES (source.Dt,source.MeasureID,source.MeasureValue);
    select * from @Destination
    Vinay Valeti| If you think my suggestion is useful, please rate it as helpful. If it has helped you to resolve the problem, please Mark it as Answer

  • Parameter Query for True or False values

    I have what seems like a painfully simple task and it has me stopped dead.  I reviewed a similar thread, and the answers there don't seem to apply. Working in Crystal 11.5 with an MS SQL database.
    I am pulling data from vwCommmittees.  There is a field in this view called IsActive.  I want to create a committee list report that will allow the user to select only the active committees or all committees.
    A SQL select statement that says where dbo.IsActive = '1' will return only the active committees.
    In Crystal reports, if I place the IsActive field on the report, it returns with "True" or "False."
    When I create a parameter for this field, I find that 1) I can't see the parameter in the report expert -- my only choices are Is any value, Is true, Is false or Formula.
    I've made several attempts to create a formula and nothing is working. It's not clear to me wheter I should be creating a static or a dynamic parameter.  When I choose boolean as the type, that doesn't seem to help.  I tried a dynamic parameter which gave me true and false values, but don't seem to work.
    Any pointers on dealing with this kind of parameter query would be greatly appreciated.
    Sincerely,
    Ridge (in New Joisey)

    Hi..
    Create a static parameter and give the default values like
    0 and 1
    In Record Selection check like..dbo.IsActive = {?parameter}
    If the above is not working for you, then create a formula
    like..
    If dbo.IsActive = '1' then
    "Active"
    Else "In Active"
    Place this formula on your report and create a static parameter with default values Active and In Active.
    In record selection filter the above.
    Thanks,
    Sastry

  • Creating an SQL Query for Project Custom Fields Values

    Hello:
    I'm currently trying to create an SQL Query to show all of the server's Project Custom Fields Values, along with the modification date.
    So far, I've managed to display correctly all of the data for all of the Projects' text value Custom Fields (those not based on a LookUp Table) with this query:
    SELECT
    MSP_PROJECTS.PROJ_NAME,
    MSP_CUSTOM_FIELDS.MD_PROP_NAME,
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.TEXT_VALUE,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MOD_DATE
    FROM
    MSP_PROJ_CUSTOM_FIELD_VALUES
    INNER JOIN
    MSP_CUSTOM_FIELDS
    ON MSP_CUSTOM_FIELDS.MD_PROP_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    INNER JOIN
    MSP_PROJECTS
    ON MSP_PROJECTS.PROJ_UID = MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID
    WHERE
    MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE IS NULL
    ORDER BY
    MSP_PROJ_CUSTOM_FIELD_VALUES.PROJ_UID,
    MSP_PROJ_CUSTOM_FIELD_VALUES.MD_PROP_UID
    However, when I try a new Query to obtain the actual values for the Projects Custom Fields that do use a LookUp Table, I can't seem to find what table in the model I'm supposed to link to the MSP_PROJ_CUSTOM_FIELD_VALUES.CODE_VALUE field (the TEXT_VALUE
    field has NULL value when CODE_VALUE field isn't NULL)
    Any suggestions on how to obtain the actual Projects' custom fields values instead of the Code Value, for Metadata that do use a LookUp Table?
    Also, I'm able to run this query only in the Published Database, since the MSP_CUSTOM_FIELDS table is empy in the Draft Database. Why is that?
    Awaiting your kind reply,
    Sebastián Armas PMO Project Manager

    Hi Sebastián, rather than directly accessing the database it would be better to use the PSI to get this data.  Take a look at the ProjTool sample in the SDK whcih gets this data.
    Best regards,
    Brian.
    Blog |
    Facebook | Twitter | Posting is provided "AS IS" with no warranties, and confers no rights.
    Project Server TechCenter |
    Project Developer Center |
    Project Server Help | Project Product Page

  • Pl.tell a query for non databsae items values as zero

    hai
    i have table like this
    emp_name     date           hours
    xxx          19-12-2007     3
    yyy          20-12-2007     4
    zzz          23-12-2007     3
    i want a query to get the data for 5 days.(ie.19 to 23)
    In that the left two days should be placed as zero in the output.
    please help me.
    thanks

    Something like:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'xxx' as emp_name, to_date('19-12-2007','dd-mm-yyyy') as dt, 3 as hours from dual union all
      2             select 'yyy', to_date('20-12-2007','dd-mm-yyyy'), 4 from dual union all
      3             select 'zzz', to_date('23-12-2007','dd-mm-yyyy'), 3 from dual)
      4  -- END OF TEST DATA
      5  select t.emp_name, d.dt, nvl(t.hours,0) as hours
      6  from t,
      7       (select to_date('19-12-2007','dd-mm-yyyy')+rownum-1 as dt
      8        from dual connect by rownum <= to_date('23-12-2007','dd-mm-yyyy') - to_date('19-12-2007','dd-mm-yyyy') + 1) d
      9  where d.dt = t.dt(+)
    10* order by d.dt
    SQL> /
    EMP DT                       HOURS
    xxx 19/12/2007 00:00:00          3
    yyy 20/12/2007 00:00:00          4
        21/12/2007 00:00:00          0
        22/12/2007 00:00:00          0
    zzz 23/12/2007 00:00:00          3
    SQL>

  • How to write a query for the given scenario ?

    Hi All ,
    I am having two tables EMP, DEPT with the below data.
    EMP TABLE :--
    EID     ENAME     JOB     SAL     DEPID
    111     RAM     MANAGER     1500     10
    222     SAM     ASST MANAGER     2000     20
    333     KALA     CLERK     2500     10
    444     BIMA     MANAGER     3000     20
    555     CHALA     MANAGER     3500     30
    666     RANI     ASST MANAGER     4000     10
    777     KAMAL     MANAGER     2400     10
    DEPT TABLE :--
    DEPID     DNAME
    10     XX
    20     YY
    30     ZZ
    Q1 : I want the sum of salary of each department and for the particular job . Here in each departmant manager, asst. manager, clerk posts are there .
    I want to display the result like below ....
    JOB     10     20     30
    MANAGER     3900     3000     3500
    ASST MANAGER 4000     2000     NULL
    CLERK     2500     NULL     NULL
    please tell me how to write a sql query ?
    Thanks
    Sai

    In general case, you cannot write this query.
    This is one of the limits of relational database concepts. The number of columns must be known up-front. In the SELECT clause, you have to list and name all columns returned by the query. So you have to know number of departments. (There are some workarounds - you can return one column with concatenated values for all departments, separated by space character).
    If you know that you have 3 departments then you qurey will return 4 columns:
    SELECT
       e.job,
       SUM ( CASE WHEN d.deptid = 10 THEN e.sal ELSE NULL END) d10,
       SUM ( CASE WHEN d.deptid = 20 THEN e.sal ELSE NULL END) d20,
       SUM ( CASE WHEN d.deptid = 30 THEN e.sal ELSE NULL END) d30
    FROM dept d, emp e
    WHERE d.deptno = e.deptno
    GROUP BY e.job

  • Querying for first child node's value of a certain tag

    Hi,
    I am using the java parser 2 from Oracle. Given a XML document
    containing the following
    <course>
    <Name>Calculus</Name>
    <Dept>Math</Dept>
    <Instructor>
    <Name>Jim Green</Name>
    </Instructor>
    <Student>
    <Name>Jack</Name>
    <Name>Mary</Name>
    <Name>Paul</Name>
    </Student>
    </course>
    I want to efficiently obtain the value of first child node of
    <course> whose tag is <Name>.
    I could not find any mtd that can do that efficiently. The
    nearest match is the mtd getElementsByTag("Name") which
    traverses the entire tree under <course>.
    Any help appreciated !
    Thanks in advance
    Mak
    null

    Mak (guest) wrote:
    : Hi,
    : I am using the java parser 2 from Oracle. Given a XML document
    : containing the following
    : <course>
    : <Name>Calculus</Name>
    : <Dept>Math</Dept>
    : <Instructor>
    : <Name>Jim Green</Name>
    : </Instructor>
    : <Student>
    : <Name>Jack</Name>
    : <Name>Mary</Name>
    : <Name>Paul</Name>
    : </Student>
    : </course>
    : I want to efficiently obtain the value of first child node of
    : <course> whose tag is <Name>.
    : I could not find any mtd that can do that efficiently. The
    : nearest match is the mtd getElementsByTag("Name") which
    : traverses the entire tree under <course>.
    : Any help appreciated !
    : Thanks in advance
    : Mak
    Your best bet, if you do not need the entire tree, is to use the
    SAX interface to return the desired data. Since it is event
    driven it does not have to parser the while document.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • How to write query for this given information???

    I have table (employees) like this
    Hire_date
    Salary
    04-jan-1991
    2000
    05-mar-1991
    1300
    12-sep-1991
    2400
    19-feb-1992
    3000
    17-apr-1992
    1000
    23-nov-1992
    1200
    25-jan-1993
    1000
    06-jun-1993
    1200
    I want  to get output like this
    Hire_date
    Salary
    Years in range
    total
    04-jan-1991
    2000
    05-mar-1991
    1300
    12-sep-1991
    2400
    01-jan-1991 to 31-dec-1991
    5700
    19-feb-1992
    3000
    17-apr-1992
    1000
    23-nov-1992
    1200
    01-jan-1992 to 31-dec-1992
    4200
    25-jan-1993
    1000
    06-jan-1993
    1200
    01-jan-1993 to 31-dec-1993
    2200
    give me some ideas guys

    Without using analytic functions,
    select
         hire_date,salary,
         decode(hire_date,null,extract(year from hire_date)) year_tag,
         decode(hire_date,null,sum(salary)) total_sal
    from
         employees
         group by grouping sets ((hire_date,salary,extract(year from hire_date)),extract(year from hire_date),())
    Output
    HIRE_DATE    SALARY  YEAR_TAG TOTAL_SAL
    04-JAN-91      2000
    05-MAR-91      1300
    12-SEP-91      2400
                             1991      5700
    19-FEB-92      3000
    17-APR-92      1000
    23-NOV-92      1200
                             1992      5200
    25-JAN-93      1000
    06-JUN-93      1200
                             1993      2200
                                      13100

  • How to query for messages on JMS Queue?

    Hi All,
    What is the best way to query on a JMS Queue? I would like to query for messages based on values entered on a screen. Can this be achieved using the JMS Adapter or any other adapter?
    JDev : 11.1.1.4
    Thanks and Regards.

    Hi,
    I am not 100% clear on your requirement and what selection criteria you need. I would be surprised if you need the DB adapter. If you just want to query how much message are in the queue or other related queries for example related to header information then DB adapter can be used. This only works when JMS queue is stored in the database. Personally I have never come across this requirement.
    I suggest to look in more detail of the JMS adapter. The JMS adapter can be used to select (subscribe) to certain messages. Please read the below for more information:
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10231/adptr_jms.htm#CJACBCHJ
    The message is automatically removed from the queue (implicit delete) the moment it is picked-up. I would not recommend deleting a message directly from the queue using DB adapter. What is the point of publishing the message in the first place?
    Thanks
    Sander

  • Querying for custom picklist values

    Hello all,
    I have created a new field on my opportunity type called "Industry" and gave it picklist values. However, the system is not allowing me to query for the values using the Picklist web service. Am I missing a step here, or does the system not allow querying for custom picklist field values? I can get to certain lists of picklist values for Opportunity (Type, Probability, some others) but not the picklist I created. Am I doing something wrong?
    Thanks!
    -Kevin Green

    Hi,
    Find integration tag for custom field in Field Setup. When you call getPicklist method, pass three values like Object type(ex: Lead), integratin tag for the custom field, "" ( this is language, this field is no need for English languague)
    Hope this willl work
    Raja Kumar Malla
    [email protected]

Maybe you are looking for