1 Reply Latest reply on Sep 26, 2006 2:50 PM by b.etter

    error with a D3L subscriber

    439096
      Hi,

      I get an error code when subscribing to an event with an ftpadapter in D3L mode.

      the transformation is logged OK, the error code is OTA-003

      here is my d3l-layout:
      ------------
      <?xml version="1.0" encoding="US-ASCII"?>
      <!DOCTYPE message SYSTEM "d31.dtd">
      <message name="testobjecten" type="testpersonen" object="testobjecten" value="subscribe" >

      <imparray id="line">
      <struct>
      <field name="CustomerKey"><termstring endchar="|" /> </field>
      <field name="surName"> <termstring endchar="|" /> </field>
      <field name="Name"> <termstring endchar="|" /> </field>
      <field name="Initials"> <termstring endchar="\r\n" /> </field>
      </struct>
      </imparray>

      <struct id="testpersonen">
      <field name="lines"> <typeref type="line" /> </field>
      </struct>

      </message>
      -----------

      The idea is to write a multiline ascii-file with 1 record per line.
      The published event is correctly another ftp-adapter in XML mode is receiving the mutli-record xml file correctly.

      Here is the DTD of the XML-subscriber:
      ---
      <!ELEMENT TESTOBJECTEN (TESTOBJECT+ ) >
      <!ELEMENT TESTOBJECT (Nummer, Naam, Voorletters, Voornaam) >
      <!ELEMENT Nummer ( #PCDATA ) >
      <!ELEMENT Naam ( #PCDATA ) >
      <!ELEMENT Voorletters ( #PCDATA ) >
      <!ELEMENT Voornaam ( #PCDATA ) >
      ---


      Business OBJECT=TEST
      EVENT=TESTOBJECTEN
      subscribe objectname = TESTOBJECTEN

      errorlog:
      ---o rules found to handle the error : Error Code = OTA-003; Message Information = [Type = 0; Message Version = OAI/V1; Business Object = TEST; Event = TESTOBJECTEN; Event Version = OAI/V1]
      TEST.TESTOBJECTEN:OAI/V1,OAI/V1,false,0
      testpersonen
      lines[0]
      ---

      the lines are correctly build it seems I have an error in the d3l structure? It just doesn't want to write the file...
        • 1. Re: error with a D3L subscriber
          b.etter
          Hi,

          i get the same problem, here is my solution:
          the correct d3l layout:

          <?xml version="1.0" encoding="US-ASCII"?>
          <!DOCTYPE message SYSTEM "d31.dtd">
          <message name="testobjecten" type="testpersonen" object="testobjecten" value="subscribe" >

          <imparray id="line">
          <struct>
          <field name="CustomerKey"><termstring endchar="|" /> </field>
          <field name="surName"> <termstring endchar="|" /> </field>
          <field name="Name"> <termstring endchar="|" /> </field>
          <field name="Initials"> <termstring endchar="\r\n" /> </field>
          </struct>
          </imparray>

          <struct id="testpersonen">
          <property name="filename" />
          <field name="lines"> <typeref type="line" /> </field>
          </struct>

          </message>