{"id":279,"date":"2019-07-18T20:26:44","date_gmt":"2019-07-18T20:26:44","guid":{"rendered":"https:\/\/www.dabbler.dk\/?p=279"},"modified":"2019-07-19T07:20:27","modified_gmt":"2019-07-19T07:20:27","slug":"microsoft-dynamics-365-business-central-webclient-with-no-role-center","status":"publish","type":"post","link":"https:\/\/www.dabbler.dk\/index.php\/2019\/07\/18\/microsoft-dynamics-365-business-central-webclient-with-no-role-center\/","title":{"rendered":"Microsoft Dynamics 365 Business Central WebClient with no Role Center"},"content":{"rendered":"\n<p>Is your Microsoft Dynamics 365 Business Central Windows Client working, but your Web Client gets stuck with this picture just after log in?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.dabbler.dk\/wp-content\/uploads\/2019\/07\/WebClient-no-Role-Center.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"464\" src=\"https:\/\/www.dabbler.dk\/wp-content\/uploads\/2019\/08\/WebClient-no-Role-Center.png\" alt=\"WebClient - no Role Center\" class=\"wp-image-287\" srcset=\"https:\/\/www.dabbler.dk\/wp-content\/uploads\/2019\/08\/WebClient-no-Role-Center.png 640w, https:\/\/www.dabbler.dk\/wp-content\/uploads\/2019\/08\/WebClient-no-Role-Center-300x218.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption>WebClient &#8211; stuck with no Role Center just after login.<\/figcaption><\/figure>\n\n\n\n<p>&#8230;and do you see events like these in the Windows eventviewser on the Server? (sorry &#8211; I know it is in Danish: &#8220;fejl&#8221; translates to &#8220;error&#8221; and &#8220;undtagelse&#8221; means &#8220;exception&#8221;)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Der opstod fejl under fors\u00f8g p\u00e5 adgang til webstedet \nType: Microsoft.Dynamics.Nav.Types.NavCancelCredentialPromptException\nMessage: Der blev udl\u00f8st en undtagelse af typen 'Microsoft.Dynamics.Nav.Types.NavCancelCredentialPromptException'.\nStackTrace:\n   ved Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.PromptForCredentials() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.ServiceConnection\\ConnectionEstablisher.cs:linje 1041\n   ved Microsoft.Dynamics.Nav.Client.ConnectionEstablisher.OpenConnection[TChannel](ConnectionRequest connectionRequest, ConnectionOptions connectionOptions, UserSettings&amp; userSettings) i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.ServiceConnection\\ConnectionEstablisher.cs:linje 196\n   ved Microsoft.Dynamics.Nav.Client.ServiceConnection.OpenConnection() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.ServiceConnection\\ServiceConnection.cs:linje 892\n   ved Microsoft.Dynamics.Nav.Client.ServiceConnection.Initialize() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.ServiceConnection\\ServiceConnection.cs:linje 561\n   ved Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.OpenConnectionToServer() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.Builder\\BuilderSession\\BuilderSessionInitializer.cs:linje 265\n   ved Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.InitializeCore() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.Builder\\BuilderSession\\BuilderSessionInitializer.cs:linje 92\n   ved Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.Initialize() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.Client.Builder\\BuilderSession\\BuilderSessionInitializer.cs:linje 76\n   ved Microsoft.Dynamics.Framework.UI.UISession.Initialize() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.ClientFwk\\Session\\UiSession.cs:linje 1094\n   ved Microsoft.Dynamics.Nav.Client.Web.NavWebUISessionInitializer.InitializeCore(UISession session) i S:\\Depot\\Platform-Core\\platform\\client\\web\\Prod.Client.WebCommon\\Session\\NavWebUISessionInitializer.cs:linje 94\n   ved Microsoft.Dynamics.Nav.WebClient.NavWebClientUISessionInitializer.InitializeCore(UISession session) i S:\\Depot\\Platform-Core\\platform\\client\\web\\Prod.Client.WebClient\\Session\\NavWebClientUISessionInitializer.cs:linje 65\n   ved Microsoft.Dynamics.Nav.Client.Web.NavWebUISessionInitializer.Initialize(UISession session) i S:\\Depot\\Platform-Core\\platform\\client\\web\\Prod.Client.WebCommon\\Session\\NavWebUISessionInitializer.cs:linje 77\n   ved Microsoft.Dynamics.Framework.UI.Client.OpenFormExecutionStrategy.TryInitializeUiSession(UISession session) i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.ClientFwk\\Client\\Interactions\\ExecutionStrategies\\OpenFormExecutionStrategy.cs:linje 67\n   ved Microsoft.Dynamics.Framework.UI.Web.WebOpenFormExecutionStrategy.TryInitializeUiSession(UISession session) i S:\\Depot\\Platform-Core\\platform\\client\\web\\Prod.Client.Web\\Interactions\\ExecutionStrategies\\WebOpenFormExecutionStrategy.cs:linje 61\n   ved Microsoft.Dynamics.Framework.UI.Client.OpenFormExecutionStrategy.Execute() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.ClientFwk\\Client\\Interactions\\ExecutionStrategies\\OpenFormExecutionStrategy.cs:linje 41\n   ved Microsoft.Dynamics.Framework.UI.InteractionManager.&lt;&gt;c__DisplayClass8_2.b__4() i S:\\Depot\\Platform-Core\\platform\\client\\Shared\\Prod.ClientFwk\\Interactions\\InteractionManager.cs:linje 125\nSource: Microsoft.Dynamics.Nav.Client.ServiceConnection<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Error accessing Website \nUnhandled error occurred on a browser or device client:\n{\n  \"clientInfo\": {\n    \"platform\": \"Win32\",\n    \"userAgent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/70.0.3538.102 Safari\/537.36 Edge\/18.18362\",\n    \"browserLanguage\": \"da-DK\"\n  },\n  \"message\": \"Unable to get property 'getElementsByClassName' of undefined or null reference\",\n  \"pageUrl\": \"https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/?runinframe=1\",\n  \"originalError\": {},\n  \"location\": {\n    \"name\": \"https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0\",\n    \"url\": \"https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0\",\n    \"lineNumber\": 4562,\n    \"columnNumber\": 58\n  },\n  \"detailedMessage\": \"   at DN.LogicalFormAdapter.prototype.$105 (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:5188:1958)\\r\\n   at DN.LogicalFormAdapter.prototype.initializeNativeControl (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:5152:101)\\r\\n   at DN.LogicalControlAdapter.prototype.$27 (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:4839:1117)\\r\\n   at DN.LogicalControlAdapter.prototype.createContent (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:4833:6623)\\r\\n   at DN.LogicalControlAdapter.prototype.buildCore (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:4834:399)\\r\\n   at Type.prototype.callBaseMethod (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/mscorlib.js?h=D3729A20D7B95888CE98A4A7D3E48A9F0C340D80C5F72A67326464A956360F0E&amp;_v=1.0.0:1:23528)\\r\\n   at DN.LogicalFormAdapter.prototype.buildCore (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:5160:156)\\r\\n   at DN.LogicalControlAdapter.prototype.build (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:4833:6709)\\r\\n   at DN.LogicalControlAdapter.prototype.buildChildAdapter (https:\/\/xxxxxxxxxx\/yyyyyyyyyy\/js\/framework.js?h=69F05AE1092A2D30721123840E70FB027600B5F7A4BA9069BAE99A1E20C9168D&amp;_v=1.0.0:4834:1581)\\r\\n\",\n  \"requireUserToSignOut\": false,\n  \"silent\": true\n}<\/pre>\n\n\n\n<p>Well &#8211; congratulations. You probably hit the same rabbit hole I just wasted 2 hours on. <\/p>\n\n\n\n<p>Please go through you Role Center PageParts and check if you by mistake filled the InstructionalTextML property with something. I don&#8217;t want you to check the Role Center page, but check the individual PageParts pages. It is a global parameter on them.<\/p>\n\n\n\n<p>If you did &#8211; remove it and this problem is magically gone :-)&#8230; <\/p>\n\n\n\n<p>Note: This issue HAS off cause been reported to Microsoft (it got case ID 119071922000172 ). They have confirmed that it also seems to be present on Microsoft Dynamics 365 Business Central 2019 spring release.<\/p>\n\n\n\n<p>I&#8217;ve discovered it in 2018 fall release CU7 (running single tenant and NavUserPassword authentication &#8211; not that I think that is part of the cause). I&#8217;ll expect it to be also present in at least 2018 fall release CU9 and 2019 spring release CU1. <\/p>\n\n\n\n<p>Microsoft confirms they are looking into fixing it and a fix will be released in a future CU.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is your Microsoft Dynamics 365 Business Central Windows Client working, but your Web Client gets stuck with this picture just after log in? &#8230;and do you see events like these in the Windows eventviewser on the Server? (sorry &#8211; I know it is in Danish: &#8220;fejl&#8221; translates to &#8220;error&#8221; and &#8220;undtagelse&#8221; means &#8220;exception&#8221;) Der opstod &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.dabbler.dk\/index.php\/2019\/07\/18\/microsoft-dynamics-365-business-central-webclient-with-no-role-center\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Microsoft Dynamics 365 Business Central WebClient with no Role Center&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":190,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,5],"tags":[27,32,25,24,26],"class_list":["post-279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-nav","category-software","tag-bug","tag-business-central","tag-dynamics","tag-microsoft","tag-nav"],"_links":{"self":[{"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":10,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":293,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/posts\/279\/revisions\/293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/media\/190"}],"wp:attachment":[{"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dabbler.dk\/index.php\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}