Script Errors in Microsoft Dynamics CRM 2011 – CRM Presence – Known Issues

By - October 18, 2011

RSM recently had an issue with all users on a particular environment receiving Internet Explorer script errors in the Microsoft Dynamics CRM 2011 Outlook client. The errors were primarily related to trying to view Dynamics CRM Accounts and Contacts that had JavaScript running on their Dashboard in Dynamics CRM 2011.

The log file below is showing the message of “Library not registered” as well as information around enabled “presence” which we found to be peculiar.

Log File:

Microsoft Dynamics CRM Error Report Contents

<CrmScriptErrorReport>

<ReportVersion>1.0</ReportVersion>

<ScriptErrorDetails>

<Message>Library not registered.</Message>

<Line>7</Line>

<URL>/_static/_grid/presence.htc?ver=443546781</URL>

<PageURL>/userdefined/edit.aspx?_gridType=1&etc=1&id=%7bF71D5AAE-D88B-E011-A2FC-842B2BFAE0E5%7d&pagemode=iframe&rskey=12271718&sitemappath=Workplace%7cMyWork%7cnav_dashboards</PageURL>

<Function>prepareEnablePresence()</Function>

<CallStack>

<Function>prepareEnablePresence()</Function>

</CallStack>

</ScriptErrorDetails>

<ClientInformation>

<BrowserUserAgent>Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET CLR 1.1.4322; .NET4.0E)</BrowserUserAgent>

<BrowserLanguage>en-us</BrowserLanguage>

<SystemLanguage>en-us</SystemLanguage>

<UserLanguage>en-us</UserLanguage>

<ScreenResolution>1280×1024</ScreenResolution>

<ClientName>Web</ClientName>

<ClientTime>2011-06-09T14:16:01</ClientTime>

</ClientInformation>

<ServerInformation>

<OrgLanguage>1033</OrgLanguage>

<OrgCulture>1033</OrgCulture>

<UserLanguage>1033</UserLanguage>

<UserCulture>1033</UserCulture>

<OrgID>{3E3E16AD-4B82-E011-97AA-842B2BFAE0E5}</OrgID>

<UserID>{A8B56B7B-D686-E011-97AA-842B2BFAE0E5}</UserID>

<CRMVersion>5.0.9688.1045</CRMVersion>

</ServerInformation>

</CrmScriptErrorReport>

After changing the notification settings within the system to not send messages to Microsoft, the users began experienceing the following script error.

Our initial thoughts were that this had something to do with the Internet Explorer settings not playing well with Dynamics CRM, so in following the normal troubleshooting steps in regards to Internet Explorer and Dynamics CRM – we had added the Dynamics CRM URL to the Trusted Sites and Intranet Sites, modified the advanced internet options with no success.

After further research we found that the IM presence setting is an instant messaging setting around Microsoft Lync (Previously Office Communicator) that if integrated correctly will display the current status for users, contacts, opportunities, or leads. We discovered that while this setting was enabled, it seemed to be causing some cross-confusion with the JavaScript running on the account and contact pages.

We found that the IM presence option is a setting in the general system settings within Microsoft Dynamics CRM. By navigating to:

Settings>>Administration>>System Settings you can select to disable this setting:

By: Bill Caldwell – Colorado Microsoft Dynamics CRM Partner 

Follow Bill on Google+

Receive Posts by Email

Subscribe and receive notifications of new posts by email.