Подскажите, пожалуйста - иногда, при сохранении контакта через OData получаем вот такую ошибку: Для параметра "P2" со значением null необходимо указать тип данных.
Подскажите, чего ей не хватает?
version="1.0" encoding="utf-8"?> xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> /> xml:lang="ru-RU">An error occurred while processing this request.>>>Для параметра "P2" со значением null необходимо указать тип данных>>Terrasoft.Common.InvalidObjectStateException>> at Terrasoft.DB.MSSql.MSSqlExecutor.AddQueryParameterToSqlParameters(SqlParameterCollection sqlParameters, QueryParameter queryParameter)
at Terrasoft.DB.MSSql.MSSqlExecutor.QueryParametersToDBParameters(QueryParameterCollection queryParameters, DbParameterCollection dbParameters)
at Terrasoft.Core.DB.DBExecutor.Execute(String sqlText, QueryParameterCollection parameters)
at Terrasoft.Core.DB.Query.Execute()
at Terrasoft.Configuration.ContactEventsProcess`1.UpdateCampaignTargetCustomerScriptExecute(ProcessExecutingContext context)
at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ProcessQueue(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.OnExecuted(Object sender, ProcessActivityAfterEventArgs e)
at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ProcessQueue(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.OnExecuted(Object sender, ProcessActivityAfterEventArgs e)
at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ProcessQueue(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.OnExecuted(Object sender, ProcessActivityAfterEventArgs e)
at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ProcessQueue(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.OnExecuted(Object sender, ProcessActivityAfterEventArgs e)
at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ProcessQueue(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.OnExecuted(Object sender, ProcessActivityAfterEventArgs e)
at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ProcessQueue(ProcessExecutingContext context)
at Terrasoft.Configuration.ContactEventsProcess`1.ThrowEvent(ProcessExecutingContext context, String message)
at Terrasoft.Core.Entities.Entity.ThrowEvent(String message, EventArgs eventArgs)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Terrasoft.Core.Entities.Entity.OnSaved(EntityAfterEventArgs e)
at Terrasoft.Core.Entities.Entity.Save(Boolean validateRequired)
at Terrasoft.Core.Entities.Services.EntityLazyProxy.SaveChanges()
at Terrasoft.Core.Entities.Services.ServiceContext.SaveChanges()
at System.Data.Services.DataService`1.BatchDataService.HandleBatchContent(Stream responseStream)>>>