Hello,
We tried to create an application to parse a OneNote file for one of our customers.
We are faced with the situation that the latest version of Aspose.Note failed on an attempt to read a OneNote file.
The error is the next:
Aspose.Note.IncorrectDocumentStructureException: Expected ObjectDataBlobDeclaration element is missed
at .()
at .( , , )
at .()
at .()
at .()
at .()
at .(Stream )
at .(Stream )
at .(Stream , String )
at .(Stream , String , Boolean )
at .(Stream , Document , LoadOptions )
at Aspose.Note.Document.(Stream , LoadOptions )
at Aspose.Note.Document…ctor(Stream inStream, LoadOptions loadOptions)
at Aspose.Note.Document…ctor(Stream inStream)
Unfortunately, we cannot provide the file due to restrictions from he customer.
But when we tried to open this file in OneNote Desctop we see the following messages for a some pages:
image.png (38.3 KB)
Best Regards,
Henadz Linevich
@Henadz74,
Thanks for the details and screenshot.
We are sorry but without a sample OneNote file, we might not evaluate your issue precisely. Please zip and attach your OneNote file to reproduce the issue on our end. We will analyse your issue soon. If you have reservation with your confidential data, you may replace with dummy data in the file, resave the file and provide us.
@amjad.sahi
Unfortunately, there is no ability to edit the customer file.
We have a similar file with one page that failed when Aspose Note tried to parse it.
The exception is not the same, but I hope it will be useful to investigate the initial issue.
I think that the structure of not synchronized pages is broken for some reason, but the OneNote application can open it and skip the broken pages.
@Henadz74,
Thanks for the sample OneNote file.
I did test your scenario/case using latest version/fix, Aspose.Note for .NET v23.12 and it works fine, it can read the file fine. Here is the line of code that I am using:
Aspose.Note.Document document = new Aspose.Note.Document("g:\\test2\\New Section 1.one");
Please try latest version of the API with your original file and let us know if you still find the issue.
Hello @amjad.sahi
I verified the latest Aspose Note API version with the original file and it did not work.
I got the same error as provided in the initial post.
However, an error in our sample section was fixed.
Probably, developers will be able to analyze the codebase and check places where ObjectDataBlobDeclaration is raised.
@Henadz74,
It is nice to know you have sorted out your issue now.
Alright, the developers will be looking into the codebase. We will get back to you once we have an update on it.
As I know we should have paid support.
What would you suggest moving forward?
Any suggestions or actions that we could take on our side to clarify the situation?
@Andrei86,
You can use Paid Support Services if you need support your issue on a priority basis, along with the direct access to our Paid Support management team. You may log in with your paid account ID and then create a thread there. However, without a sample document to reproduce the issue on our end, we may not be able to evaluate your issue precisely and therefore might not figure it out.