Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Upon using Editable Subgrids, I'm getting an HTML error above the grid "xmlParseEntityRef: no name"

Posted on by 5

Using Version 1612 (9.0.3.7) (DB 9.0.3.7) on-premises

On a form on a custom entity with a relation to another entity I can use read only grids and it shows the data and I'm having no problems here. However as soon as I change the Controls to be Editable Grid I'm getting the following error above the grid and the grid comes empty/dimmed (although it was showing couple of records using the readonly control)

No custom HTML or Scripts on the Form or in any field.

 <!DOCTYPE HTML><html><parsererror xmlns="">http://www.w3.org/1999/xhtml" style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"><h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">error on line 21 at column 22: xmlParseEntityRef: no name </div><h3>Below is a rendering of the page up to the first error.</h3></parsererror> <head> <script type="text/javascript">var LoadStartTime = new Date().getTime();</script> <script type="text/javascript"></script></head></html>

pastedimage1679927514625v1.png

  • fadyhanna Profile Picture
    fadyhanna 5 on at
    RE: Upon using Editable Subgrids, I'm getting an HTML error above the grid "xmlParseEntityRef: no name"

    Thanks for your suggestion. I checked all those without finding anything out of the ordinary.

    However accessing Dynamics within the server (http) showed a different more elaborative error.

    <!DOCTYPE HTML> <html> <head> <script type='text/javascript'>var LoadStartTime = new Date().getTime();</script> <script type='text/javascript'> var isKeyPressed=false; var headElement = document.getElementsByTagName('head')[0]; var style_element = document.createElement('style'); style_element.id = 'focusStyle'; var focusCss = ':focus{outline:2px dashed !important; outline-offset: 1px !important;}::-moz-focus-inner{border:0;}'; var removefocusCss = ':focus{outline:0}::-moz-focus-inner{border:0;}'; document.addEventListener('keydown', function(e) { isKeyPressed=true; // This class breaks drag/drop keyboard accessibility in the dashboard editor, so temporarily remove it. if (window.location.href.indexOf('dashboardEditor.aspx') > -1) { var target = e && e.target; if (target && target.classList && target.classList.contains('keyboardFocusClass')) { target.classList.remove('keyboardFocusClass'); setTimeout(function() { target.classList.add('keyboardFocusClass'); }, 0); } } }); document.addEventListener('focusin', function(e) { if (isKeyPressed) { if (!Mscrm.InternalUtilities._Script.isNullOrUndefined(document.body)) { document.body.classList.add('keyboardFocusClass'); } if(e.target.classList){ e.target.classList.add('keyboardFocusClass'); } if (!Mscrm.InternalUtilities._Script.isNullOrUndefined(e.target.parentElement) && e.target.parentElement.classList) { e.target.parentElement.classList.add('keyboardFocusClass'); } style_element.innerHTML = focusCss; headElement.appendChild(style_element); isKeyPressed=false; } }); document.addEventListener('focusout', function(e) { var existingStyles = document.getElementsByTagName('style'); var i = 0; while (i < existingStyles.length) { if (existingStyles[i].id == 'focusStyle') { headElement.removeChild(existingStyles[i]); } else { i++; } } if (!Mscrm.InternalUtilities._Script.isNullOrUndefined(document.body)) { document.body.classList.remove('keyboardFocusClass'); } if(e.target.classList){ e.target.classList.remove('keyboardFocusClass'); } if (!Mscrm.InternalUtilities._Script.isNullOrUndefined(e.target.parentElement) && e.target.parentElement.classList) { e.target.parentElement.classList.remove('keyboardFocusClass'); } }); document.addEventListener('mousedown', function(e) { isKeyPressed=false; if (!Mscrm.InternalUtilities._Script.isNullOrUndefined(document.body)) { document.body.classList.remove('keyboardFocusClass'); } if(e.target.classList){ e.target.classList.remove('keyboardFocusClass'); } if (!Mscrm.InternalUtilities._Script.isNullOrUndefined(e.target.parentElement) && e.target.parentElement.classList) { e.target.parentElement.classList.add('keyboardFocusClass'); } var existingStyles = document.getElementsByTagName('style'); var i = 0; while (i < existingStyles.length) { if (existingStyles[i].id == 'focusStyle') { headElement.removeChild(existingStyles[i]); } else { i++; } } style_element.innerHTML = removefocusCss; if (!(Mscrm.Utilities.isIE() && e.target.tagName==='SELECT')) { headElement.appendChild(style_element) } }); </script> <script type='text/javascript'>var CDNURL = '';</script> <script type='text/javascript'> document.addEventListener('DOMContentLoaded', function() { if (!window.PostRenderTime) { window.PostRenderTime = (new Date()).getTime(); } }); </script> <title>Microsoft Dynamics 365 : Error</title> <link rel="stylesheet" type="text/css" href="/_common/styles/fonts.css.aspx?ver=1247543010&lcid=1033" id="/_common/styles/fonts.css.aspx?ver=1247543010&lcid=1033" /> <link rel="stylesheet" type="text/css" href="/_common/styles/global.css.aspx?ver=1247543010&lcid=1033" id="/_common/styles/global.css.aspx?ver=1247543010&lcid=1033" /> <link rel="stylesheet" type="text/css" href="/_common/styles/theme.css.aspx?lcid=1033&ver=1247543010&theme=Outlook14Silver" id="/_common/styles/theme.css.aspx?lcid=1033&ver=1247543010&theme=outlook14silver" /> <link rel="stylesheet" type="text/css" href="/_static/_common/styles/sessionmanagement.css?ver=1247543010" id="/_static/_common/styles/sessionmanagement.css?ver=1247543010" /> <link rel="stylesheet" type="text/css" href="/_forms/controls/controls.css.aspx?ver=1247543010&lcid=1033" id="/_forms/controls/controls.css.aspx?ver=1247543010&lcid=1033" /> <script type="text/javascript"> var LOCID_IPADWINCLOSED = 'An error has occurred. Please return to the home page and try again.'; var LOCID_PUBLISH_MESSAGE_SINGLE = 'Publishing mobile offline profile and profile items\u2026'; var LOCID_PUBLISH_MESSAGE_MULTIPLE = 'Publishing selected mobile offline profiles and profile items\u2026'; var LOCID_MESSAGE_USER_MULTI_PROFILE = 'This user already exists in another mobile offline profile. If you add the user to this profile, the user will be removed from the other profile. Are you sure you want to continue\x3f'; var LOCID_TITLE_USER_MULTI_PROFILE = 'User already exists in another profile'; var LOCID_CLONE_MESSAGE = 'Create a new mobile offline profile from this mobile offline profile.'; var LOCID_CLONE_TITLE = 'Clone mobile offline profile'; var LOCID_ANALYZE_MESSAGE = 'Preparing profile report for download and analysis...'; var LOCID_BRANDNAME = 'Microsoft Dynamics 365'; var LOCID_UI_DIR = 'LTR'; var LOCID_ACTION_UNSUPPORTED_ERROR = 'This action is not supported.'; var LOCID_UNSUPPORTED_RIBBONACTION = 'This action is not supported on the browser that you are using.'; var LOCID_LOOKUP_LABEL_FOR_EDIT = '\x7b0\x7d \x7b1\x7d'; var LOCID_EMAIL_PREFIX_REPLY = 'RE\x3a'; var LOCID_EMAIL_PREFIX_FORWARD = 'FW\x3a'; var LOCID_EMAIL_FOLLOWUP_TO = 'To\x3a'; var LOCID_EMAIL_FOLLOWUP_SUBJECT = 'Subject\x3a'; var LOCID_EMAIL_FOLLOWUP_SENDER = 'From\x3a'; var LOCID_EMAIL_FOLLOWUP_RECEIVED = 'Received\x3a'; var LOCID_EMAIL_FOLLOWUP_CC = 'Cc\x3a'; var LOCID_MSCRM_MSGBODY_FONTS = 'Tahoma, Verdana, Arial'; var LOCID_DLG_OK_BTN_LABEL = 'OK'; var LOCID_DLG_CANCEL_BTN_LABEL = 'Cancel'; var LOCID_NAV_RIGHTLINK_TOOLTIP = 'Go to next page'; var LOCID_NAV_LEFTLINK_TOOLTIP = 'Go to previous page'; var LOCID_DLG_RETURNTOCRM_TITLE = 'Any changes in Excel will be lost'; var LOCID_DLG_RETURNTOCRM_TEXT = 'The changes you make in Excel will be lost unless you submit the changes to Dynamics 365.'; var LOCID_RESOLVE_WARNING_TEXT = 'Some changes didn\x27t apply successfully because of form and attribute settings, but you can still save your changes and resolve the sync error.'; var LOCID_RESOLVE_INFO_TEXT = 'Your changes are applied successfully and you can save and resolve the sync error.'; var LOCID_REMOTECOMMAND_ERROR = 'An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization\x27s Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support.'; var LOCID_NON_SRS_FILTERSCHEDULE = 'Only SQL Server Reporting Services reports can be filtered or scheduled.'; var THEME_ID = ''; var THEME_UPDATE_TIMESTAMP = ''; var WEB_APP_URL = ''; var HELP_SKU = 'OP'; var IS_OUTLOOK_LAPTOP_CLIENT = false; var IS_OUTLOOK_14_CLIENT = false; var CLIENT_MAJOR_VERSION = 9; var _errorTextString = ''; var _requestUrl = '\x2fITIDAStg\x2fXRMServices\x2f2011\x2fOrganization.svc\x2fweb'; var _backUrl = ''; var _bCloseMode = false; var _bDevErrorMode = false; var REMIND_AUTH_EXPIRATION = true; var AUTH_EXPIRATION_REMINDER_TIME_IN_SECONDS = 0; var AUTH_EXPIRATION_AFTER_REMINDER_IN_SECONDS = 0; var AUTH_EXPIRATION_LAST_UPDATE = '20230329105910'; var DIALOG_REAUTH_DESCRIPTION = 'Your Microsoft Dynamics 365 session is about to expire. To continue working, please sign in again.'; var DIALOG_REAUTH_EXPIRED_DESCRIPTION = 'Your session has expired. Any unsaved changes have been lost.'; var DIALOG_REAUTH_SIGNIN_BUTTON = 'Sign In'; var DIALOG_REAUTH_CANCEL_BUTTON = 'Cancel'; var DIALOG_REAUTH_CLOSE_BUTTON = 'Close'; var WEB_RESOURCE_ORG_VERSION_NUMBER = ''; var _DebugOnScriptError = false; var ORG_UNIQUE_NAME = ''; var ORG_ID = '\x7b00000000-0000-0000-0000-000000000000\x7d'; var USE_READ_FORM = false; var IS_PATHBASEDURLS = false; var USER_HELP_LCID = 1033; var USER_LANGUAGE_CODE = 1033; var IS_OUTLOOK_CLIENT = false; var IS_UEIP_ENABLED = false; var IS_ONLINE = true; var IS_SANDBOX_ORG = false; var IS_SUPPORT_ORG = false; var IS_PREVIEW_ORG = false; var IS_PRESERVE_IFRAME = false; var IS_EMAIL_CONVERSATION_FCB = false; var IS_ACTIVITY_SORTING = false; var IS_GRID_WITH_IMAGE = false; var IS_AUTO_CAPTURE = false; var IS_TEXT_WRAP_ENABLED = true; var IS_WEBCLIENT_VISUAL_REFRESH_ENABLED = false; var IS_GREY_SHADE_ONRESIZE_ENABLED = true; var IS_RECENTLY_VIEW_ENABLED = false; var REQ_ID = 'aff76533-a3a6-4b71-b88b-02edc3e803ab'; var VERSION_STAMP = 1247543010; var IsCarinaFeatureAvailable = false; var IsParatureAtriaDependenciesAvailable = false; var IsCorsEnabledForKmControl = 0; var ISV_ADDITIONAL_AUTH = ''; var IsCurrentKMParature = false; var IsParatureKnowledgebaseVisable = false; var CUSTOMIZED_HELP_ENABLED = false; var ScriptErrorReportingPreference = 3; var IS_LIVE = false; var _sWebServicesNamespace = 'http\x3a\x2f\x2fschemas.microsoft.com\x2fcrm\x2f2009\x2fWebServices'; var ERRORCODE_ETM = '0x8004A001'; var EDIT_PRELOAD = true; var _aWrpcTokens = {}; var initialFormXml = ''; var APP_SOLUTION_ID = ''; var _resourceStrings = {}; </script> <script type="text/javascript" src="/_static/_common/scripts/MicrosoftAjax.js?ver=1247543010" id="/_static/_common/scripts/microsoftajax.js?ver=1247543010"></script> <script type="text/javascript" src="/_static/_common/scripts/EncodeDecode.js?ver=1247543010" id="/_static/_common/scripts/encodedecode.js?ver=1247543010"></script> <script type="text/javascript" src="/_static/_common/scripts/Microsoft.Crm.Client.Core.js?ver=1247543010" id="/_static/_common/scripts/microsoft.crm.client.core.js?ver=1247543010"></script> <script id='sharedScript/_common/ScriptResx.ashx?lcid=1033&ver=1247543010' type='text/javascript'>Microsoft.Crm.Client.Core.SharedScript.load(window, '/_common/ScriptResx.ashx?lcid=1033&ver=1247543010', function(host){host.LoadScriptResx(window);});</script> <script id='sharedScript/_static/_common/scripts/CrmServiceProxy.js?ver=1247543010' type='text/javascript'>Microsoft.Crm.Client.Core.SharedScript.load(window, '/_static/_common/scripts/CrmServiceProxy.js?ver=1247543010', function(host){ Type.registerNamespace('Microsoft.Crm.Client'); Type.registerNamespace('Xrm'); window.Microsoft.Crm.Client.Core = host.Microsoft.Crm.Client.Core; window.Xrm.Soap = host.Xrm.Soap; window.Xrm.Gen = host.Xrm.Gen; });</script> <script id='sharedScript/_static/_common/scripts/CrmServiceProxyFramework.js?ver=1247543010' type='text/javascript'>Microsoft.Crm.Client.Core.SharedScript.load(window, '/_static/_common/scripts/CrmServiceProxyFramework.js?ver=1247543010', function(host){ Type.registerNamespace('Microsoft.Crm.Client'); Type.registerNamespace('Xrm'); window.Microsoft.Crm.Client.Core = host.Microsoft.Crm.Client.Core; window.Xrm.Soap = host.Xrm.Soap; window.Xrm.Gen = host.Xrm.Gen; window.Xrm.Sdk = host.Xrm.Sdk; window.Xrm.Objects = host.Xrm.Objects; window._Math = host._Math; window._Script = host._Script; });</script> <script type="text/javascript" src="/_common/global.ashx?ver=1247543010" id="/_common/global.ashx?ver=1247543010"></script> <script type="text/javascript" src="/_static/_common/scripts/crminternalutility.js?ver=1247543010" id="/_static/_common/scripts/crminternalutility.js?ver=1247543010"></script> <script type='text/javascript' src='/_static/_common/scripts/pageloader.js?ver=1247543010'></script> <script type="text/javascript" src="/_static/_common/scripts/maxsessionmonitor.js?ver=1247543010" id="/_static/_common/scripts/maxsessionmonitor.js?ver=1247543010"></script> <script>Sys.Application.add_init(function crmApplicationInitHandler() {if (!document.body || document.body.children.length === 0) return;});</script> <script type="text/javascript"> function HeaderWindowOnLoad() { if(!window.PostRenderTime){window.PostRenderTime = (new Date()).getTime();} } if(window.Sys){Sys.Application.add_load(HeaderWindowOnLoad);}else{setTimeout(HeaderWindowOnLoad, 1000);} function pageManagerWindowUnloadHandler(){ try{ if(window.$removeHandler) $removeHandler(window, 'unload', pageManagerWindowUnloadHandler); } catch(exc){} window.onresize=null;window.onerror=null;window.onload=null; } if(window && window.$addHandler){$addHandler(window, 'unload', pageManagerWindowUnloadHandler);} if(window) { window.onunload = function(){ window.$P_CRM && $P_CRM.datepicker && $P_CRM.datepicker.dpDiv && $P_CRM.datepicker.dpDiv.unbind(); }} </script> <script type="text/javascript"> Sys.Application.add_load(PageLoad); function tryAgain() { var oArgs = window.top.getDialogArguments(); var bDialogMode = (oArgs !== null && typeof(oArgs) !== "undefined"); var currentWindow = GetWindow(); if (_requestUrl === "") { currentWindow.location.reload(); } else if (bDialogMode) { window.returnValue = Mscrm.CrmWindow.dialogRetryReturnValue; closeWindow(); } else { if (_requestUrl === currentWindow.location.pathname + currentWindow.location.search) { currentWindow.location.reload(); } else { currentWindow.location = _requestUrl; } } } function GetWindow() { return _bDevErrorMode ? window.parent : window; } function PageLoad() { if (document.body.offsetWidth < 480) { document.getElementById("ErrorWindowBody").setAttribute("width", "100%"); document.getElementById("ErrorDetailsBody").setAttribute("width", "100%"); } if (document.body.offsetHeight < 200) { document.getElementById("ErrorWindowBody").setAttribute("height", "100%"); } try { window.top._requestUrl = window._requestUrl; window.top._errorTextString = window._errorTextString; var requestUrlWithoutQueryString = window._requestUrl.split("?")[0]; var calculatedUrlWithoutQueryString = window.top.CALCULATED_DEFAULT_HOMEPAGE.split("?")[0]; if (requestUrlWithoutQueryString == calculatedUrlWithoutQueryString) { window.top.Mscrm.MetricsCollector.collectAndReportClientMetrics(6); } } catch (ex) { if (typeof(_removeRecordFromRecentlyViewed) != "undefined") { var pm = null; var parent = window.parent; var win = window; while (IsNull(pm) && !IsNull(parent) && win != parent) { pm = parent.$find("crmPageManager"); win = parent; parent = win.parent; } if (!IsNull(pm)) { var parameters = {}; parameters["objectIds"] = new Array(_removeRecordFromRecentlyViewed); pm.raiseEvent(Mscrm.ScriptEvents.RecordsDeleted, parameters); } } } } </script> <style type="text/css"> .tblErrorDetails { table-layout:fixed; text-align:left; } </style> </head> <body class="ms-crm-ErrorDialog2"> <div style="width:100%;height:100%;text-align:center"> <table id = "ErrorWindowBody" width="480px" height="200px" cellspacing="0" cellpadding="0" style="margin:auto;text-align:center"> <tr height="34px"> <td class="errorHandler_td"> Microsoft Dynamics 365 </td> </tr> <tr> <td style="text-align:center;padding-top:3px;"> <table id = "ErrorDetailsBody" width="442px" cellspacing="0" cellpadding="5" class="tblErrorDetails"> <col width="58" /> <col /> <tr> <td align="center" style="padding-top:10px;"> <img src="/_imgs/error/notif_icn_critical.png" id="ImageErrorIcon" alt="Critical" /></td> <td> <h1><div id="ErrorTitle" tabIndex="0" class="ms-crm-Error-Header">Error</div></h1> <p><span id="ErrorText">An error has occurred. <br><br>Try this action again. If the problem continues, check the <A target="_blank" href="go.microsoft.com/.../ class="ms-crm-Link">Microsoft Dynamics 365 Community</A> for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact <A target="_blank" href="go.microsoft.com/.../ class="ms-crm-Link">Microsoft Support</A>.</span></p> </td> </tr> </table> </td> </tr> <tr height="20px"> <td class="errorHandler_td_middle" colspan="2"> <button id="ButtonTryAgain" onclick="tryAgain();" onkeydown type="button" class="ms-crm-Button" onmouseover="Mscrm.ButtonUtils.hoverOn(this);" onmouseout="Mscrm.ButtonUtils.hoverOff(this);">Try Again</button> <button id="CloseButton" onclick="Mscrm.InlineDialogUtility.closeAllInlineDialogs();" onkeydown type="button" class="ms-crm-Button" onmouseover="Mscrm.ButtonUtils.hoverOn(this);" onmouseout="Mscrm.ButtonUtils.hoverOff(this);">Close</button> </td> </tr> </table> <br /> <br /> <br /> <br /> <br /> </div> </body> </html>

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: Upon using Editable Subgrids, I'm getting an HTML error above the grid "xmlParseEntityRef: no name"

    hi

    this error message indicates that there is an issue with the XML structure of the page, which is causing the parser to fail. The error message specifically mentions an "xmlParseEntityRef: no name" error, which usually occurs when there is an unescaped special character in the XML that cannot be resolved.

    It is possible that the issue is related to the way the editable grid control is rendering the XML, and the error is preventing the grid from loading correctly. Here are a few things you can try to resolve the issue:

    Check the entity relationships: Make sure that the relationship between the custom entity and the related entity is set up correctly. Double-check the lookup field, schema names, and mappings to ensure that they are correct.

    Check the form configuration: Verify that the editable grid control is configured correctly. Make sure that the data source and schema are set up properly, and that there are no errors in the grid configuration.

    Check for special characters: Look for any special characters in the data that might be causing issues. Ensure that any special characters in the data are properly escaped, such as &, <, and >.

    Check for plugins: If there are any plugins or customizations that are running on the form, try disabling them temporarily to see if that resolves the issue.

    If none of these steps resolve the issue, you may need to engage with Microsoft Support or your Dynamics 365 partner for further assistance.

    DAniele

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans