Structured Document Tag RemoveSelfOnly is NOT keeping field ref

The method RemoveSelfOnly() in Sdt(Structured Document Tag) does not keep field references.
Please test it with attached document.
https://reference.aspose.com/words/net/aspose.words.markup/structureddocumenttag/removeselfonly/#structureddocumenttagremoveselfonly-method

Reference.docx (31.3 KB)

@Tensis_Group_PTY I was unable to reproduce the problem you mentioned. StructuredDocumentTag is removed REF remains.
screen.png (67.0 KB)
What version of Aspose.Words are you using?

We updated the library to the latest stable version(22.6.0) and issue is gone.

1 Like

@Tensis_Group_PTY We’re glad the issue has been resolved. Feel free to ask any additional questions.