Generic sql error

Error Details:

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 &quot;Mark As Answer&quot; on the post and &quot;Mark as Helpful&quot;

  • Remove From My Forums
  • Вопрос

  • From BizTalk application I do sending Execute request to CRM for create/update. But sometimes(not all times) CRM throw error with this content.In my application implemented
    «Resource Dispenser» pattern and all messages are sending to CRM  by different ports(there are 5 ports for CRM).  Who can explore me cause of this error ?


    I couldn’t found any useful information about this.

    Error Context:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <s:Fault xmlns:s="http://www.w3.org/2003/05/soap-envelope">
    <s:Code>
    <s:Value>s:Sender</s:Value>
    </s:Code>
    <s:Reason>
    <s:Text xml:lang="en-US">Generic SQL error.</s:Text>
    </s:Reason>
    <s:Detail>
    <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <ActivityId>88a2d2da-7fda-4ff0-9ad6-e753f47f43ee</ActivityId>
    <ErrorCode>-2147204784</ErrorCode>
    <ErrorDetails xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
    <Message>Generic SQL error.</Message>
    <Timestamp>2017-12-20T12:07:53.8045459Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true"/>
    <InnerFault>
    <ActivityId>88a2d2da-7fda-4ff0-9ad6-e753f47f43ee</ActivityId>
    <ErrorCode>-2147204784</ErrorCode>
    <ErrorDetails xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
    <Message>Generic SQL error.</Message>
    <Timestamp>2017-12-20T12:07:53.8045459Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true"/>
    <InnerFault>
    <ActivityId>88a2d2da-7fda-4ff0-9ad6-e753f47f43ee</ActivityId>
    <ErrorCode>-2147204784</ErrorCode>
    <ErrorDetails xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
    <Message>Generic SQL error.</Message>
    <Timestamp>2017-12-20T12:07:53.8045459Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true"/>
    <InnerFault>
    <ActivityId>88a2d2da-7fda-4ff0-9ad6-e753f47f43ee</ActivityId>
    <ErrorCode>-2147204784</ErrorCode>
    <ErrorDetails xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/>
    <Message>Generic SQL error.</Message>
    <Timestamp>2017-12-20T12:07:53.8045459Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true"/>
    <InnerFault>
    <ActivityId>88a2d2da-7fda-4ff0-9ad6-e753f47f43ee</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:b="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: #45288ED5
    </Message>
    <Timestamp>2017-12-20T12:07:53.8045459Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true"/>
    <InnerFault i:nil="true"/>
    <OriginalException i:nil="true"/>
    <TraceText i:nil="true"/>
    </InnerFault>
    <OriginalException i:nil="true"/>
    <TraceText i:nil="true"/>
    </InnerFault>
    <OriginalException i:nil="true"/>
    <TraceText i:nil="true"/>
    </InnerFault>
    <OriginalException i:nil="true"/>
    <TraceText i:nil="true"/>
    </InnerFault>
    <OriginalException i:nil="true"/>
    <TraceText i:nil="true"/>
    </OrganizationServiceFault>
    </s:Detail>
    </s:Fault>


    Regards Edgar Tadevosyan

I’ve unregistered all plugins and deactivated all workflows for the contact entity and also there is nothing at the on save event of the contact entity in MS Dynamics CRM. Also, I’ve restarted all async services and even IIS. But still I am facing SQL Server Generic error. Here in the following is the log file of the error.

Update: Error Logging Details

Unhandled 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">
    <KeyValuePairOfstringanyType>
      <d2p1:key>CallStack</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
   at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>Generic SQL error.</Message>
  <Timestamp>2015-10-21T12:23:26.1555718Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

Note: this only happen to contact entity

Доброе время суток, уважаемые коллеги)
Третий день не могу справиться с ошибкой Generic SQL error. Смотрел по форуму , есть Такое с репорт сервером, но не мой случай.
Если сталкивались — поможите!
Задача: плагин на пост-криейт квот (у меня СРМ 4.0 на англицком) создает строки квоте продактс(квоте детайлс) на основании данных из родительской (для квот) опортюнити.
Вот код, создающий строки из существующих продуктов. Прайс лист учтен, входящие данные полностью корректны. Комменты не убираю, просто что бы было видно какие методы использовались.

