Error Details:
Error Message: Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An error occurred in the FollupupPlugin plug-in. at Microsoft.Crm.Sdk.Samples.Welcome.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Asynchronous.V5ProxyPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Asynchronous.EventOperation.InvokePlugin(AsyncExecutionContext context, IPlugin pluginInstance) Inner Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail: <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"><ErrorCode>-2147204784</ErrorCode><ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /><Message>Generic SQL error.</Message><Timestamp>2014-06-11T06:56:19.2862541Z</Timestamp><InnerFault><ErrorCode>-2147204784</ErrorCode><ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /><Message>Generic SQL error.</Message><Timestamp>2014-06-11T06:56:19.2862541Z</Timestamp><InnerFault><ErrorCode>-2147204784</ErrorCode><ErrorDetails xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /><Message>Generic SQL error.</Message><Timestamp>2014-06-11T06:56:19.2862541Z</Timestamp><InnerFault><ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /><Message>System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8282382C</Message><Timestamp>2014-06-11T06:56:19.2862541Z</Timestamp><InnerFault i:nil="true" /><TraceText i:nil="true" /></InnerFault><TraceText i:nil="true" /></InnerFault><TraceText i:nil="true" /></InnerFault><TraceText i:nil="true" /></OrganizationServiceFault> at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
Scenario: I have triggered a plugin in Async mode for send Email functionality for more than 5000+ records.
Plug-in started on - 11:52 A.M and Failed on around 12.28 P.M [duration of more than 30 mins] , So Failed with above mentioned error message "Generic SQL Error"
Is there any workaround for this situation?
Basically i have thought of Timeouts,Query Optimization.
Kindly Suggest any other soltuin for the same.
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"