dba-database icon indicating copy to clipboard operation
dba-database copied to clipboard

Check Blocking XML Errors

Open amtwo opened this issue 4 years ago • 1 comments

Check_Blocking throws this error occasionally:

Msg 9420, Level 16, State 1, Procedure Check_Blocking, Line 339 
[Batch Start Line 0] XML parsing: line 1, character 369, illegal xml character 

This may be related to this XML parsing issue. In which case, adding some explicit aliasing as text should solve it? Maybe?

Something like this:

 SELECT
   x = 
   (
       SELECT 
           [text()] = 
               http://b.Name
       FROM dbo.Badges AS b
       WHERE http://b.Id = 100564
       FOR XML 
           PATH(''),
           TYPE
   ).value
     (
         './text()[1]', 
         'nvarchar(max)'
     );

amtwo avatar Jun 22 '21 16:06 amtwo

I got this too

Msg 9420, Level 16, State 1, Procedure Check_Blocking, Line 373 [Batch Start Line 2] XML parsing: line 1, character 366, illegal xml character

stevepmo avatar May 10 '24 09:05 stevepmo