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

Parsing a valid XBRL is giving an error #27

Open
VineetMore opened this issue May 28, 2019 · 6 comments
Open

Parsing a valid XBRL is giving an error #27

VineetMore opened this issue May 28, 2019 · 6 comments
Labels
investigation needed Investigation needed.

Comments

@VineetMore
Copy link

Hi,

While parsing a valid XBRL I am getting a below mentioned error for :

Footnotes references a location of TradePayables_I20150331 but none of the facts uses that ID.

Can you please guide me on this on how to debug it via GEPSIO?

@JeffFerguson
Copy link
Owner

Hello -- One of two things is happening here:

  1. An error with the authoring of the document itself, where the author added a footnote to a fact that doesn't exist in the document.
  2. Gepsio is not correctly finding the fact for the footnote.

I'd like to take a look at the source XBRL that you're loading so that I can see what is going on. Do you have the URL to the source XBRL that you are loading?

@VineetMore
Copy link
Author

Hi Jeff,

I do not have a URL but if needed I can send you the XBRL in email if it is not a problem for you.

I am not able to load the XBRL as it is throwing me an error. Please find below the link for the screenshot: http://prntscr.com/nuspkm

The reason for the same is it is not able to load the schema because of which the below mentioned line throws the error:

this.Type = thisSchema.GetXmlSchemaType(ItemTypeValue);

Now after checking further I found that the error is because of the below mentioned function and line:

private void GetSchemaElementFromSchema()
{
thisSchema = thisParentFragment.Schemas.GetSchemaFromTargetNamespace(this.Namespace);

This line checks for the namespace in the schemalist and it is not there it is making schema as null.

public XbrlSchema GetSchemaFromTargetNamespace(string targetNamespace)
{
foreach (var CurrentSchema in SchemaList)
{
if(CurrentSchema.TargetNamespace.Equals(targetNamespace) == true)
return CurrentSchema;
}
return null;
}

When above code is being executed, my schemalist does not have the required namespace which is why it is failing.

Now my question is all the schema should already be added to the schemalist but when I execute the code I find that only one schema is being added. I am confused and not able to understand how it is happening.

Can you please guide me for the same?

@JeffFerguson
Copy link
Owner

I'd love to see the source XBRL. Can you ZIP it up and attach it to this issue thread?

@VineetMore
Copy link
Author

Hi Jeff,

I found the issue was because of the XSD being hosted in URL which is giving 404 error. After using latest version of the code this issue is being resolved but still there are errors.

I am attaching the XBRL for your reference and the full taxonomy.

Final_CNI_Taxonomy-2016-03-31.zip

L23109WB1973GOI028844_consolidated_FS_2016.zip

Still I see it is facing some validation errors which should not be the ideal case.

@JeffFerguson
Copy link
Owner

Thanks very much! I'll take a look at your attachments.

@JeffFerguson JeffFerguson added the investigation needed Investigation needed. label May 31, 2019
cjundt added a commit to cjundt/gepsio that referenced this issue Oct 29, 2019
@cjundt
Copy link
Contributor

cjundt commented Oct 29, 2019

Fixed in pull request #33.

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

No branches or pull requests

3 participants