Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.81 KB

mssqlserver-6602-database-engine-error.md

File metadata and controls

47 lines (36 loc) · 1.81 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic helpviewer_keywords
MSSQLSERVER_6602
MSSQLSERVER_6602
suresh-kandoth
sureshka
vencher, tejasaks, docast
12/25/2020
sql
supportability
reference
6602 (Database Engine error)

MSSQLSERVER_6602

[!INCLUDE SQL Server]

Details

Attribute Value
Product Name SQL Server
Event ID 6602
Event Source MSSQLSERVER
Component SQLEngine
Symbolic Name XMLERR_PARSEERR2
Message Text The error description is '%.*ls'.

Explanation

This error occurs when you try to execute a sp_xml_preparedocument stored procedure in [!INCLUDEssNoVersion] in which the content of the xmltext parameter is a complex XML document, An error message similar to the following is reported to the user

The XML parse error 0x80004005 occurred on line number 1, near the XML text "<XML document sample>"
Msg 6602, Level 16, State 2, Procedure sp_xml_preparedocument, Line 1
The error description is 'Unspecified error'.

Cause

This issue occurs because of a design limitation of the MSXML parser (Msxmlsql.dll) that [!INCLUDEssNoVersion] uses.

The issue is not strictly related to the size of the XML document but to its complex structure. A combination of the XML element's structure depth, the number and size of attributes, and the number of entities within attributes can cause this issue. However, the level of complexity that is required to reach this limit is found in XML documents that are several megabytes.

User action

To work around this issue, try to reduce the complexity of the XML document.

Note

Beware of very large single string attributes that contain many XML \ entities.