Resolve System.Xml.XmlException: The 'X' character, hexadecimal value 0xXX, cannot be included in a name. when importing a file into SendSuite Live
Learn how to resolve a failed transaction when importing a file into SendSuite Live with an error of "System.Xml.XmlException: The 'X' character, hexadecimal value 0xXX, cannot be included in a name. Line X, position X."
Products affected: SendSuite® Live
Issue
Attempting to process an imported file in SendSuite® Live results in an error such as:
Note: There are several characters that may generate this message. The error message for each will specify a different character, hexadecimal value, and line and position numbers. In this example, the illegal character is the < character.
"System.Xml.XmlException: The '<' character, hexadecimal value 0x3C, cannot be included in a name. Line 2, position 1488."
Note: There are several characters that may generate this message. The error message for each will specify a different character, hexadecimal value, and line and position numbers. In this example, the illegal character is the < character.
Cause
An illegal character is present in the data file.
Resolution
To resolve this issue:
- Open the data file being imported.
- Locate the illegal character(s). If the line and position are not helpful, use Ctrl+f to search for the character.
- Remove the illegal characters.
- Save and close the file.
- Import the file again.
UPDATED: August 14, 2021