Skip to main content

Notifications

Announcements

No record found.

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
  • Evgenich Profile Picture
    Evgenich 80 on at
    Exception message: The current organization id could not be determined.
    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.
  • Evgenich Profile Picture
    Evgenich 80 on at
    Exception message: The current organization id could not be determined.
    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
    Evgenich 80 on at
    Exception message: The current organization id could not be determined.
    Thank you, will look for solution. Will try to disable totally  and turn again IFD
  • Pradeep Rai Profile Picture
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    Exception message: The current organization id could not be determined.
    I have flagged this question. may be some other expert might help you.
  • Evgenich Profile Picture
    Evgenich 80 on at
    Exception message: The current organization id could not be determined.
    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
    Pradeep Rai 5,490 Super User 2024 Season 2 on at
    Exception message: The current organization id could not be determined.
    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.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans