RSS

Monthly Archives: September 2009

Could not find GUID for server when opening CRM

The following error occured with one of our clients when they opened CRM.

Error while finding AD GUID for ServerName HB1781$

Crm Exception: Message: Could not find GUID for server: HB1781$, ErrorCode: -2147214038, InnerException: System.Runtime.InteropServices.COMException (0x800703FA): Retrieving the COM class factory for component with CLSID {080D0D78-F421-11D0-A36E-00C04FB950DC} failed due to the following error: 800703fa.

After doing some googling I found this post telling me to change some settings in IIS.

Set “Load User Profile” to True for the IIS Application Pool “Microsoft Team Foundation Server Application Pool”

To my surprise it seemed to solve the problem. I changed it for the CrmAppPool and all users could now login without any problems.
I still don’t know how this problem could occur, but changing this settings seems to do the trick.

 
5 Comments

Posted by on September 8, 2009 in CRM 4

 

Tags: , ,

Get the name of a lookup that is not resolved

I often have to check the name value of a lookup field.
In normal cases one would use the code crmForm.all.new_lookupfield.DataValue[0].name to retrieve this value.

In case of an ambiguous or failed lookup, this datavalue will be null.

Ambiguous lookup
LookupAmbiguous

What I found out using the IE Developer toolbar was that this kind of lookups used a <span> element to display this “unresolved” state of a lookup.
Both resolved and unresolved lookups have this Span. The only difference will be the classname. So if you like, you can also filter on the className.

LookupAmbiguousHTML

So, to access the Text of this Lookup I could use crmForm.all.metris_blueprintid_d.getElementsByTagName(“span”)[0].outerText

 
Leave a comment

Posted by on September 7, 2009 in CRM 4

 

Tags: ,

 
Follow

Get every new post delivered to your Inbox.