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

Elements missing after parsing #126

Closed
BenGraWarBuf opened this issue Feb 25, 2024 · 3 comments
Closed

Elements missing after parsing #126

BenGraWarBuf opened this issue Feb 25, 2024 · 3 comments
Assignees

Comments

@BenGraWarBuf
Copy link

BenGraWarBuf commented Feb 25, 2024

for example in the following instance file:
https://www.sec.gov/Archives/edgar/data/101199/000010119921000053/ufcs-20210331_htm.xml
the element:
<ufcs:AccruedExpensesAndOtherLiabilities contextRef="i078c96718789432b87b0dd0047972763_I20210331" decimals="-3" id="id3VybDovL2RvY3MudjEvZG9jOjRkYjFiMDhlMDY0MjQ4ZWFhMjg2YmExNGNjNmNlNDIyL3NlYzo0ZGIxYjA4ZTA2NDI0OGVhYTI4NmJhMTRjYzZjZTQyMl8xOS9mcmFnOjcxMmIyMDRhNDNjNzRhOGVhMjFkYmI4ZGRhOTgwYzFmL3RhYmxlOmNiNGMyODA5YTU3YjQ5YzRhODNiMzkyYWU2MTZiMjU0L3RhYmxlcmFuZ2U6Y2I0YzI4MDlhNTdiNDljNGE4M2IzOTJhZTYxNmIyNTRfMzEtMS0xLTEtMA_ff86ac9b-8da8-4873-b7eb-5f603fa37a3c" unitRef="usd">92401000</ufcs:AccruedExpensesAndOtherLiabilities>
is missing after parsing
this is the index page for reference:
https://www.sec.gov/Archives/edgar/data/101199/000010119921000053/0000101199-21-000053-index.htm

is not clear to me why the namespace ufcs is not being picked up.
any idea why this could be?

@manusimidt manusimidt self-assigned this Feb 26, 2024
@manusimidt
Copy link
Owner

This is a funny one! Thanks for posting! I really wonder why this has not been discovered before 😄

Background: When parsing facts in XBRL I loop over all XML elements. In order to exclude XBRL contexts, units and schema references I have the following if condition there:
image

Since the company filing the document is called "unitedfiregroup" it has the phrase "unit" in the full XML tag and thus py-xbrl skips all facts filed by this company because it thinks that these facts are units and not facts.

@manusimidt
Copy link
Owner

@BenGraWarBuf should be fixed in V 2.2.11 :)

@BenGraWarBuf
Copy link
Author

Wow! your are a Rockstar my friend that was lightning fast.

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