web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Exception message: The current organization id could not be determined.

(1) ShareShare
ReportReport
Posted on by 80
Hello,
When trying to open CRM from external network get always Error occued by pening every entity
 
Fro application logs i see only:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 3/6/2024 7:57:51 PM 
Event time (UTC): 3/6/2024 6:57:51 PM 
Event ID: e507cbbc47aa458585d7b41fa281d152 
Event sequence: 548 
Event occurrence: 28 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT-1-133542227010270680 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C://Program Files//Dynamics 365//CRMWeb// 
    Machine name: QCRM02 
 
Process information: 
    Process ID: 10924 
    Process name: w3wp.exe 
    Account name: QUORUM//CRM9.APPSERVICE 
 
Exception information: 
    Exception type: CrmException 
    Exception message: The current organization id could not be determined.
   at Microsoft.Crm.Application.Security.UserInformationIdentity.get_OrganizationId()
   at Microsoft.Crm.CrmCache`1.InternalAddEntry(String cacheKey, Object value, String[] dependencyKeys, IOrganizationContext context)
   at Microsoft.Crm.CrmCache`1.AddEntryNoLock(String key, TValue value, String[] dependencyKeys, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntityFromLookupInternal(String key, TValue value, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookupCallback(String key, TValue value, IOrganizationContext context, Object parameter)
   at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookup(String key, TValue value, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Themes.Theme.get_Current()
   at ASP._common_styles_theme_css_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Request information: 
    Request URL: https://portal.portal.at:443/_common/styles/theme.css.aspx?lcid=1031&ver=-257797280 
    Request path: /_common/styles/theme.css.aspx 
    User host address: 192.168.123.3 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: QUORUM//CRM9.APPSERVICE 
 
Thread information: 
    Thread ID: 69 
    Thread account name: QUORUM//CRM9.APPSERVICE 
    Is impersonating: False 
    Stack trace:    at Microsoft.Crm.Application.Security.UserInformationIdentity.get_OrganizationId()
   at Microsoft.Crm.CrmCache`1.InternalAddEntry(String cacheKey, Object value, String[] dependencyKeys, IOrganizationContext context)
   at Microsoft.Crm.CrmCache`1.AddEntryNoLock(String key, TValue value, String[] dependencyKeys, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntityFromLookupInternal(String key, TValue value, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookupCallback(String key, TValue value, IOrganizationContext context, Object parameter)
   at Microsoft.Crm.CrmCache`1.AddEntry(String key, TValue value, IOrganizationContext context, AddEntryCallback`1 callback, Object callbackParameter)
   at Microsoft.Crm.Caching.BasicCrmCache`2.AddEntryFromLookup(String key, TValue value, IOrganizationContext context)
   at Microsoft.Crm.Caching.BasicCrmCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Themes.Theme.get_Current()
   at ASP._common_styles_theme_css_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Page.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details: 
 
What could be the reason for such beaviour`?
Thank you
I have the same question (1)
  • Pradeep Rai Profile Picture
    5,489 Moderator on at
    Hi,

    It seems that you were not able to access the on-premise system outside your company network. if yes then please check below link:

    https://community.dynamics.com/forums/thread/details/?threadid=a2289d55-81ea-4575-9481-ce095e2f7f1d
     
    Thank You,
    Pradeep Rai.
  • Evgenich Profile Picture
    80 on at
    Pradeep, thank you so much for your answer
    Seems still not a slution
     No effect on disabling firewall, can resolve dns
    From external i can open CRM, error occured only on loading entities or list of orders/quotes
  • Pradeep Rai Profile Picture
    5,489 Moderator on at
    I have flagged this question. may be some other expert might help you.
  • Evgenich Profile Picture
    80 on at
    Thank you, will look for solution. Will try to disable totally  and turn again IFD
  • Evgenich Profile Picture
    80 on at
    Update: from developer tools in browser i see:
     

    global.ashx?ver=-257797280:6872 
     POST https://portal-portal.at/AppWebServices/AppGridWebService.ashx?operation=Refresh 500 (Internal Server Error)
    execute    @    global.ashx?ver=-257797280:6872
    executeInternal    @    GridControl.js?ver=-257797280:1
    $8f_3    @    GridControl.js?ver=-257797280:1
    Refresh    @    GridControl.js?ver=-257797280:1
    Refresh    @    GridControl.js?ver=-257797280:1
    $C9_3    @    GridControl.js?ver=-257797280:1
    Mscrm.GridControl    @    GridControl.js?ver=-257797280:1
    Type.initializeBase    @    MicrosoftAjax.js?ver=-257797280:517
    Mscrm.GridControlLite    @    GridControl.js?ver=-257797280:1
    Sys.Component.create    @    MicrosoftAjax.js?ver=-257797280:2804
    Mscrm.CrmUIComponent.crmCreate    @    global.ashx?ver=-257797280:6872
    Component78e16b0_Init    @    VM330:4
    eval    @    VM330:7
    Mscrm.GridControl.$8D    @    GridControl.js?ver=-257797280:1
    (anonymous)    @    GridControl.js?ver=-257797280:1
    setTimeout (async)        
    executeFunctionDeferred    @    pageloader.js?ver=-257797280:147
    Mscrm.GridControl.$7X    @    GridControl.js?ver=-257797280:1
    $v_0.onreadystatechange    @    GridControl.js?ver=-257797280:1
    XMLHttpRequest.send (async)        
    Mscrm.GridControl.loadGridView    @    GridControl.js?ver=-257797280:1
    HeaderWindowOnLoad    @    home_dashboards.aspx…pagemode=iframe:650
    (anonymous)    @    MicrosoftAjax.js?ver=-257797280:2629
    raiseLoad    @    MicrosoftAjax.js?ver=-257797280:3602
    initialize    @    MicrosoftAjax.js?ver=-257797280:3583
    b    @    MicrosoftAjax.js?ver=-257797280:3658
    a    @    MicrosoftAjax.js?ver=-257797280:3672
  • Evgenich Profile Picture
    80 on at
    Addition:
    When attempting to access from an external network, the screen appears blank, displaying the default Dynamics theme instead of our organization's custom orange theme.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans