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