Troubleshooting error "Entity name must immediately follow in the entity reference"Description Symptoms Error: Entity name must immediately follow in the entity reference.An expected value appears in the user interface (UI).Imports are not working correctly.Web services are failing. CauseThis error is generated by records that the reports in the dashboard widget are trying to access containing special characters: An unexpected character has been detected by the application (for example '&')A special character that should be XML escapedInvalid syntax in an XML envelopeCorrupted XML where a certain character is being added to places where it is not expected (for example the ` character in an attribute)ResolutionXML documents consist entirely of characters from the Unicode repertory. Except for a small number of specifically excluded control characters, any character defined by Unicode may appear within the content of an XML document. XML provides escape facilities to identify the encoding of the Unicode characters that make up the document, and for expressing characters that, for one reason or another, cannot be used directly. The error indicates there is an unescaped character in the code. The most commonly used character that can produce this error is the ampersand "&". If the parser encounters a "&", it expects an entity reference since this character is used to mark the start of an entity reference within XML. For information about XML syntax, see XML Characters and Escaping. The following steps are based on a case where the error appearing in the application navigator is caused by the "&" character found in the Arguments field [sys_app_module.query] of a module with From HTML as the link type. To verify an XML character has properly escaped: Identify where the source XML is coming from and determine why the invalid XML is being generated. For this example, the invalid XML is generated in a Module record.Navigate to System Definition > Modules.Search for and select the module name that is not functioning properly and inspect the payload for the invalid character.Remove the ampersand or use the built in entity &. For information about XML syntax, see XML Characters and Escaping.Save the changes made to the record.Additional InformationTroubleshooting Error: Entity name must immediately follow the in the entity referenceTroubleshooting a missing buttonTroubleshooting a button that does not workTroubleshooting invalid or duplicate entries in the Activity Formatter Parsing XMLGuide to the W3C XML Specification