Skip to content

"Invalid sort byte in header" #31

@codelean666

Description

@codelean666

I'm trying to insert a row, but it is not inserted at the end. Also, the properties of the database change and when I try to restore it through Paradox Data Editor, the error “Invalid sort byte in header” appears.

Code:

from pypxlib import Table
from datetime import datetime

i = ['2024-07-22', '05:35:00', 0, 'REVOLVER', 'BULOW', '']

table = Table("C:\\Users\\codelean\\PycharmProjects\\MegaDobivatel\\AdvAddHard.db")
table.insert((datetime.strptime(i[0], '%Y-%m-%d'), datetime.strptime(i[1], '%H:%M:%S').time(), int(i[2]), i[3], i[4], i[5]))
table.close()

Error in Paradox Data Editor:
Error

Properties before insert:
BeforeInsert

Properties after insert:
AfterInsert

DB:
AdvAddHard.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions