Skip to content

group_length is larger than size of contained fields error when transforming MRO tableΒ #91

Description

@jordanpadams

Checked for duplicates

Yes - I've already checked

πŸ› Describe the bug

When I tried transforming the table, I get an error:

ERROR: GroupFieldCharacter attribute group_length is larger than size of contained fields: 16905 > 16800.

πŸ•΅οΈ Expected behavior

I expected the .tab to be transformed into a CSV

πŸ“œ To Reproduce

$ transform-1.14.0-SNAPSHOT/bin/transform -f csv -o tmp/ --target ~/Downloads/20250428/archive/2022122608_DDR.LBL  -n 1 -I ~/Downloads/20250428/archive/

INFO:   [file:/Users/jpadams/Downloads/20250428/archive/2022122608_DDR.LBL] Transforming label file: file:/Users/jpadams/Downloads/20250428/archive/2022122608_DDR.LBL
INFO:   [PDS3Label:setMappings] ParserType: PRODUCT_TOOLS
INFO:   [Generator:generate] New PDS4 Label: /Users/jpadams/proj/pds/pdsen/workspace/transform/tmp/2022122608_ddr.xml
INFO:   [file:/Users/jpadams/Downloads/20250428/archive/2022122608_DDR.LBL] Finished transforming PDS3 label 'file:/Users/jpadams/Downloads/20250428/archive/2022122608_DDR.LBL' to a PDS4 label 'tmp/2022122608_ddr.xml'
ERROR:   [ObjectAccess:getProduct] Failed to load the product from the label.
ERROR:   [tmp/2022122608_ddr.xml] Error occurred while transforming table: Error occurred while parsing label 'file:/Users/jpadams/proj/pds/pdsen/workspace/transform/tmp/2022122608_ddr.xml': Unable to parse the product label
ERROR:   [file:/Users/jpadams/Downloads/20250428/archive/2022122608_DDR.LBL] Unsuccessful table transformation. Check transformed PDS4 label for possible errors.

$ ~/test/validate-3.6.3/bin/validate --skip-content-validation tmp/2022122608_ddr.xml

...
      ERROR  [error.label.table_definition_problem]   line 1: Data Object #1 (TABLE): ERROR: GroupFieldCharacter attribute group_length is larger than size of contained fields: 16905 > 16800.
        1 product validation(s) completed
...

πŸ–₯ Environment Info

Windows

πŸ“š Version of Software Used

1.13.2

🩺 Test Data / Additional context

archive.zip

πŸ¦„ Related requirements

βš™οΈ Engineering Details

This works just fine trying to read this data with PDR:

import pdr
data = pdr.read(β€˜2022122608_ddr.lbl’)
data.TABLE.to_csv('/Users/jpadams/Downloads/20250428/archive/2022122608_DDR.csv')

πŸŽ‰ Integration & Test

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions