Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occur when record's REC_LEN does not match the total length of fields in this record #27

Open
showjim opened this issue Feb 7, 2021 · 0 comments

Comments

@showjim
Copy link

showjim commented Feb 7, 2021

I have some STDF files that REC_LEN of a record greater than the total length of fields in this record. This would lead to error when parse the first field of next record. After debugging, I found the cause, then I change the function parse_records in IO module like below:
Screen Shot 2021-02-07 at 7 01 45 PM
I read the whole bytes stream in this record, then process the parse work just with it, and restore at the end. By applying this, I can walk-around this kind of error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant