Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

MSSQL: Snapshot isolation transaction aborted

$
0
0

EDIT:

Some informations about context:

 

I have this error only on the vCACSelfService portal when I request a blueprint, ... On vCAC webpage (localhost), I can request without error and provisioning is ok.

 

Each services (MSSQL and vCAC) are started with a domain account.

 

Hi,

 

I have some troubles with my database. I have a blueprint with some custom properties. Values of custom properties are provided by property dictionnary with a valueExpression. (Try to reproduce P285 about vcac-52 operating guide.pdf)

When I request my blueprint I have an error :

Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'DynamicOps.ProfileModel.Profiles' directly or indirectly in database 'vCAC' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.

 

 

About my database, snapshot isolation is ON and  READ_COMMITTED_SNAPSHOT ON.

Deserializing valueExpression seems OK.

 

 

Full log :

The application encountered the following error: System.Reflection.TargetInvocationException: Property accessor 'IsAdditionalSettingsVisible' on object 'DynamicOps.Web.SelfService.Models.NewRequestModel' threw the following exception:'Object reference not set to an instance of an object.' ---> System.NullReferenceException: Object reference not set to an instance of an object. at DynamicOps.Web.SelfService.Models.NewRequestModel.get_IsProvisionIntoVisible() at DynamicOps.Web.SelfService.Models.NewRequestModel.get_IsAdditionalSettingsVisible() --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.Mvc.DataAnnotationsModelValidator.<Validate>d__1.MoveNext() at System.Web.Mvc.ModelValidator.CompositeModelValidator.<Validate>d__5.MoveNext() at System.Web.Mvc.DefaultModelBinder.OnModelUpdated(ControllerContext controllerContext, ModelBindingContext bindingContext) at System.Web.Mvc.DefaultModelBinder.BindComplexModel(ControllerContext controllerContext, ModelBindingContext bindingContext) at System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) at System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

 

An error occurred while processing this request. Inner Exception: <?xml version="1.0" encoding="utf-8" standalone="yes"?> <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <code></code> <message xml:lang="en-US">An error occurred while processing this request.</message> <innererror> <message>3960</message> <type>DynamicOps.Repository.Runtime.Common.RepositorySqlException</type> <stacktrace></stacktrace> <internalexception> <message>An error occurred while updating the entries. See the inner exception for details.</message> <type>System.Data.UpdateException</type> <stacktrace> at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)&#xD; at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)&#xD; at System.Data.Services.Providers.ObjectContextServiceProvider.SaveChanges()&#xD; at System.Data.Services.DataService`1.BatchDataService.HandleBatchContent(Stream responseStream)</stacktrace> <internalexception> <message>Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'DynamicOps.ProfileModel.Profiles' directly or indirectly in database 'vCAC' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.</message> <type>System.Data.SqlClient.SqlException</type> <stacktrace> at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)&#xD; at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)&#xD; at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&amp; dataReady)&#xD; at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)&#xD; at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task&amp; task, Boolean asyncWrite)&#xD; at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task&amp; task, Boolean asyncWrite)&#xD; at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)&#xD; at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()&#xD; at System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues)&#xD; at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)</stacktrace> </internalexception> </internalexception> </innererror> </error>

 

An error occurred while updating the entries. See the inner exception for details. Inner Exception: Snapshot isolation transaction aborted due to update conflict. You cannot use snapshot isolation to access table 'DynamicOps.ProfileModel.Profiles' directly or indirectly in database 'vCAC' to update, delete, or insert the row that has been modified or deleted by another transaction. Retry the transaction or change the isolation level for the update/delete statement.

 

Any help would be very very appreciate


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>