0

I have created a fairly large procedure importing thousands of xml files. The procedure runs smoothly until I hit a file that contains an illegal xml character. This character appears to resemble the female symbol.I was unable to paste it to the body of this question.

Below is my basic code to read an xml file. When the specific file is run, I get:

Msg 9420, lvl 16, state 1, line 5. XML parsing: line 1800, character 150, illegal xml character. Encoding is in ANSI


Declare @xml xml
select @xml = T
from OPENROWSET (BULK 'C:\Path', SINGLE_BLOB as Transactions (T)

Again the code wont read the file. Has anyone ever experienced this symbol and how can it be systematically erased/replaced?

Drew S
  • 21
  • 4

0 Answers0