Reference not set

Jun 2, 2016 at 12:50 PM
Hi,

when trying to load any xbrl document (germany HGB taxonomie) within powershell, I'm getting an exception "object reference not set to an instance of an object".

For example when calling $XbrlDoc.Load($DocumentLocation) on this one:

Add-Type -Path "C:\temp\JeffFerguson.Gepsio.dll"

$XbrlDoc = New-Object -TypeName JeffFerguson.Gepsio.XbrlDocument
$DocumentLocation = "C:\temp\test.xbrl"

Write-Host "Loading and validating" $DocumentLocation"..."

$XbrlDoc.Load($DocumentLocation)

foreach($CurrentFragment in $XbrlDoc.XbrlFragments)
{
Write-Host $CurrentFragment.Facts.Count "facts in fragment."
Write-Host $CurrentFragment.Units.Count "units in fragment."
Write-Host $CurrentFragment.Contexts.Count "contexts in fragment."
}


Any Idea?

best regards,
Jun 2, 2016 at 1:35 PM
Can you attach the test.xbrl document and any ancillary documents, like schemas and linkbases, so that I can take a look at what might be going on? Thank you!
Jun 2, 2016 at 1:44 PM
here you'll find the test.xbrl and all the additional files:
http://expirebox.com/download/d704df090a69781ab4cd940ecb13b294.html
Jun 2, 2016 at 1:48 PM
Thank you! The first thing I noticed is that the XBRL file is in one place in the ZIP file but the schemas are in another folder called "files". Is this the way they are found at runtime, or are they all in the same folder at runtime?
Jun 2, 2016 at 1:51 PM
At runtime, they are in the same folder.