[Solved] Runtime error in UNO af file 257

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
alan_m6
Posts: 5
Joined: Fri Dec 18, 2020 11:32 am

[Solved] Runtime error in UNO af file 257

Post by alan_m6 »

hi All,
I have a piece of code that is used to analyse text files produced from an oracle database. the files have exactly the same format and layout.

whilst using MS excel i can load thousands of files however i hit a limit of 257 files when using calc.
the reported error is as follows

ERROR: com.sun.star.uno.RuntimeException:

Does anyone have any idea what this error indicates?

regards

Alan
Last edited by Hagar Delest on Wed Dec 23, 2020 5:43 pm, edited 3 times in total.
Reason: tagged solved.
Alan
openoffice 4.1.8 on windows
User avatar
RoryOF
Moderator
Posts: 34761
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: runtime error in calc

Post by RoryOF »

There are "magic numbers" in computing, all powers of 2. One of these is 256, so an error at 257 suggests you have hit an inbuilt limit to the number of files.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
alan_m6
Posts: 5
Joined: Fri Dec 18, 2020 11:32 am

Re: runtime error in calc

Post by alan_m6 »

RoryOF wrote:There are "magic numbers" in computing, all powers of 2. One of these is 256, so an error at 257 suggests you have hit an inbuilt limit to the number of files.
Thanks for the reply. I hope that this is not the case. if so it seems to limit the functionality of calc severely.

regards

Alan
Alan
openoffice 4.1.8 on windows
John_Ha
Volunteer
Posts: 9584
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Runtime error in Calc

Post by John_Ha »

You may find LibreOffice has a higher limit.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
Hagar Delest
Moderator
Posts: 32824
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Runtime error in Calc

Post by Hagar Delest »

You may be limited by the max number of sheets that is 256 in AOO IIRC.
In LibreOffice, it's 10000.
LibreOffice 24.8 on Xubuntu 24.10 and 7.6.4.1 portable on Windows 10
alan_m6
Posts: 5
Joined: Fri Dec 18, 2020 11:32 am

Re: Runtime error in Calc

Post by alan_m6 »

Hagar Delest wrote:You may be limited by the max number of sheets that is 256 in AOO IIRC.
In LibreOffice, it's 10000.

ok, possibly that is the issue. Excel has more or less unlimited sheets.

ok then its a sad day for the venture away from MS office.

thanks for the help.
Alan
openoffice 4.1.8 on windows
User avatar
RoryOF
Moderator
Posts: 34761
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Runtime error in Calc

Post by RoryOF »

It may be that a spreadsheet is not the optimum tool to do your task. It might perhaps be better handled using customised reports from the originating database.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
alan_m6
Posts: 5
Joined: Fri Dec 18, 2020 11:32 am

Re: Runtime error in Calc

Post by alan_m6 »

RoryOF wrote:It may be that a spreadsheet is not the optimum tool to do your task. It might perhaps be better handled using customised reports from the originating database.
Oracle has 2 types of reporting tools, a free option or a high cost option which also requires a high cost version of the database. we talk in terms off £30k per core license for the database and then £11k per core option to report. the numbers dont add up.

looks like its excel for now then

thanks for the replies.
Alan
openoffice 4.1.8 on windows
User avatar
Hagar Delest
Moderator
Posts: 32824
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Runtime error in UNO af file 257

Post by Hagar Delest »

Have you tried LO?
Don't you know what does your code exactly? To check if it's a number of sheets issue or something else?
LibreOffice 24.8 on Xubuntu 24.10 and 7.6.4.1 portable on Windows 10
alan_m6
Posts: 5
Joined: Fri Dec 18, 2020 11:32 am

Re: Runtime error in UNO af file 257

Post by alan_m6 »

OK have installed LO and that works a treat, so it's bye bye OpenOffice

Regards

Alan
Alan
openoffice 4.1.8 on windows
Post Reply