Loading

"Error Code: 621E4DE8 The content of elements must consist of well-formed character data or markup." Occurs When Using Comparison Operator "<" in CustomSQL Connection to Salesforce

Publiseringsdato: Nov 18, 2025
Beskrivelse
When running custom queries with the "<" symbol to Salesforce, an error with below message may occur:
 
An unknown error related to remote content was detected (500)
Error Code: 621E4DE8
The content of elements must consist of well-formed character data or markup.

User-added image

Cause

There may be a problem on the Salesforce side that prevents the query from being interpreted correctly.
The above error message is what you see when an error occurs in XML parsing.
In XML, "<" means the beginning of a tag, so if "<" appears in a query, it can cause an error.

 
Løsning
In this case, it is able to solve the problem by escaping "<" like "&lt;".
For example, if the query above was modified, it will look like this:
SELECT CreatedDate FROM Case WHERE CreatedDate &lt; 2023-09-01T00:00:00Z

if <= required, use &lt;= not &le; 

Knowledge-artikkelnummer

001497852

 
Laster
Salesforce Help | Article