Thursday, November 30, 2017

Microsoft.Crm.CrmException: attributeName when using join in LINQ in Dynamics CRM Plugin

Recently I came across this error when using LINQ in CRM custom workflow activity,

Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: attributeName


Below query will throw error,





Below works with out errors :)





Hope it helps!

Tuesday, September 16, 2014

Dynamics CRM Import Solution Failure Failure Error:- An item with the same key has already been added.


http://makdns.blogspot.com.au/2013/03/dynamics-crm-import-solution-failure.html OR remove reports from solution and import , later add the reports

CRM 2011 - Getting Parent Entity controls from child

 In CRM 2011 if you use 
window.top.opener.parent.Xrm.Page.ui  will return null.
I came across a scenario where I need to access the name of selected subgrid of the parent window from child window.  javascript code given below did the job,





Thursday, February 14, 2013

CRM 2011 this.$E_2.contentWindow.document.body' is null or not an object

We have encountered this error when doing the following steps,
1. Enter a characters for a lookup and auto resolve the data rather than selecting from lookup window
2. Save form
3. On save this error pops out.
Please visit Microsoft support (link below) to resolve the problem

http://support.microsoft.com/kb/2671694

Tuesday, October 16, 2012

CRM 2011 - CRM reports the following error in IE: ["Reporting Error", "The report cannot be displayed. (rsProcessingAborted)"]

There are many reasons for this error, I would like to share my finding regarding this.

After migrating CRM 4 to 2011, I received this error for most of the reports, Digging into Reporting Service Logs, I found the following error,

Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Microsoft.Crm.CrmException: An unexpected error occurred. System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://test23/CrmSandboxSdkListener-w3wp. The connection attempt lasted for a time span of 00:00:21.0091007. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.xx.x.xx:808. System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 172.xx.x.xx:808. --->

The solution is to, add Inbound Rule in Windows Firewall (in CRM Server) for tcp protocol using port 808




Thursday, October 11, 2012

CRM 2011 Outlook client error - "The caller id does not match the subscription owner id. Only subscription owners may perform subscription operations."

Recently I came accross this error when trying to open CRM options in outlook ( In Outlook Navigate to File --> CRM --> option)

One possible cause is, registry keys might have a different UserId, to resolve this, Go to Registry and check whether

HKEY_CURRENT_USER\Software\Microsoft\MSCRMClient\OutlookSyncSubscriptionId
and
HKEY_CURRENT_USER\Software\Microsoft\MSCRMClient\UserId

are similar, if not replace OutlookSyncSubscriptionId with UserId, then Restart Outlook.