SQL Server Error Msg 6816 – In the FOR XML EXPLICIT clause, ID, IDREF, IDREFS, NMTOKEN, and NMTOKENS attributes cannot be generated as CDATA, XML, or XMLTEXT in ‘%.*ls’.

In this blog post, let’s learn about the error message “6816 – In the FOR XML EXPLICIT clause, ID, IDREF, IDREFS, NMTOKEN, and NMTOKENS attributes cannot be generated as CDATA, XML, or XMLTEXT in ‘%.*ls’.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

6816 – In the FOR XML EXPLICIT clause, ID, IDREF, IDREFS, NMTOKEN, and NMTOKENS attributes cannot be generated as CDATA, XML, or XMLTEXT in ‘%.*ls’.

Reason for the Error

To be update soon…

Solution

To be update soon…