4 Replies Latest reply: Dec 7, 2012 7:39 AM by 834677 RSS

    Problem while assigning  the fields of EBM to ABM in Provider

    834677
      Hi All,

      I am facing a problem with the fields of EBM not being able to Assign to ABM in ProviderBPEL

      In RequestorABCSImpl, i am transforming a ABM to SupplierPartyEBM(CreateSupplierPartyListEBM is the type i am using)

      Field called 'PayementTerm' is being mapped as below
      <corecom:PaymentTerm>
      <corecom:Code>
      <xsl:value-of select='dvm:lookupValue(concat("oramds:/apps/AIAMetaData/dvm/","SY_SUPPLIERPARTY_TERMTYPE",".dvm"),"MULTISYS_01",tnsaboabo:PaymentTerm/text(),"COMMON",aia:getServiceProperty($ServiceName,"SyncSupplierPartyList.PaymentTerm.Code",false()))'/>
      </corecom:Code>
      </corecom:PaymentTerm>

      after transform I am able to see the value for PaymentTerm/Code while testing requestor.

      Now in provider I am using an Assign activity to assign 'PaymentTerm/Code' to ABM field called 'termID '
      Here
      'PaymentTerm/Code' is a TermType
      'termID ' is a string.

      When i test end to end
      i am getting an error while assigning 'PaymentTerm/Code' to 'termID'

      Error i am getting is "Error in evaluate<from expression at line 677. the result is empty for xpath expression inputvariable/./../PaymentTerm/Code

      Please guide me what is wrong in this. In Input Payload i am able to see the value coming in provider but while assigning i'ts failing
        • 1. Re: Problem while assigning  the fields of EBM to ABM in Provider
          Gerhard Drasch-Oracle
          We would need to see the entire generated EBM as well as the BPEL/xsl code that is failing on the provider side to tell where the problem is.

          Gerhard
          • 2. Re: Problem while assigning  the fields of EBM to ABM in Provider
            834677
            This is the input xml

            <CreateSupplierPartyListReqMsg><part name="CreateSupplierPartyListEBM" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><CreateSupplierPartyListEBM xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <EBMHeader xmlns:fpsdataabo="http://xmlns.cassini.telenor.com/FPS/SupplierParty/V1" xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2" xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:EBMID>2d323432363737383037393633373932</corecom:EBMID><corecom:EBMName>{http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1}CreateSupplierPartyListEBM</corecom:EBMName><corecom:EBOName>{http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1}SupplierPartyEBO</corecom:EBOName><corecom:CreationDateTime>2012-12-07T08:51:15.135+01:00</corecom:CreationDateTime><corecom:VerbCode>Create</corecom:VerbCode><corecom:MessageProcessingInstruction><corecom:EnvironmentCode>PRODUCTION</corecom:EnvironmentCode></corecom:MessageProcessingInstruction><corecom:Sender xmlns="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:ebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1" xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions" xmlns:hashmap="http://www.oracle.com/XSL/Transform/java/java.util.HashMap"><corecom:ID>MULTISYS_01</corecom:ID><corecom:CallingServiceName>{http://xmlns.oracle.com/ABCSImpl/Multisys/Core/SyncSupplierPartyListMultisysReqABCSImpl/V1.0}SyncSupplierPartyListMultisysReqABCSImpl</corecom:CallingServiceName><corecom:Custom xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:cd:04" xmlns:tnsaboabo="http://xmlns.cassini.telenor.com/Multisys/SupplierParty/V1"><corecom:LegalEntityReference><corecom:LegalEntityIdentification><corecom:ID/></corecom:LegalEntityIdentification></corecom:LegalEntityReference></corecom:Custom></corecom:Sender><corecom:Target><corecom:ID>EBIZ_01</corecom:ID></corecom:Target><corecom:BusinessScope><corecom:ID>Supplier Party - 0000001</corecom:ID><corecom:InstanceID>CreateSupplierPartyList/32313433363838393939393637303532</corecom:InstanceID><corecom:BusinessScopeTypeCode>BusinessProcess</corecom:BusinessScopeTypeCode><corecom:EnterpriseServiceName>{http://xmlns.oracle.com/EnterpriseServices/Core/SupplierParty/V1}SupplierPartyEBSV1</corecom:EnterpriseServiceName><corecom:EnterpriseServiceOperationName>CreateSupplierPartyList</corecom:EnterpriseServiceOperationName></corecom:BusinessScope><corecom:BusinessScope><corecom:ID>CreateSupplierPartyListReqMsg</corecom:ID><corecom:InstanceID>CreateSupplierPartyListReqMsg/2d323432363737383037393633373932</corecom:InstanceID><corecom:BusinessScopeTypeCode>Message</corecom:BusinessScopeTypeCode><corecom:EnterpriseServiceName>{http://xmlns.oracle.com/EnterpriseServices/Core/SupplierParty/V1}SupplierPartyEBSV1</corecom:EnterpriseServiceName><corecom:EnterpriseServiceOperationName>CreateSupplierPartyList</corecom:EnterpriseServiceOperationName></corecom:BusinessScope><corecom:EBMTracking><corecom:SequenceNumber>1</corecom:SequenceNumber><corecom:ExecutionUnitID/><corecom:ExecutionUnitName>{http://xmlns.oracle.com/EnterpriseFlows/Core/SyncSupplierPartyListEBF/V1}SyncSupplierPartyListEBFV1</corecom:ExecutionUnitName><corecom:ImplementationCode>BPEL</corecom:ImplementationCode><corecom:ActivityDateTime>2012-12-07T08:51:15.136+01:00</corecom:ActivityDateTime></corecom:EBMTracking><xacml:Request xmlns:xacml="urn:oasis:names:tc:xacml:2.0:context:schema:cd:04"/></EBMHeader>
            <DataArea><corecom:Create xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"/><ebo:SyncSupplierPartyList xmlns:ebo="http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/SupplierParty/V1"><corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:ID schemeID="SY_SUPPLIERPARTY_SUPPLIERPARTYID" schemeAgencyID="XREF">33363339373538363835333734303432</corecom:ID><corecom:ContextID>c</corecom:ContextID><corecom:ApplicationObjectKey><corecom:ID schemeID="VENDOR_NUMBER" schemeAgencyID="MULTISYS">0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><corecom:PartyLocation xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Identification><corecom:ApplicationObjectKey><corecom:ID>0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><corecom:LocationReference><corecom:Address><corecom:LineOne>Hillev?gsv 24</corecom:LineOne><corecom:LineTwo>Hillev?gsv 24</corecom:LineTwo><corecom:LineThree>Hillev?gsv 24</corecom:LineThree><corecom:LineFour>Hillev?gsv 24</corecom:LineFour><corecom:CityName>STAVANGER</corecom:CityName><corecom:PostalCode>4016</corecom:PostalCode></corecom:Address></corecom:LocationReference></corecom:PartyLocation><corecom:PartyContact xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Contact><corecom:PersonName><corecom:FirstName>Nordialog Stavanger</corecom:FirstName></corecom:PersonName></corecom:Contact></corecom:PartyContact><corecom:Organization xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Name>Nordialog Stavanger</corecom:Name><corecom:LegalStructureCode>00</corecom:LegalStructureCode><corecom:OrganizationFinancialProfile><corecom:FinancialProfile><corecom:FinancialAccount><corecom:AccountNumber>54130613600</corecom:AccountNumber><corecom:TypeCode>SUPPLIER</corecom:TypeCode><corecom:CurrencyCode>NOK</corecom:CurrencyCode></corecom:FinancialAccount></corecom:FinancialProfile></corecom:OrganizationFinancialProfile></corecom:Organization><ebo:CustomerNumber>0000001</ebo:CustomerNumber><ebo:MinimumOrderAmount>0</ebo:MinimumOrderAmount><ebo:TypeCode>VENDOR</ebo:TypeCode><ebo:OneTimeIndicator>false</ebo:OneTimeIndicator><ebo:SupplierPartyTradingLocationProfile><corecom:Identification xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:ID schemeID="SY_SUPPLIERPARTY_SUPPLIERPARTYTRADINGLOCATIONPROFILEID" schemeAgencyID="XREF">2d323735363933313339333732353537</corecom:ID><corecom:ApplicationObjectKey><corecom:ID schemeID="VENDOR_NUMBER" schemeAgencyID="MULTISYS">0000001</corecom:ID></corecom:ApplicationObjectKey></corecom:Identification><ebo:PrimaryIndicator>true</ebo:PrimaryIndicator><ebo:FreightTermsCode/><ebo:HoldReasonCode/><ebo:InvoiceCurrencyCode/><ebo:PaymentCurrencyCode/><ebo:PaymentPriorityCode>99</ebo:PaymentPriorityCode><ebo:TermsDateBasisCode/><ebo:VATTaxCode>SY25VAT</ebo:VATTaxCode><ebo:VATRegistrationNumber/><ebo:ExcludeFreightFromDiscountIndicator>false</ebo:ExcludeFreightFromDiscountIndicator><ebo:PurchasingEnabledIndicator>false</ebo:PurchasingEnabledIndicator><ebo:RFQOnlyIndicator>false</ebo:RFQOnlyIndicator><corecom:PaymentTerm xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:Code>6 DAYS</corecom:Code></corecom:PaymentTerm><ebo:TradingLocationProfileAddress><corecom:Address xmlns:corecom="http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2"><corecom:LineOne>Hillev?gsv 24</corecom:LineOne><corecom:LineTwo>Hillev?gsv 24</corecom:LineTwo><corecom:CityName>STAVANGER</corecom:CityName><corecom:PostalCode>4016</corecom:PostalCode></corecom:Address></ebo:TradingLocationProfileAddress></ebo:SupplierPartyTradingLocationProfile></ebo:SyncSupplierPartyList></DataArea>
            </CreateSupplierPartyListEBM></part></CreateSupplierPartyListReqMsg>


            And my assign is
            bpws:getVariableData('CreateSupplierPartyListReqMsg','CreateSupplierPartyListEBM','/WL5G3N2ebo:CreateSupplierPartyListEBM/WL5G3N2ebo:DataArea/WL5G3N2ebo:CreateSupplierPartyList/WL5G3N2ebo:SupplierPartyTradingLocationProfile/corecom:PaymentTerm/corecom:Code') to an 'invoke_InputVariable/termid'
            • 3. Re: Problem while assigning  the fields of EBM to ABM in Provider
              Gerhard Drasch-Oracle
              Your xpath expression does not match the input. Look at your XML document, it does not have anything like /CreateSupplierPartyListEBM/DataArea/CreateSupplierPartyList/..., but it does have /CreateSupplierPartyListEBM/DataArea/*Sync*SupplierPartyList/...

              Gerhard