3 Replies Latest reply: Jul 4, 2014 6:59 AM by Prasanna Chandrashekhara RSS

    Getting error while processing EDIFACT-D96A-ORDERS.. Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND

    928671

      Hi Anuj & All,

          I'm trying to create an outbound scenario with EDIFACT-D96A-ORDERS. A simple SOA composite application polling data from DB and through B2B adapter 'send' option provides data to B2B system.

      Set up two partner profiles like this,

      Host:

      Name: HTP

      EDI Group ID: HTP

      EDI Interchange ID: Interchange Sen

      EDI Interchange ID Qualifier: 01

       

      Remote:

      Name: RTP

      EDI Group ID: RTP

      EDI Interchange ID: Interchange Rec

      EDI Interchange ID Qualifier: 01

       

      Other settings are as usual. Delivery channel of generic file created on RTH.

       

      Now, few documents settings on B2B console are like this,

      D96A-> Interchange tab

      Create UNA: Never

      ORDERS-> Transaction

      Functional Group Identifier Code: ORDERS

      Controlling Agency: UN

       

      - other properties are unchanged.

       

      On SOA side, the bpel invoke activity which calls B2B adapter has following properties:

       

      <invoke name="InvokeOrders"

        inputVariable="InvokeOrders_send_InputVariable"

        partnerLink="D96A.ORDERS" portType="ns2:send_ptt"

        operation="send" bpelx:invokeAsDetail="no">

      <bpelx:inputProperty name="b2b.toTradingPartnerIdType"

          expression="'NAME'"/>

      <bpelx:inputProperty name="b2b.toTradingPartnerId"

          expression="'RTP'"/>

      <bpelx:inputProperty name="b2b.messageType" expression="1"/>

      <bpelx:inputProperty name="b2b.messageId" variable="messageID"/>

      <bpelx:inputProperty name="b2b.fromTradingPartnerIdType"

          expression="'NAME'"/>

      <bpelx:inputProperty name="b2b.fromTradingPartnerId"

          expression="'HTP'"/>

      <bpelx:inputProperty name="b2b.documentTypeName"

          expression="'ORDERS'"/>

      <bpelx:inputProperty name="b2b.documentProtocolVersion"

          expression="'D96A'"/>

      <bpelx:inputProperty name="b2b.documentProtocolName"

          expression="'EDIFACT'"/>

      <bpelx:inputProperty name="b2b.documentDefinitionName"

          expression="'ORDERS_def'"/>

      <bpelx:inputProperty name="b2b.conversationId"

          variable="ConversationID"/>

      </invoke>

      ----------------

      The error I'm getting on B2B Console->Reports->Business Message, while running this is,

       

      Error Code B2B-50547

      Error Description Machine Info: (htp01310-vm01.htp.com) Description: Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND.

      Error Level ERROR_LEVEL_COLLABORATION

      Error Severity ERROR

      Error Text Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND.

      ------------

      Note: On Manage Deployment Tab I've checked the agreement is in active state.

       

      -- Business Message (Result):--

      State: MSG_ERROR

      Document Type: ORDERS

      Agreement: <blank>

      Sender: HTP

      Receiver: <blank>

       

      -- Application Message (Result):--

      Sender Id Type: NAME

      Sender Value: TCS

      Receiver Id Type: NAME

      Receiver Value: ORCL

      Document Type: ORDERS

      Document Definition: ORDERS_def

      Document Protocol Name: EDIFACT

      Document Protocol Version: D96A

      Direction: OUTBOUND

      State: MSG_COMPLETE

      ------------------------

      - Can anybody please shoot some pointer on how to resolve this? Please let me know if you need further configuration details which I've not mentioned here.

       

      Regards,

      - @bhijit

        • 1. Re: Getting error while processing EDIFACT-D96A-ORDERS.. Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND
          2647862

          Hi @bhijit,

          I guess You have a problem with headerDocument. You are using b2b 11g? please paste audit trail data. I had similar problem with b2b. Soa composite "wrong mapped" data and thats why b2b didnt recognize an agreement.

           

           

          best regards,

          Mariusz

          • 2. Re: Getting error while processing EDIFACT-D96A-ORDERS.. Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND
            928671

            Hi Mariusz,

                Thanks for your reply. Yes I think so, probably you're right. But finest trace level doesn't give much clues on "wrong mapped" data. Anyway, here is the detail log. Please don't forget to point out if you find something interesting.

             

            #### <Error> <oracle.soa.b2b.engine> <htp01310-vm01.htp.com> <soa_server1> <Workmanager: , Version: 0, Scheduled=false, Started=false, Wait time: 0 ms

            > <<anonymous>> <BEA1-0D3F5ABAC0B2E50C6CCB> <449b4b64fa2729cc:59737e36:146f08831ee:-8000-0000000000127da6> <1404379704092> <BEA-000000> <Error -:  B2B-50547:  Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND.

              at oracle.tip.b2b.tpa.RepoDataAccessor.queryAgreementMO(RepoDataAccessor.java:887)

              at oracle.tip.b2b.tpa.RepoDataAccessor.getAgreementDetails(RepoDataAccessor.java:415)

              at oracle.tip.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:465)

              at oracle.tip.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:224)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1555)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:819)

              at oracle.tip.b2b.engine.Engine.outgoingContinueProcess(Engine.java:4100)

              at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3921)

              at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3309)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:637)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:214)

              at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)

              at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)

              at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)

             

             

            Error -:  B2B-50547:  Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND.

              at oracle.tip.b2b.tpa.RepoDataAccessor.queryAgreementMO(RepoDataAccessor.java:887)

              at oracle.tip.b2b.tpa.RepoDataAccessor.getAgreementDetails(RepoDataAccessor.java:415)

              at oracle.tip.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:465)

              at oracle.tip.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:224)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1555)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:819)

              at oracle.tip.b2b.engine.Engine.outgoingContinueProcess(Engine.java:4100)

              at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3921)

              at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3309)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:637)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:214)

              at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)

              at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)

              at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)

            >

            #### <Error> <oracle.soa.b2b.engine> <htp01310-vm01.htp.com> <soa_server1> <Workmanager: , Version: 0, Scheduled=false, Started=false, Wait time: 0 ms

            > <<anonymous>> <BEA1-0D3F5ABAC0B2E50C6CCB> <449b4b64fa2729cc:59737e36:146f08831ee:-8000-0000000000127da6> <1404379704569> <BEA-000000> <Error -:  B2B-50547:  Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND.

              at oracle.tip.b2b.tpa.RepoDataAccessor.queryAgreementMO(RepoDataAccessor.java:887)

              at oracle.tip.b2b.tpa.RepoDataAccessor.getAgreementDetails(RepoDataAccessor.java:415)

              at oracle.tip.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:465)

              at oracle.tip.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:224)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1555)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:819)

              at oracle.tip.b2b.engine.Engine.outgoingContinueProcess(Engine.java:4100)

              at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3921)

              at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3309)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:637)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:214)

              at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)

              at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)

              at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)

             

             

            Error -:  B2B-50547:  Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND.

              at oracle.tip.b2b.tpa.RepoDataAccessor.queryAgreementMO(RepoDataAccessor.java:887)

              at oracle.tip.b2b.tpa.RepoDataAccessor.getAgreementDetails(RepoDataAccessor.java:415)

              at oracle.tip.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:465)

              at oracle.tip.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:224)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1555)

              at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:819)

              at oracle.tip.b2b.engine.Engine.outgoingContinueProcess(Engine.java:4100)

              at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3921)

              at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3309)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:637)

              at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:214)

              at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)

              at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:184)

              at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)

            >

             

            Rgds,

            - Abhijit

            P.S. - Can you please check what is the value of "Functional Group Identifier Code" for D96A ORDERS.

            • 3. Re: Getting error while processing EDIFACT-D96A-ORDERS.. Agreement not found for trading partners: FromTP HTP, ToTP null with document type ORDERS-D96A-OUTBOUND
              Prasanna Chandrashekhara

              use only below

              <bpelx:inputProperty name="b2b.toTradingPartnerId"

                  expression="'RTP'"/>

              <bpelx:inputProperty name="b2b.fromTradingPartnerId"

                  expression="'HTP'"/>

              <bpelx:inputProperty name="b2b.documentTypeName"

                  expression="'ORDERS'"/>

              <bpelx:inputProperty name="b2b.documentProtocolVersion"

                  expression="'D96A'"/>


              additionally if required

               

              <bpelx:inputProperty name="b2b.messageType" expression="1"/>

              <bpelx:inputProperty name="b2b.messageId" variable="messageID"/>