Код:

 
#region Create quotedetails
if (_newQuoteProp != null)
{
 
try
{
foreach (DictionaryEntry cDe in _newQuoteProp)
{
if (cDe.Value.ToString() == "")
{
continue;
}
else
{
quotedetail existProduct = new quotedetail();
 
//add product & unit
LookupProperty uomid = Factory.GetUnitLookup(service);
LookupProperty productid = Factory.GetProductLookup(service, cDe.Key.ToString());
 
if (uomid != null && productid != null)
{
existProduct.uomid = uomid.Value;
//existProduct.uomid.name = uomid.Name;
existProduct.productid = productid.Value;
//existProduct.productid.name = productid.Name;
// for dynamic entity
//existProduct.Properties.Add(uomid);
//existProduct.Properties.Add(productid);
}
 
//DynamicEntity existProduct = new DynamicEntity();
//existProduct.Name = "quotedetail";
//existProduct.Properties.Add(new StringProperty("quantity", "1"));
//existProduct.Properties.Add(quoteId);
//Microsoft.Crm.Sdk.StringProperty p = new StringProperty("priceperunit", cDe.Value.ToString());
//existProduct.Properties.Add(p);
//CrmBoolean c = new CrmBoolean(true);
//CrmBooleanProperty cPrice = new CrmBooleanProperty("ispriceoverridden", c);
//CrmBooleanProperty cProduct = new CrmBooleanProperty("isproductoverridden", c);
//existProduct.ispriceoverridden = cPrice.Value;
//existProduct.ispriceoverridden.name = cPrice.Name;
//existProduct.isproductoverridden = cProduct.Value;
//existProduct.isproductoverridden.name = cProduct.Name;
 
 
//CrmNumber n = new CrmNumber(lineNumber);
//CrmNumberProperty N = new CrmNumberProperty("lineitemnumber", n);
//existProduct.lineitemnumber = N.Value;
LookupProperty quoteId = new LookupProperty("quoteid", new Lookup("quote", quoteGUID));
existProduct.quoteid = quoteId.Value;
//existProduct.quoteid.name = quoteId.Name;
 
CrmDecimal dec = new CrmDecimal(1);
CrmDecimalProperty quant = new CrmDecimalProperty("quantity", dec);
existProduct.quantity = quant.Value;
 
 
CrmMoney money = new CrmMoney(Convert.ToDecimal(cDe.Value.ToString()));
CrmMoneyProperty priceperUnit = new CrmMoneyProperty("priceperunit", money);
existProduct.priceperunit = priceperUnit.Value;
existProduct.description = cDe.Key.ToString().Remove(0, 3);
 
//existProduct.productdescription = cDe.Key.ToString().Remove(0,3);
//existProduct.owninguser = new UniqueIdentifier(context.UserId);
 
 
// create of transactioncurrencyid not allowed!!!
//LookupProperty taci = new LookupProperty("transactioncurrencyid", new Lookup("transactioncurrency", new Guid(((Lookup)entity.Properties["transactioncurrencyid"]).Value.ToString())));
//existProduct.transactioncurrencyid = taci.Value;
//existProduct.transactioncurrencyid.name = taci.Name;
 
//TargetCreateQuoteDetail target = new TargetCreateQuoteDetail();
////TargetCreateDynamic target = new TargetCreateDynamic();
//target.QuoteDetail = existProduct;
//CreateRequest create = new CreateRequest();
//create.Target = target;
//CreateResponse responce = (CreateResponse)service.Execute(create);
 
 
Guid quotedetailId = service.Create(existProduct);
 
//Guid k = service.Create(existProduct);
//KeyProperty k = new KeyProperty("quotedetailid", new Key());
//existProduct.quotedetailid.Value = k;
//Guid quotedetailId = responce.id;
lineNumber++;
 
// Don't forget check if quotedetail exist!
}
}
}
catch (System.Web.Services.Protocols.SoapException e)
{
throw new Exception ("Wrong plugin execution!n" + e.Message + "n" + e.StackTrace + e.Data);
}
}
 
#endregion Create quotedetails

Прлучаемые ошибки:
InnerText «n 0x80044150n Generic SQL error.n Platformn»

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Generic error snmp error 5
  • Generic error pubg
  • Generic error msg ошибка
  • Generic error during the ssl handshake
  • Generic bluetooth radio код ошибки 10

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии