Python API is not able to generate a model for parsing xbrl

55 views
Skip to first unread message

Anand Singh

unread,
Jun 25, 2025, 1:28:05 PMJun 25
to Arelle-users
Hi Team,  thanks for the Arelle python package, it is amazing. I am however stuck on one thing. I am not able to read an xbrl file for Indian company.

runtime_options = RuntimeOptions(
entrypointFile=file_path, #My xbrl file from NSE Website
validate=False,
packageManifestName='/Users/xxxxhome/Taxonomy Integrated filing finance (IndAS)/META-INF/taxonomyPackage.xml', # https://nsearchives.nseindia.com/web/sites/default/files/inline-files/Taxonomy%20Integrated%20filing%20finance%20%28IndAS%29.zip
logFile='logToBuffer', # Capture logs in memory.
logFormat="[%(messageCode)s] %(message)s",
disablePersistentConfig=True
)

try:
with Session() as session:
session.run(runtime_options)
models = session.get_models()
model_xbrl = models[0] # Get the primary loaded model


Error: Arelle session did not produce a model for /Users/xxxhome/filings/3MINDIA/Integrated Filings/INTEGRATED_FILING_INDAS_1455634_28052025092643_WEB.xml. Check logs for errors.
No data could be parsed from the file. Exiting.

Can someone please help me on this, I will be very grateful.
Thanks

Aaron Cameron

unread,
Jun 25, 2025, 3:00:52 PMJun 25
to arelle...@googlegroups.com
Hi Anand,

"Arelle session did not produce a model" does not appear to be an error message that Arelle generates, nor do I see it in your code.
Would you be able to provide the full log output as well as any additional code for context?

Thanks,

Aaron

--

---
You received this message because you are subscribed to the Google Groups "Arelle-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arelle-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/arelle-users/b6b493ad-2c29-4cde-a00f-398f1d11d8e6n%40googlegroups.com.

Aaron Cameron

unread,
Jun 25, 2025, 6:00:30 PMJun 25
to Arelle-users
Actually, I just encountered this same issue while working on something else. I think adding `keepOpen=True` to the RuntimeOptions will give you the results you're looking for. 
It might make sense for us to make this a default value for the Session API. I'll bring it up for discussion with the team.

Message has been deleted

Anand Singh

unread,
Jun 26, 2025, 11:00:03 AMJun 26
to Arelle-users
Thanks so much Aaron, I was missing the Keep Open tag.

Also another problem I face is that Arelle I am giving the taxonomy zip file which has all the roles, ref end def, cal, pre files and META-INF and Core folders separately. But still it is expecting the xsd file in the home directory where my instance file is saved. How can I direct Arelled to look for instance file in the Taxonomy zip.

[IOerror] Could not load file from local filesystem. file: /Users/xxxxhome/filings/3MINDIA/Integrated Filings/in-capmkt-ent-2025-01-31.xsd

Kindly help. Thanks so much in advance

Reply all
Reply to author
Forward
0 new messages