I am getting this error message for one of the columns in my big table:

FOR XML could not serialize the data for node 'NAME' because it contains a character (0x001A) which is not allowed in XML. To retrieve this data using FOR XML, convert it to binary, varbinary or image data type and use the BINARY BASE64 directive.

The message is fairly clear: it is simply the case that some characters are not permitted in XML.
Character 0x001A is 26 decimal and this is a control character and if you have this in a column called NAME there is something spooky with your data, and there is reason to investigate this:
SELECT * FROM tbl WHERE charindex(NAME COLLATE Latin1_General_BIN2, char(26)) > 0
If you don't care, you can wrap the troublesome column replace:
replace(NAME NAME COLLATE Latin1_General_BIN2, char(26), '?')
The binary collation is required since char(26) is typically an undefined character in a Unicode non-binary collation and unexpected things happens.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • I am trying to install MasterCollection_CS6_LS16. When I click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation.

    I am trying to install MasterCollection_CS6_LS16. When I double click the install file I get this error message: We've encountered the following issues. Installation on case-sensitive volumes is not supported. Please choose a different volume for installation. What does that mean? How should I proceed?

    Hey iraravitz,
    Could you please let me know what version of OS are working on.
    You might receive this error when you attempt to install on a drive with the HFS+ Case Sensitive file system, which is not supported for installation of Adobe Creative Suite 6.
    So, please try installing on a drive that has been formatted with a supported file system.
    You might refer the KB doc link mentioned below for the same:
    Error "Case-sensitive drives not supported" or similar install error | Mac OS
    Let me know if this helps.
    Regards,
    Anubha

  • TS3988 I get a "Connection Error - iCloud encountered an error while trying to connect to the server" message; I have been getting this error message for months, on any device I try to login with.

    I get a "Connection Error - iCloud encountered an error while trying to connect to the server" message; I have been getting this error message for months, on any device I try to login with.

    Hi
    I am sorry can't help you because I have same problem when login to icloude.com and try insert to Contacts!
    Many times happen.
    what is issues ?

  • When I try to open iTunes, I get this error message: Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item. I get a different error message if I try to uninstall it.

    When I try to open iTunes, I get this error message: "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." I've been able to uninstall all Apple products except iTunes as I get this error message: "The Installer has insufficent privileges to modify this file: C:\Program Files\i Tunes\Acknowledgments.rtf." I've had the iTunes on my laptop for a year and a half with no problems until now.

    Any suggestions please?

  • Why do I get this error message: Application has requested the runtime to terminate?

    I get this error message: Application has requested the runtime to terminate in an unusual way.  The application won't open at all even after several tries and a reboot.

      Try making a direct desktop icon for the Editor and see if you can launch the program directly from the desktop.
    Right click anywhere on the desktop and select New >> Shortcut
    Browse to Computer OS C:
    And find the PSE Editor application in Program Files or Program Files (x86) on Windows 7 - 64 bit.
    C: >> Program Files >> Adobe >> Photoshop Elements 9
    Within the Photoshop elements 9 folder find PhotoshopElementsEditor.exe (with the blue icon)
    Select that file and click Next.
    Then click Finish.
      You should now be able to launch by double clicking on the new desktop icon, bypassing the welcome screen.

  • I have an IPOD classic with 80MB of music. reying to reinstall library from a new PC. it goes through the synch process but I get an error message for most of the content.  Library plays on the pc under Itunes fine?

    I have an IPOD classic with 80MB of music. I am trying to reinstall library from a new PC. it goes through the synch process but I get an error message for most of the content.  Library plays on the pc under Itunes fine?

    Disable the Convert higher bit rate songs to 128 kbps AAC option from under the iPod's Summary tab in iTunes and see if that helps.
    B-rock

  • Why am I getting this error message: Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk s

    I am getting this error message, just starting today: Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk space to copy the mailbox. I have tried several solutions (cleaning out my inbox, compacting folders, rebooting, checking through the webmail side), all to no avail, Can anyone help?

    which os do you have?

  • Been getting this "error" message for about a week

    Anyone know why I keep getting this message? Happens every time after I log in.
    "Error
    An error has occurred. We apologize for the inconvenience."
    There don't seem to be any consequences to this, I just continue on with no problems. Still, why do I always get that message

    You're welcome. Glad to help.
    Mahalo for the and Aloha from Big Island.

  • Getting an error message when one of the values in a formula is null

    Hi,
    I am using a query to generate report... my query looks like this:
    select     
    CUSTOMER_NAME,
    (sum(MILLAGE)*MILEAGE_RATE) as TOTAL_INVOICE,
    from     
         T_TIME_REPORTING
    where
    CUSTOMER_NAME = :P22_CUST_NAME
    group by
    CUSTOMER_NAME
    it's working fine when there is a valid value for MILLAGE and MILEAGE_RATE but giving an error message when anyone of them is null... please advice how to fix this issue
    Thanks in advance

    my query looks like this:
    select
    CUSTOMER_NAME,
    (sum(MILLAGE)*MILEAGE_RATE) as TOTAL_INVOICE,
    from
    T_TIME_REPORTING
    where
    CUSTOMER_NAME = :P22_CUST_NAME
    group by
    CUSTOMER_NAMEThat would not work even when all values are not null:
    select ename, sum (sal) * comm
        from emp
       where ename = 'ALLEN'
    group by ename
    Error at line 1
    ORA-00979: not a GROUP BY expression

  • When trying to back up my iPhone 4 I get this error message "ITunes cannot backup the iPhone because the backup is corrupt or not compatible with the iPhone." How can I fix this?

    This has been happening to me for months now and it's started to annoy me. I have Windows 7 installed and have seriously tried everything to fix this, deleting old back ups, cheacking my firewall, unintalling and reinstalling itunes, deleting pictures that may be corrupt. I just plugged my phone into a USB connected to my sisters MacBook and it backed up perfectly! Is this something wrong with my computer?

    Even if deleted all the backups shown in iTunes Preferences>Devices, check the actual backup folder on your computer to be sure there isn't one still there that needs to be deleted.  You will find them at one of the following locations:
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    Windows Vista/7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    Mac OS X: ~/Library/Application Support/MobileSync/Backup/

  • Im getting this error message telling me that the image buffers of size 28553 x 27787 @ 8bpc (3.0 GB

    I'm new to AE, but have been able to modify projects and this is the first time, I've gotten this type of error, so I don't know how to resolve it.
    I'm using an iMac, 27", 3.4 GHZ Intel Core i7, 16 GB memory, 1333 MHz DDR3, running, OS X 10.8.3. Thanks in advance.
    Jose.

    All the explanations you could wish for far and wide:
    http://myleniumerrors.com/?s=7+%3A%3A+66&submit=Search
    If you can't resolve the issue, we need info about your project. This error has nothing to do with the memory settings, it's a "bad" footage, an effect going haywire or an unsuitable output format, none of which we know anything about.
    Mylenium

  • I'm getting this error message for iMessage

    "Unable to register because address is already in use". I'm somewhat of an apple novice, so go slowly! Just bought iPad mini on Friday!

    EliseDunzo wrote:
    Yes thank you, I have an apple ID, and I tried the messages set up. I'm sure overdone something silly to cause this conflict but I have no idea what to do....should I go the apple store this afternoon?
    Yes, let the Apple genius look at it. Should be easy to fix.

  • Getting this error message after installing and clicking getting started

    I have been getting this error message when i click the Getting Started option for oracle
    "Windows cannot find 'http://127.0.0.1:%HTTPPORT%/apex/f?p=4950'. Make sure you typed the name correctly, and then try again."
    any ideas on what to do about this?

    Obvious thing to do is to correct Get_Started url shortcut.
    If you had searched the forum, you'd found previous threads and solutions to go, e.g.:
    {thread:id=2279339}
    {thread:id=2277895}

  • I keep getting this error message from my iCal

    "The server did not recognize your user name or password for account... Make sure you enter them correctly".  Yet when I check my mobile me account it says my login and password are correct. How do I get my iCal in sync with everything else (so the icon will stop jumping up and down!) ?
    thx

    I'm also getting this error message for a gmail account that I have a calendar for.  The only option is to click on on the error message box and this closes iCal .
    I'm happy to delete all the calendars in my iCal and start again.  Is there a way to do this via a back door? 
    I have tried deleting the following:
    USERNAME/Library/Preferences/com.apple.iCal.plist
    USERNAME/Library/Caches/Metadata/iCal/
    and the caldav calendars in the following folder:
    USERNAME/Library/Calendars/
    should I try and remove the "Calendar Cache" in this folder and all the other .calendar files?
    Or is there a tool I can download that will interface with iCal to actually remove calendars?
    Any suggestions would help...
    Thanks!

  • I keep getting this error message

    I keep getting this error message since I updated the OS -
    "Update Unavailable with This Apple ID"

    Move them out of the Applications folder(you may need to temporarily put them in the Trash), go to the individual product pages, and try downloading them. If you get prompted to buy them, choose not to, click here, and contact Apple.
    (116029)

Maybe you are looking for