This issue has been discussed repeatedly here in the past, but not really explained in depth:
- https://forums.autodesk.com/t5/revit-api-forum/how-get-correct-text-of-independent-tag/m-p/9161393
- https://forums.autodesk.com/t5/revit-api-forum/how-to-check-if-the-text-of-an-independenttag-is-question-mark/m-p/9034117
- https://forums.autodesk.com/t5/revit-api-forum/material-tags-show-question-marks-amp-empty-tagtext/m-p/9716556
- https://forums.autodesk.com/t5/revit-api-forum/find-unhosted-tags/m-p/9049794
Apparently, there can be several different causes and it is important to understand from an end use point of view first.
I searched the Internet for 'revit material tag question mark':
https://duckduckgo.com/?q=revit+material+tag+question+mark
That returns a number of useful explanations:
This knowledgebase article explains some reasons and how to handle them:
Here is a real-world discussion that explains various additional aspects and problems that may arise:
I hope this helps.
Best regards,
Jeremy