Aspose throwing exception “Object reference not set to an instance of an object.” while adding to AppendDocument method
@uttamvs Could you please attach your problematic documents here for testing and provide code that will allow us to reproduce the problem? We will check the issue and provide you more information.
It has some PHI data so I can not share the document. I tried to remove the data to send this out but after removing PHI information it’s working as expected. Can you suggest any other way for this?
Also how we can find the root cause of the issue? As the Aspose is returning the generic error message and which is not helpful for us. Is there any way to find the root cause of it? or do you know any similar incident?
We are uploading the PDF files that has images and complex table structure and that is converting to docx. After conversion we are merging two docx document.
This feature is working with normal documents so I am not sure what is wrong with complex table and structure.
@uttamvs Unfortunately, it is impossible to tell what causes the problem without the problematic documents.
Please note, it is safe to attach documents in the forum. Only you as a topic starter and Aspose staff can access the attachment.
I am not allowed to share PHI data on internet. It would be violation. Please suggest me any other way?
@uttamvs I am afraid, it is impossible to analyze the problem without the problematic documents. The obfuscated stack trace also does not allow to analyze it. Most likely there is some problem with the document, since, as you have mentioned, after editing and saving document the problem disappears.
Usually it is possible to simplify the DOCX document by editing it’s internal XML representation. But you should be careful since such manipulation can damage the document.