Re-occurance of the 'Error! No document variable supplied'

Hello,

There appears to be a regression between Aspose.Words 19.8 and 19.9 (also affecting subsequent versions) where DocVariable fields are showing as ‘Error! No document variable supplied’ when the value of the document variable is an empty string (orginally raised by someone else here: Document Variables (Error! No document variable supplied) which was reported to be fixed)

I have confirmed that in 19.8 this behavior does not appear, but in 19.9 it does. This is without changes to my code base. Please note that given the large and commercial nature of our application I am not able to provide an example solution, however as I have narrowed it down to the changes between these two minor builds it is my hope that you will be able to identify the issue quickly.

Thank you,

Stan

This might be related to the changes to WORDSNET-18909 as listed in the 19.9 release notes; however there is no further information as you have not listed it in the API incompatability changes.

Please can you confirm what ‘WORDSNET-18909’ was meant to do, and whether this is causing my issue. If this is now expected behavior please can you clarify why this change was necessary, as the change is causing me an issue.

@modern.gov

We suggest you please use the latest version of Aspose.Words for .NET 20.10. Hope this helps you.

If you still face problem, we need following resources here for testing.

  • Your input Word document.
  • Please attach the output file that shows the undesired behavior.
  • Please attach the expected output file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Tahir,

I am using the latest 20.10, the issue persists. I mention 19.8 and 19.9 because these are the versions between which the issue arose.

Please can you address my question as to what WORDSNET-18909 was to do, as the release notes do not give any information and I cannot find the details on the ticket.

The automatic request from Aspose for a ‘sample project’ from clients before you will help is very vexing, I have identified an error, or at minimum a change in behavior that is not documented in your release notes, between two versions of your software without changing my code; and even identified a work item I suspect may have lead to it. Surely this is a reasonable level of investment by me to get someone your end to look at the matter? Why do I need to demonstrate the problem before you will look at it further?

@modern.gov

When DOCX is saved to PDF using Aspose.Words, the DOCVARIABLE fields in the header become empty. However, MS Word updates the fields with “Error! No document variable supplied.”.

Now, the expected output in PDF document is “Error! No document variable supplied.”. MS Word does the same.

If your output document has this message, this is expected behavior of Aspose.Words and MS Word.