We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Receiving errors for different file types and content

Hi


I am seeing issues with being able to extract text from some one note files with the following error:

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #333333; -webkit-text-stroke: #333333} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Helvetica Neue'; color: #333333; -webkit-text-stroke: #333333; background-color: #ffffff} span.s1 {font-kerning: none; background-color: #ffffff} span.s2 {font-kerning: none}

com.aspose.note.system.exceptions.InvalidOperationException: Operation is not valid due to the current state of the object.

at com.aspose.note.internal.o.c(Unknown Source) ~[:?]

at com.aspose.note.internal.eB.a(Unknown Source) ~[:?]

at com.aspose.note.internal.eL.a(Unknown Source) ~[:?]

at com.aspose.note.internal.eL.b(Unknown Source) ~[:?]

at com.aspose.note.internal.eL.a(Unknown Source) ~[:?]

at com.aspose.note.internal.F.a(Unknown Source) ~[:?]

at com.aspose.note.k.a(Unknown Source) ~[:?]

at com.aspose.note.Document.a(Unknown Source) ~[:?]

at com.aspose.note.Document.(Unknown Source) ~[:?]

at com.aspose.note.Document.(Unknown Source) ~[:?]

at com.aspose.note.Document.(Unknown Source) ~[:?]



Do you know under what circumstances this error is generated?



Update:

We are also seeing things like these .... Please find a sample file attached that is causing the issue on Text Extraction.


The way am doing the extraction:


if(!AsposeLicenseConfig.getInstance().licensed()) {
logger.info("Aspose license is not active");
} else {
logger.info("Aspose license is active");
}
Document doc = new Document(tis);
fos.write(doc.getText().getBytes());
fos.flush();

com.aspose.note.system.exceptions.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
        at com.aspose.note.system.collections.BitArray.get(Unknown Source) ~[office365-1.0-SNAPSHOT.jar:?]
        at com.aspose.note.internal.g.a(Unknown Source) ~[?]
        at com.aspose.note.internal.g.e(Unknown Source) ~[:?]
        at com.aspose.note.internal.aD.g(Unknown Source) ~[:?]
        at com.aspose.note.internal.et.h(Unknown Source) ~[:?]
        at com.aspose.note.internal.et.c(Unknown Source) ~[:?]
        at com.aspose.note.internal.et.b(Unknown Source) ~[:?]
        at com.aspose.note.internal.fl.a(Unknown Source) ~[?]
        at com.aspose.note.internal.dK.a(Unknown Source) ~[?]
        at

Thanks,

Keshi87

Hi,

Thank you for contacting Aspose support team.

We are unable to observe this exception with our own OneNote files. Can you please share your sample input files and sample code that you are using to extract text from these documents. We’ll analyze your shared input files to investigate the issue further and assist you accordingly.