-
Notifications
You must be signed in to change notification settings - Fork 60
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
[BUG] getUsedScalesMap fails on reports with missing taxonomy definitions #435
Comments
Workiva is actively interested in continuing to support these cases. It is very often the case that users want to use the iXBRL viewer on their work-in-progress documents, which might be partially/invalidly tagged. |
Understood - and there's already quite a lot of code in the viewer to cope with viewing invalid documents for this reason. I've raised a separate issue (#474) to track what, if anything, we do on this more general issue, so that this one can deal with the |
Agreed - I've confirmed that it also fixes this, but have added some more tests as this was triggering the problem via a different route. |
What happened?
If you open a report containing numeric concepts that are missing taxonomy definitions (e.g. because the relevant taxonomy file could not be found), then you get an error on loading the document:
The search controls are stuck with the "Please wait - building index..." mask.
The problem is that we don't include the units for these facts in the JSON, because, without the type information we don't know that they're numeric.
getUsedScalesMap
reasonably enough assumes that if they have a scale, that they're numeric and callsgetScaleLabel
which fails because it can't find the unit.Obviously there are some simple fixes for this specific issue, but I do have a general concern with the approach of continuing in the face of serious XBRL validity errors, as even with this bug fixed, there will be lots of things that don't work in the viewer. I think that Arelle should make it much more obvious when you're working with a report that is not valid according to the specifications, as currently, serious validity errors are mixed in with messages relating to business-level errors from formula rules.
Version
1.1.76-dev
With which browsers are you experiencing the bug?
Chrome
Documents
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: