Skip to content

Reading sas file with long string variable results in "A row in the file was not the expected length" #245

@peiyaoli2

Description

@peiyaoli2

Hi! I have attached two files in the zip. One file contains a shortened version of the other file's string variable, and the shortened version does not give an error. The complete error message is:

ReadStat: Row #0 decompressed to -1 bytes (expected 32500 bytes)
ReadStat: Error parsing page 0, bytes 262144-524287
Error processing test_utf8_char_compression.sas7bdat: A row in the file was not the expected length

I guess this is more of a feature request to support longer variables if it's possible. I also feel like this may or may not be a bug relating to #236 (if the long string variable splits maybe that's why it returns READSTAT_ERROR_ROW_WIDTH_MISMATCH?)

Thanks!

string_length_sas.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