Closed pawelpopra closed 3 years ago
I had the same error, but I didn't know it was related to the size of the report until I read your post.
My workaround (not the best solution, I know, but it fixes the problem until they release an official fix) was to manually modify the report.py file, changing the following line:
Line 221: if self.parallel and it_total > 1:
To
Line 221: if it_total > 1:
I had the same error, but I didn't know it was related to the size of the report until I read your post.
My workaround (not the best solution, I know, but it fixes the problem until they release an official fix) was to manually modify the report.py file, changing the following line:
Line 221: if self.parallel and it_total > 1:
ToLine 221: if it_total > 1:
Hmm this unfortunately does not work for me :( how much rows are you extracting with the fix? Did you change anything else in mstrio-py, like limit in to_dataframe, or parallel=True/False?
I did a test extracting 9688 rows and everything worked well. If I can I will create a report with more rows to see if it still works
Unfortunately I am still having trouble with this, I am trying to download report with few million of rows and it only work if I do it part by part (100k each) I do it over the loop by dateperiod, which gives me around 100k results in one go, but it is very time consuming...
Thanks for letting us know. Seems like a bug, expect a fix next release.
Meanwhile try to set the missing parallel attribute manually:
my_report.parallel = False
before running the to_dataframe()
method
This has been fixed and new version of mstrio-py is available on PyPi as of today, and will be available here on github tomorrow.
Hello! I am having issue with mstrio-py library when I downloaded it in my company - long story short I am able to connect to my company's microstrategy server - I can fetch small reports (<10 pages in MS), but when I try to fetch big reports (even 300 pages, where total in MS is around 77k) I receive an error.
Is it possible that my company blocks the connection after let's say few seconds, so that big reports cannot be fetch, or there could be another issue?
To be honest downloading data for report with 20 pages, should as well take 2s, not sure why my code only works for reports with around less 10 pages.
I am attaching my code and an error, thank you very much for help.
and error which I receive is: