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

valueLength fails with complex type during parsing

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 2.0.0
    • Front End
    • None

      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

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

                Created:
                Updated:
                Resolved: