Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1627

valueLength fails with complex type during parsing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: Front End
    • Labels:
      None

      Description

      The valueLength function fails when referencing a complex element during parsing. It works with unparsing though.

      [error] Test edu.illinois.ncsa.daffodil.section23.dfdl_expressions.TestDFDLExpressionsDebug.test_valueLength_5 failed: edu.illinois.ncsa.daffodil.tdml.TDMLException: Schema Definition Error: Expression evaluation failed: Error: Value length unknown for element {http://example.com}seq.BlockingDOS(valueLen(unk, unk))
      [error] Schema context: (no schema component identifier) (no schema file location)(no data location)
      [error] Schema context: element.valLen. Location line 427 column 12 in file:/tmp/Functions.dfdl.xsd6087470375088588725.dfdl.xsd.
      [error]     at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:666)

      See test_valueLength_5 in:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section23/dfdl_functions/Functions.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section23/dfdl_expressions/TestDFDLExpressionsDebug.scala

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              efinnegan Elizabeth Finnegan
              Reporter:
              efinnegan Elizabeth Finnegan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks