Skip to content

Error reading SAS data set row with many numeric variables and character compression #253

@mnizol

Description

@mnizol

When reading a certain SAS data set using pyreadstat.read_sas7bdat(), which uses ReadStat v1.1.7, I get the following error:

"A row in the file was not the expected length."

The data set in question uses character compression. This may be related to the closed issue #35.

I was able to narrow down the problem to a specific row, which I've attached below after obfuscating variable names and contents (the obfuscated version of the row copied below still exhibits the error).

compression_bug.sas7bdat.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions