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

Index out of range #139

Open
pvmagacho-nde opened this issue Jul 9, 2024 · 1 comment
Open

Index out of range #139

pvmagacho-nde opened this issue Jul 9, 2024 · 1 comment

Comments

@pvmagacho-nde
Copy link
Contributor

XBRL document
These are the document links (Filing ID = 0001213900-23-084801):

Describe the bug
Index out of range.

@manusimidt
Copy link
Owner

The problem is that the Filer just has an error in the XBRL.

<ix:nonNumeric contextRef="c0" 
continuedAt="_DocumentPeriodEndDate-c0_cont_1"
format="ixt:date-monthname-day-year-en" 
name="dei:DocumentPeriodEndDate">September</ix:nonNumeric>

You can see that the filer clearly states that the format is date-monthname-day-year-en which means that py-xbrl expects to have a month, a day and a year (like "September, 15 2025"). However, the filer only provided a month which is why the error appears.

I agree that the error message could get some improvements (like "Invalid XBRL - The filer uses a format which is not compliant to the provided value") but apart from that I don't think there is much you can do.
Except to implement #84 and rather parse the document incorrectly / incompletely and just throw a warning

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

2 participants