# Error triggering build. Message: Exception: AggregateException

**URL:** https://www.finalbuilder.com/forums/t/error-triggering-build-message-exception-aggregateexception/5866
**Category:** Bugs
**Created:** [November 8, 2013, 11:16am UTC](https://www.finalbuilder.com/forums/t/error-triggering-build-message-exception-aggregateexception/5866 "2013-11-08T11:16:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [November 8, 2013, 11:16am UTC](https://www.finalbuilder.com/forums/t/error-triggering-build-message-exception-aggregateexception/5866/1 "2013-11-08T11:16:56Z")

</div>

| Build Trigger&nbsp;  
  
 Error triggering build. Message: Exception: AggregateException&nbsp;  
 Message: One or more errors occurred.&nbsp;  
 Stack Trace:&nbsp;  
  
 Exception: GenericADOException&nbsp;  
 Message: could not update: [Continua.Modules.Builds.Build#3463][SQL: UPDATE builds\_build SET BuildNumber = ?, Version = ?, Started = ?, Finished = ?, Queued = ?, Pinned = ?, PinComment = ?, Priority = ?, SummaryState = ?, BuildSuccess = ?, OnlyNotifyTriggeringUsers = ?, QuietPeriodLength = ?, QuietPeriodExpiry = ?, TimeOnQueue = ?, IsFeatureBranchBuild = ?, UsesDefaultBranch = ?, CleanedUp = ?, HasNewChanges = ?, Branches = ?, State = ?, status\_message = ?, status\_datetime = ?, ConfigurationVersionId = ?, ConfigurationId = ?, WorkspaceId = ?, UserId = ?, PinUserId = ?, TriggerId = ?, VariableNamespaceId = ? WHERE Id = ?]&nbsp;  
 Stack Trace: at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
 at NHibernate.Persister.Entity.AbstractEntityPersister.UpdateOrInsert(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
 at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Int32[] dirtyFields, Boolean hasDirtyCollection, Object[] oldFields, Object oldVersion, Object obj, Object rowId, ISessionImplementor session)&nbsp;  
 at NHibernate.Action.EntityUpdateAction.Execute()&nbsp;  
 at NHibernate.Engine.ActionQueue.Execute(IExecutable executable)&nbsp;  
 at NHibernate.Engine.ActionQueue.ExecuteActions(IList list)&nbsp;  
 at NHibernate.Engine.ActionQueue.ExecuteActions()&nbsp;  
 at NHibernate.Event.Default.AbstractFlushingEventListener.PerformExecutions(IEventSource session)&nbsp;  
 at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)&nbsp;  
 at NHibernate.Impl.SessionImpl.Flush()&nbsp;  
 at NHibernate.Transaction.AdoTransaction.Commit()&nbsp;  
 at Continua.Shared.Data.Hibernate.NHibernateDatabase.SaveChanges()&nbsp;  
 at Continua.Modules.Builds.Triggers.TriggerController.RestartQuietPeriod(IApplicationSessionContext session, Build quietPeriodBuild, IBuildManager buildManager)&nbsp;  
 at Continua.Modules.Builds.Triggers.TriggerController.DoQueueBuild(Guid triggerId, IEnumerable`1 buildChangesets, IApplicationSessionContext session, Boolean onlyNotifyTriggeringUsers)&nbsp;  
 at Continua.Modules.Builds.Triggers.TriggerController.QueueBuildChangesetBuild(Guid triggerId, ChangesetDTO change, ICoreApplicationContext context, Boolean onlyNotifyTriggeringUsers)&nbsp;  
 at Continua.Modules.Builds.Triggers.TriggerMessageContext.\<\>c\_\_DisplayClass1.b\_\_0()&nbsp;  
 at System.Threading.Tasks.Task.Execute()&nbsp;  
  
 Exception: NpgsqlException&nbsp;  
 Message: FEHLER: 40P01: Verklemmung (Deadlock) entdeckt&nbsp;  
 Stack Trace: at Npgsql.NpgsqlState.d\_\_a.MoveNext()&nbsp;  
 at Npgsql.ForwardsOnlyDataReader.GetNextResponseObject()&nbsp;  
 at Npgsql.ForwardsOnlyDataReader.GetNextRowDescription()&nbsp;  
 at Npgsql.ForwardsOnlyDataReader.NextResult()&nbsp;  
 at Npgsql.ForwardsOnlyDataReader..ctor(IEnumerable`1 dataEnumeration, CommandBehavior behavior, NpgsqlCommand command, NotificationThreadBlock threadBlock, Boolean synchOnReadError)&nbsp;  
 at Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb)&nbsp;  
 at Npgsql.NpgsqlCommand.ExecuteNonQuery()&nbsp;  
 at NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)&nbsp;  
 at NHibernate.AdoNet.NonBatchingBatcher.AddToBatch(IExpectation expectation)&nbsp;  
 at NHibernate.Persister.Entity.AbstractEntityPersister.Update(Object id, Object[] fields, Object[] oldFields, Object rowId, Boolean[] includeProperty, Int32 j, Object oldVersion, Object obj, SqlCommandInfo sql, ISessionImplementor session)&nbsp;  
  
 |

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 11, 2013, 10:26am UTC](https://www.finalbuilder.com/forums/t/error-triggering-build-message-exception-aggregateexception/5866/2 "2013-11-11T10:26:34Z")

</div>

Hi Christian   
  
 We have been looking into this issue for a few weeks now (we have another user with the same issue), but so far we have been unable to reproduce the problem here, which makes it difficult to know whether it’s really fixed or not. If there is any information you can share with us about your setup (privately via email) that would be great.
