SQL Server Error Msg 6851 – Column ‘%.*ls’ has invalid data type for attribute-centric XML serialization in FOR XML PATH.

In this blog post, let’s learn about the error message “6851 – Column ‘%.*ls’ has invalid data type for attribute-centric XML serialization in FOR XML PATH.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

6851 – Column ‘%.*ls’ has invalid data type for attribute-centric XML serialization in FOR XML PATH.

Reason for the Error

To be update soon…

Solution

To be update soon…