Skip to content

Check Blocking XML Errors #10

@amtwo

Description

@amtwo

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)'
     );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions