1 Reply Latest reply on Sep 18, 2011 11:35 PM by radzmar

    Invalid append operation

    JT01 Level 1

      I get the following message(in my livecycle server log) when one of my forms loads in workspace.  Its only the one form that this occurs in and the form appears to work correctly.  Does anyone have any idea why this warning occurs and how to clear it?  Anyone know what the specific fault lines (2812 and 1825) refer too?  I was thinking it would refer to the xml source inside designer but it didn't appear to relate.  This causes a lot of spam in the server log file and it could be causing an error that I haven't been able to find yet.

       

      __________________________

       

       

      2011-09-16 13:37:00,203 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
      2011-09-16 13:37:00,203 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 2812.
      2011-09-16 13:37:01,781 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
      2011-09-16 13:37:01,781 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 1825.
      2011-09-16 13:37:01,813 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] Invalid append operation: field cannot have a child element of #text
      2011-09-16 13:37:01,813 WARN  [com.adobe.document.XMLFormService] ALC-XTG-102-001: [79408] The fault occurred on line 1825.

        • 1. Re: Invalid append operation
          radzmar Adobe Community Professional & MVP

          I don't work with LC servers but with Designer but think this doesn't matter here.

           

          A fields text is the child element of a value element. So you first have to append a value element and then append the text element to it.

          <field name="TextField1" y="6.35mm" x="15.875mm" w="62mm" h="9mm">

                      <ui>

                         <textEdit>

                            <border>

                               <edge stroke="lowered"/>

                            </border>

                            <margin/>

                         </textEdit>

                      </ui>

                      <font typeface="Myriad Pro"/>

                      <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>

                      <para vAlign="middle"/>

                      <caption reserve="25mm">

                         <para vAlign="middle"/>

                         <value>

                            <text>Text Field</text>

                         </value>

                      </caption>

                     <value>

                         <text>Sample text</text>

                      </value>

                   </field>

           

          In Designer the script looks like:

          var newValue = xfa.template.createNode("value");

          var newText = xfa.template.createNode("text");

          newText.value = "Sample text";

          newValue.nodes.append(newText);

          [referenceSyntax].nodes.append(newValue);

           

           

          Hope this helps.