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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error with Service Endpoint after upgrade to 9.1 on premise

(0) ShareShare
ReportReport
Posted on by 2,139

Hi all!

We have upgraded our test enviroment onpremise from 9.0 to 9.1. We are having issue with the Endpoint Service. It cannot be reached.

When i try to call the our endpoint  devcrm365.xxx.ru/.../ i get the following error:

Microsoft.Crm.CrmException: The current organization id could not be determined. at Microsoft.Crm.Application.Security.UserInformationIdentity.get_OrganizationId() at Microsoft.Crm.Errors.ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError, IOrganizationContext context) at Microsoft.Crm.MainApplication.Application_Error(Object sender, EventArgs eventArguments)

I have enable trace on the server and get the error detail:

[2021-11-10 21:03:12.859] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 28 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 39eed8c0-d161-4db2-9ba1-5afd79938803 |ActivityId: 39eed8c0-d161-4db2-9ba1-5afd79938803 | ProductionCallerPropertiesProvider.GetCallerProperties ilOffset = 0xC0
at ProductionCallerPropertiesProvider.GetCallerProperties(IDbConnectionFactory connectionFactory) ilOffset = 0xC0
at SecurityLibrary.GetCallerAndBusinessGuids() ilOffset = 0x0
at CrmODataUtilities.GetOrganizationContext() ilOffset = 0x0
at TraceUtilities.Trace(TraceLevel traceLevel, String message, Exception ex) ilOffset = 0x0

>Crm Exception: Message: userId '00000000-0000-0000-0000-000000000000' not found on UserIdentityContext.Current.Principal, ErrorCode: -2147220970

and 

[2021-11-10 21:03:12.859] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 28 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 39eed8c0-d161-4db2-9ba1-5afd79938803 |ActivityId: 39eed8c0-d161-4db2-9ba1-5afd79938803 | HttpApplication.RaiseOnError ilOffset = 0x0
>Request devcrm365.xxx.ru/.../$metadata failed with exception Microsoft.Crm.CrmException: userId '00000000-0000-0000-0000-000000000000' not found on UserIdentityContext.Current.Principal

When i try to open the endpoint url on the server where IIS is hosted i get this error: 

pastedimage1636568129213v1.png

I have not this physical path on the server...

The URL endpoint from outside also cannot be reached. All users can log in to crm without any problems. We use ADFS to authentication

There is not an api folder. How can i fix the service endpoint? 

I have the same question (0)
  • Community Member Profile Picture
    on at
  • Suggested answer
    betlejuice Profile Picture
    2,139 on at

    Hi Leah, Thank you for you answer.

    I could find one more error in trace. My admin account was tritying to connect to a disable org. I change in MSCRM_CONFIG the default organization for the account and now all is ok

  • Community Member Profile Picture
    on at

    Hi betlejuice,

    I am glad your problem has been solved and thank you for sharing! :)

  • Fedorov Profile Picture
    40 on at

    Hi,

    Which table and column did you modify in the database MSCRM_CONFIG?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans