AS/400 DB2 adapter to SQL adapter error

Home Page Forums BizTalk 2004 – BizTalk 2010 AS/400 DB2 adapter to SQL adapter error

Viewing 1 reply thread
  • Author
    Posts
    • #24399

       

      Hi,

      I have been attempting to create a solution that will move data between an AS/400 DB2 database and a SQL 2005. But I keep getting the following error:

      The adapter “SQL” raised an error message. Details “HRESULT=”0x80040e14″ Description=”Could not find stored procedure ‘WWTSREG’.”

      WWTSREG is the name of the table/file from the DB2 file (also the table node of schema file) and I don’t know why the orchestration simply neglects the schema mapping that I created and still uses the source schema for the SQL send port.

      Really hoping somebody can help out on this trouble. And my project set up details are listed below if someone needs it for diagnosis.  Thanks.

       

       

       

      <DB2 Schema Generation>

      SELECT * FROM AAA.BBB.WWTSREG (db info masked)

       

      (db info masked)

      Intial catalog

      AAA

      Package collection

      NULLID

      Default schema

      BBB

       

      Document Target Namespace: http://DB2abif02

      Document Root Element Name: DB2abifReq02

       

      <SQL Schema Generation>

      Document Target Namespace:http://SQLabif02

      Document Root Element Name for Request:SQLabifReq02

      Document Root Element Name for Request:SQLabifRep02

       

      <Mapping>

      just map the fields one by one

       

      <Receive Pipeline>

      (I’ve tried both including or not cluding the Receive Pipeline)

      XML Disassembler into the Disassembler box, choose DB2 schema for Document Schema

       

      <Orchestration Objects>

      Message_1

      Identifier: Db2_Msg

      Message Type: Schemas-> DB2 Service Schema

       

      Message_2

      Identifier: SQL_Msg

      Message Type: Schemas->SQL Reuqest Schema

       

      PortType_1

      Identifier: Db2_Rcv_PortType

      Message Type: DB2 Service Schema

       

      PortType_2

      Identifier: SQL_Snd_PortType

       Message Type: SQL Reuqest Schema

       

      <Orchestration Design>

       

      Port_1

      Name: Db2_Rcv_Port

      Port Type: Db2_Rcv_PortType

      Port Direction: Receive

      Port Binding: Specify later

       

      Port_2

      Name: SQL_Snd_Port

      Port Type: SQL_Snd_PortType

      Port Direction: Send

      Port Binding: Specify later

       

      Receive

      Message: Db2_Msg

      Operation: Db2_Rcv_Port.Operation_1.Request

       

      Construct Message

      Message Constructed: SQL_Msg

       

      Transform

       

      Select the Ellipses from the Input Messages property and from the Transform Configuration dialog box that  appears, select Existing map. From Source select Db2_Msg and for Destination, select SQL_Msg.

       

      Send

      Message: SQL_Msg

      Operation: SQL_Snd_Port.Operation_1.Request

       

      <DEPLOY>

      assign app name

      assign strong name key

      deploy

       

      <CONFIGURE PORTS – Receive Port>

      Receive Port :Db2_RP_abif02

      Receive Location: Db2_RL_abif02

      Type: DB2

      Document Target Namespace: http://DB2abif02

      Document Root Element Name: DB2abifReq02

      SQL Command: SELECT * FROM AAA.BBB.WWTSREG (db info masked)

      Pipline: PassThruReceive (if not receive piline in the project file)

       

      <CONFIGURE PORTS – Send Port>

      Receive Port :SQL_SP_abif02

      Type: SQL

      Pipline: PassThruTransmit

       

      Document Target Namespace: http://SQLabif02

      Document Root Element Name: SQLabifReq02

      Filter: BTS.ReceivePortName = Db2_RP_abif02

       

    • #24434

      Hi Padres,
      I was debugging a simliar issue for my resource who was working on a similar Integration Scenario.

      The reason why your map is not getting executed is
      1. The xml file from the DB2 Receive Adapter doesnot comply with the Input Schema.

      So the Map fails and it passes the xml to SQL.

      How to test it?
      1.Receive the file from the DB2 Receive Adapter and drop it in a File Folder without mapping it.
      2.Test the map manually using this file as input,it will not succeed.

      The issue might be with the prefix “ns0” in the incoming xml file.

      Solution:
      Use a custom receive pipeline and add the prefix “ns0” to the file.

      It should help you.

      • #24441

        Hi NISHIL,

        I have to say that I’m really excited to see someone finally posting a solution.

        But could you be more detailed on how to implement your solutin in steps since I’m still a newbie in BizTalk?  Thank you.

        Regards, Steve

        • #24445

          Steve,

          You can follow this article for mine. Its an old one but will help you.

          http://biztalkforums.com/blogs/nishil/archive/2007/12/30/for-beginners-only-your-first-biztalk-project.aspx

          The Receive port will be same as the one you have right now.

          The Send port you can configure as shown in the article.

          Can you post in the XML you get in the Output folder?

           

          • #24447

            Hi NISHIL,

            Do you mean that I should follow the article that you provided to produce a file-output xml file and post it here, then you’d know how to build the custom pipline for adding the ns0 by looking at the output file?

            Thanks, Steve

            • #24448

              Yes Steve,

              First I want to have a look at the Output and then comment if you need the pipeline component or not.

              • #24451

                Hi NISHIL,

                Got it.  I’ll post that for your diagnosis once I got that thing produced.  Thank you.

                Regards, Steve

                • #24454

                  Hi NISHIL,

                  After I added a new physical send port and ran the orchestration, it’s still stopped by the same error w/o producing the xml file.  It’s still looking for a stored procedure named Table1.  So I got in the monitoring and copied the message body out of the send adapter where the error took place.

                  <?xml version=”1.0″?><DB2arsif2Req xmlns=”http://DB2arsif2″><Table1 T7WDG4=”1100315″ T7WDG5=”130400″ T7WAHI=”1″ T7WDG7=”163403″ T7WDG9=”0″ T6WBP7=”1100314″ T7WDG8=”0″ T7WDG6=”1100323″ T7WBNW=”183012″ T7ACTN=”I” /><Table1 T7WDG4=”1100315″ T7WDG5=”130400″ T7WAHI=”1″ T7WDG7=”163403″ T7WDG9=”0″ T6WBP7=”1100314″ T7WDG8=”0″ T7WDG6=”1100323″ T7WBNW=”183012″ T7ACTN=”I” /></DB2arsif2Req>

                  Looks like what I said, it simply ignored the mapping and threw the data with source schema into the send adapter. 

                  Is it possible that you could provide your email address for me to send u the project file and u take a look?

                  Regards, Steve

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.