Answered by:
Getting Exception for non existing Organization

Question
-
Hello,
at customers site i get an exception in Trace Logfile from CRM.
Background: There was a server crash few time ago. The old partner of the customer was unable to restore the old organization, so a new one was created with a different name. CRM itself works, but TraceLOg shows an Exception and i can´t figure out when it ist thrown an where and why. Hope somebody have a clue.
Here is the Exception:
>MapOrgEngine: Retreived the OrgId[{00000000-0000-0000-0000-000000000000}] for URL[http://crmsrv01/MSCRMServices/2007/CrmService.asmx]. [2009-09-16 08:51:30.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | AuthenticationEngine.Execute at AuthenticationEngine.Execute(Object sender, EventArgs e) at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at HttpApplication.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) >AUTH: Request [POST http://crmsrv01/MSCRMServices/2007/CrmService.asmx] entered Authentication Pipeline. [2009-09-16 08:51:30.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose | AuthenticationStep.Authenticate at AuthenticationStep.Authenticate(HttpApplication application) at AuthenticationPipeline.Authenticate(HttpApplication application) at AuthenticationEngine.Execute(Object sender, EventArgs e) at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at HttpApplication.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) >AUTH: AuthenticationProvider [Microsoft.Crm.WebServices.Crm2007.MultipleOrganizationSoapHeaderAuthenticationProvider] will be atempted. [2009-09-16 08:51:30.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 8 |Category: Platform.Sql |User: 00000000-0000-0000-0000-000000000000 |Level: Info | CrmDbConnection.InternalExecuteReader at CrmDbConnection.InternalExecuteReader(IDbCommand command) at CrmDbConnection.ExecuteReader(IDbCommand command, Boolean impersonate) at DatabaseService.ExecuteBaseReader(CrmDbConnection connection, IDbCommand command, String[] columns) at DatabaseService.Retrieve(String tableName, String[] columns, PropertyBag[] conditions) at ServerLocatorService.Retrieve(String tableName, String[] columns, PropertyBag[] conditions) at ServerLocatorService.GetOrganizationIdByNameFromDatabase(String organizationName) at ServerLocatorService.GetOrganizationId(String organizationName) at LocatorService.GetOrganizationId(String organizationName) at AuthenticationProvider.Authenticate(CrmAuthenticationToken token) at SoapHeaderAuthenticationProviderBase.Authenticate(HttpApplication application) at AuthenticationStep.Authenticate(HttpApplication application) at AuthenticationPipeline.Authenticate(HttpApplication application) at AuthenticationEngine.Execute(Object sender, EventArgs e) at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at HttpApplication.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) >SELECT Id FROM Organization WHERE (((UniqueName = 'orgName')) ) AND (IsDeleted = 0) [2009-09-16 08:51:30.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 8 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error | CrmException..ctor at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace) at CrmDBObjectNotFoundException..ctor(String tableName, String columnName, Object id) at ServerLocatorService.GetOrganizationIdByNameFromDatabase(String organizationName) at ServerLocatorService.GetOrganizationId(String organizationName) at LocatorService.GetOrganizationId(String organizationName) at AuthenticationProvider.Authenticate(CrmAuthenticationToken token) at SoapHeaderAuthenticationProviderBase.Authenticate(HttpApplication application) at AuthenticationStep.Authenticate(HttpApplication application) at AuthenticationPipeline.Authenticate(HttpApplication application) at AuthenticationEngine.Execute(Object sender, EventArgs e) at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at HttpApplication.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) >Crm Exception: Message: Organization With Name = orgName Does Not Exist, ErrorCode: -2147220969 [2009-09-16 08:51:30.0] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 8 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info | MiniDumpSettings.Create at MiniDumpSettings.Create() at MiniDump.CreateDumpInternal(MiniDumpReasons reason, Exception exception) at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace) at CrmDBObjectNotFoundException..ctor(String tableName, String columnName, Object id) at ServerLocatorService.GetOrganizationIdByNameFromDatabase(String organizationName) at ServerLocatorService.GetOrganizationId(String organizationName) at LocatorService.GetOrganizationId(String organizationName) at AuthenticationProvider.Authenticate(CrmAuthenticationToken token) at SoapHeaderAuthenticationProviderBase.Authenticate(HttpApplication application) at AuthenticationStep.Authenticate(HttpApplication application) at AuthenticationPipeline.Authenticate(HttpApplication application) at AuthenticationEngine.Execute(Object sender, EventArgs e) at SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at HttpApplication.ResumeSteps(Exception error) at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
Posted little more, iam sure that one depends to the other.
Thanks in advance
zmart- Edited by zmart Wednesday, September 16, 2009 10:38 AM security
Wednesday, September 16, 2009 10:37 AM
Answers
-
Hi zmart,
you need also a reconfiguration of the applications which connect to the crm web service. They have to specify the orgname for the CrmAuthenticationToken.
There is also the possibility that these apps try to connect to the old installation.- Proposed as answer by Donna EdwardsMVP Thursday, September 17, 2009 1:59 PM
- Marked as answer by zmart Monday, September 21, 2009 9:26 AM
Wednesday, September 16, 2009 11:14 AM
All replies
-
Hi,
are there
- any outlook clients which aren't reconfigured?
- any other crm servers (role distribution)?
- any custom application which are connecting the webservices?
- any EAI-plattforms like BizTalk, ...?Wednesday, September 16, 2009 10:52 AM -
Hello,
thanks for reply.
Your questions:
1. There are Outlook Clients, i don´t know if they are reconfigured (if done, not by me ;))
2. No all roles are handled by one Server.
3. Yes, there are applications wich are conencting to webservices, custom applications and Scribe!
4. no.
I will check the Outlook clients. In a virtual Testenvironment these Exception is not thrown and there are no clients, that are connecting.
Regards
zmart- Proposed as answer by Donna EdwardsMVP Thursday, September 17, 2009 1:59 PM
- Unproposed as answer by Donna EdwardsMVP Thursday, September 17, 2009 1:59 PM
Wednesday, September 16, 2009 11:03 AM -
Hi zmart,
you need also a reconfiguration of the applications which connect to the crm web service. They have to specify the orgname for the CrmAuthenticationToken.
There is also the possibility that these apps try to connect to the old installation.- Proposed as answer by Donna EdwardsMVP Thursday, September 17, 2009 1:59 PM
- Marked as answer by zmart Monday, September 21, 2009 9:26 AM
Wednesday, September 16, 2009 11:14 AM -
Hello,
thanks for reply.
After reconfiguring the Outlook Clients the Exception was gone :)Monday, September 21, 2009 9:27 AM