Aspose Note: Operation is not valid due to the current state of the object


#1

Seeing this exception for some files where the operation is not permitted. Attached is also the file that’s causing it.
com.aspose.note.system.exceptions.InvalidOperationException: Operation is not valid due to the current state of the object.
at com.aspose.note.internal.q.c(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.internal.eO.a(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.internal.eZ.a(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.internal.eZ.b(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.internal.eZ.a(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.internal.M.a(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.o.a(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.Document.a(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.Document.(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.Document.(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
at com.aspose.note.Document.(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]

Any help here would be greatly appreciated. I am unable to attach the file here. How do I provide it to support?

Thanks
Krishnan


#2

@keshi8086,

Please attach your sample file with us for further investigation at our end.


#3

Open Notebook (1).onetoc2_Us-Qua_bc33pv.zip (1.8 KB)

Please see the file above. Its a one2c file that we cannot extract.


#4

@kashif.iqbal - I have tested this with 18.3 version as well for java and still see the error.


#5

@keshi8086,

When we open this file using Microsoft OneNote, it shows “There aren’t any sections here”. Could you please confirm that are you getting the same behavior while opening this file using Microsoft OneNote? If no please send us the files again.