6 Replies Latest reply: Apr 4, 2012 11:22 AM by user8769031 RSS

    B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX

    user8769031
      Hi,
      I am getting the error: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP OracleServices with document type PurchaseOrder-1.0-INBOUND

      I am following a the example in a chapter from Oracle SOA Suite 11g R1: A Hands-on tutorial

      The idea is to use a local XML file of purchase orders as input to be processed by B2B and sent to the Composite where I process and load it in the database.
      Defined in the B2B console the partners, document definition, listening channel as file, and agreement, and B2B adapter in the composite.

      On testing I do see in the B2B console the transaction with the correct XML payload but no instances are started in the SOA composite.
      The displayed error in B2B console is: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP OracleServices with document type PurchaseOrder-1.0-INBOUND.

      It is strange that the from adapter is Null, yet the source file is being processed and actually deleted from the folder fine!?

      From B2B console:
      Id     7F00000113616762DFB0000019C81800
      Message Id     7F00000113616761D8B0000019C81300
      Refer To Message     Refer To Message
      Sender Type     Name
      Sender Value     MI
      Receiver Type     
      Receiver Value     
      Sender     MI (why not the actual MartketInc ??)
      Receiver     OracleServices (correct)
      Agreement Id     (null )
      Agreement     
      Document Type     PurchaseOrder
      Document Protocol     Custom
      Document Version     
      Message Type     REQ
      Direction     INBOUND
      State     MSG_ERROR
      Acknowledgement Mode     NONE
      Response Mode     ASYNC
      Send Time Stamp     03/15/2012 06:05 AM
      Receive Time Stamp     03/15/2012 06:05 AM
      Document Retry Interval(Channel)     0
      Document Remaining Retry(Channel)     0
      Document Retry Interval(Agreement)     
      Document Remaining Retry(Agreement)     
      Native Message Size     550
      Translated Message Size     
      Business Action Name     
      Business Transaction Name     
      Xpath Name1     
      Xpath Value1     
      Xpath Expression1     
      Xpath Name2     
      Xpath Value2     
      Xpath Expression2     
      Xpath Name3     
      Xpath Value3     
      Xpath Expression3     
      Correlation From XPath Name     
      Correlation From XPath Value     
      Correlation From XPath Expression     
      Correlation To XPath Name     
      Correlation To XPath Value     
      Correlation To XPath Expression     
      Wire Message     Wire Message
      Application Message     Application Message
      Payload Storage     Payload Storage
      Attachment     Attachment
      Label     
      Collaboration Id     7F00000113616762CB60000019C81700
      Collabration Name     
      Collabration Version     
      Business Action Name     
      Exchange Protocol Name     Generic File
      Exchange Protocol Version     1.0
      Interchange Control Number     
      Group Control Number     
      Transaction Set Control Number     
      Error Code     B2B-50547
      Error Description     Machine Info: (localhost.localdomain) Description: Agreement not found for trading partners: FromTP null, ToTP OracleServices with document type PurchaseOrder-1.0-INBOUND.
      Error Level     ERROR_LEVEL_COLLABORATION
      Error Severity     ERROR
      Error Text     Agreement not found for trading partners: FromTP null, ToTP OracleServices with document type PurchaseOrder-1.0-INBOUND.

      I can provide summary of full steps and the log content.

      Need to get the test to work to show value of B2B over older technologies. Please help.

      Thanks
        • 1. Re: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX
          user9285225
          Hi,

          Did you set the Filename Format in the listening channel you configured?
          If not set the property as below format:-
          %FROM_PARTY%_%DOCTYPE_NAME%_DOCTYPE_REVISION%_%MSG_ID%.XML

          ex:- MarketInc_PurchaseOrder_1.0_123446.xml

          Check the initiator and responder for the documents selected for the each Trading Partner. Also, I would say delete the current agreement, create the agreement select the docuemnt definition and deploy the agreement. It should work.
          • 2. Re: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX
            user8769031
            Thanks adding the filename format allowed the message to pass to the composite. The file format seems where the message properties are being set and has more meaning than I thought.

            Tried to send another file with different MSG_ID file in the file name MarketInc_PurchaseOrder_1.0_1237.xml and also changed in the file content the ID value in case it is needed.
            but got the error:
            Error Code     B2B-50081
            Error Description     Machine Info: (localhost.localdomain) Description: Duplicated exchange protocol message error - Original B2BMessageId = 7F00000113630659247000007243D500

            How to make the exchange protocol unique?

            Thanks
            • 3. Re: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX
              user9285225
              By changing the MSG_ID is should work....

              Maybe u might have tested with the same msg_id before... can u retest again with different msg id?
              • 4. Re: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX
                user8769031
                Thanks for your support, here is the situation:
                Testing with a new MSG_ID still gave the same error, then I purged all prior business messages using B2B console and tested using a new MSG_ID and this time worked fine.

                1. Purged all messages

                2. Tested and this Worked : File name MarketInc_PurchaseOrder_1.0_1241.xml
                Id     7F000001136362AF81500000C1C68F00
                Message Id     7F000001136362AF7FC00000C1C68E00-1
                No error

                Protocol Transport Binding     filename=MarketInc_PurchaseOrder_1.0_1241.xml filesize=547 file_ext=xml filename_format=%FROM_PARTY%_%DOCTYPE_NAME%_DOCTYPE_REVISION%_%MSG_ID%.XML fullpath=/home/oracle/b2b_in/MarketInc_PurchaseOrder_1.0_1241.xml timestamp=2012-03-21T09:50:34.000-08:00 MSG_RECEIVED_TIME=Wed Mar 21 09:50:39 PDT 2012


                (In the Application Message tab)
                App Message property     {b2b.documentProtocolVersion=1.0, b2b.fileName=MarketInc_PurchaseOrder_1.0_1241.xml, b2b.documentProtocolName=Custom, b2b.replyToMessageId=null, b2b.toTradingPartnerIdType=Name, b2b.conversationId=null, b2b.documentDefinitionName=PurchaseOrder_def, b2b.messageId=7F000001136362AF7FC00000C1C68E00-1, b2b.fromTradingPartnerIdType=Name, b2b.messageType=1, MESH_METRICS=null, tracking.compositeInstanceId=90001, b2b.toTradingPartnerId=OracleServices, tracking.ecid=7F000001136362AF8AB00000C1C69500, b2b.fromTradingPartnerId=MarketInc, tracking.compositeInstanceCreatedTime=2012-03-21 09:50:39.032825, tracking.conversationId=7F000001136362AF8AB00000C1C69400, b2b.documentTypeName=PurchaseOrder}
                Direction     INBOUND
                State     MSG_COMPLETE

                3. Tested again but failed, using file name: MarketInc_PurchaseOrder_1.0_1242.xml (different MSG_ID)
                Id     7F0000011363631D0F400000C1C69D00
                Message Id     7F0000011363631D0A300000C1C69800 (new message)

                But go error:
                Error Code     B2B-50081
                Error Description     Machine Info: (localhost.localdomain) Description: Duplicated exchange protocol message error - Original B2BMessageId = 7F000001136362AF7FC00000C1C68E00-1 ( not sure what causes an new B2BMessageId to be generated? )

                Protocol Transport Binding     filename=MarketInc_PurchaseOrder_1.0_1242.xml filesize=546 file_ext=xml filename_format=%FROM_PARTY%_%DOCTYPE_NAME%_DOCTYPE_REVISION%_%MSG_ID%.XML fullpath=/home/oracle/b2b_in/MarketInc_PurchaseOrder_1.0_1242.xml timestamp=2012-03-21T09:58:14.000-08:00 MSG_RECEIVED_TIME=Wed Mar 21 09:58:15 PDT 2012


                What I see is the same B2BMessageId is being used even though the MSG_ID specified in the files are different. Is there something I need to do in SOA Composite that is receiving the message from B2B?

                Thanks
                • 5. Re: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX
                  LRSwan
                  Looks like the format provided earlier has a typo - missing a % in front of DOCTYPE_REVISION. Should be:

                  %FROM_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%_%MSG_ID%.XML
                  • 6. Re: B2B-50547 Agreement not found for trading partners: FromTP null, ToTP XXX
                    user8769031
                    Thanks. That fixed the issue. I should have noticed the format error.
                    I tested with a different version in the file name but that didn't work, workes when I change the MSG_ID value:

                    MarketInc_PurchaseOrder_1.0_1232.xml Work
                    MarketInc_PurchaseOrder_1.1_1233.xml didn't

                    At least now able to submited multiple files.