student student - 1 month ago 17
C# Question

An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide

Following this blog, we've setup the

SaveAccount
method inside
DAL_AccountEntity.cs
class for our Microsoft Dynamics CRM SDK project.

Whenever we try to add a new record using
OrganizationService.Create


It throws the following error:


Server Error in '/' Application.






An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide.

Exception Details: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred. Contact a system administrator or refer to the Microsoft Dynamics CRM SDK troubleshooting guide.


Source Error:

Line 28: if (objAccountModel.AccountID == Guid.Empty)
Line 29: {
Line 30: objAccountModel.AccountID = service.Create(AccountEntity);
Line 31: }
Line 32: else

Answer

It seems ActivityClose plugin is registered on creation of any entity. Try disabling this plugin using customization.

  • Go to setting
  • customization
  • customize the system
  • SDK message processing steps
  • locate ActivityFeeds.Plugins.ActivityClose plugin registered on All entity(Check primary object type code column) and disable it.