# 1.0.0.461 - Issue in adding a property to an agent

**URL:** https://www.finalbuilder.com/forums/t/1-0-0-461-issue-in-adding-a-property-to-an-agent/4844
**Category:** Discussion
**Created:** [May 30, 2012, 11:42am UTC](https://www.finalbuilder.com/forums/t/1-0-0-461-issue-in-adding-a-property-to-an-agent/4844 "2012-05-30T11:42:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ollis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/o/f1d935/32.png) [@ollis](https://www.finalbuilder.com/forums/u/ollis)
#### Post date: [May 30, 2012, 11:42am UTC](https://www.finalbuilder.com/forums/t/1-0-0-461-issue-in-adding-a-property-to-an-agent/4844/1 "2012-05-30T11:42:17Z")

</div>

Hi,

&nbsp;I tried to add a custom property to an agent to host code signing certificate thumbprint.  
  
I attempted to add property with namespace Certificate.Hash, property name Distribution and with value of 4351224b5aa320a03d4a2d3bfbc554a9c8e1fb53.  
  
Attempting to add this property caused the following error to Server Event Log:  
  
Exception: PropertyValueException   
Message: not-null property references a null or transient value Continua.Modules.Builds.Agents.AgentProperty.Value   
Stack Trace: at NHibernate.Engine.Nullability.CheckNullability(Object[] values, IEntityPersister persister, Boolean isUpdate)   
at NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate(Object entity, EntityKey key, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)   
at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object entity, String entityName, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)   
at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent event)   
at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent event)   
at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate(SaveOrUpdateEvent event)   
at NHibernate.Impl.SessionImpl.FireSaveOrUpdate(SaveOrUpdateEvent event)   
at NHibernate.Impl.SessionImpl.SaveOrUpdate(String entityName, Object obj)   
at NHibernate.Engine.Cascade.CascadeToOne(Object parent, Object child, IType type, CascadeStyle style, Object anything, Boolean isCascadeDeleteEnabled)   
at NHibernate.Engine.Cascade.CascadeCollectionElements(Object parent, Object child, CollectionType collectionType, CascadeStyle style, IType elemType, Object anything, Boolean isCascadeDeleteEnabled)   
at NHibernate.Engine.Cascade.CascadeCollection(Object parent, Object child, CascadeStyle style, Object anything, CollectionType type)   
at NHibernate.Engine.Cascade.CascadeOn(IEntityPersister persister, Object parent, Object anything)   
at NHibernate.Event.Default.AbstractFlushingEventListener.CascadeOnFlush(IEventSource session, IEntityPersister persister, Object key, Object anything)   
at NHibernate.Event.Default.AbstractFlushingEventListener.PrepareEntityFlushes(IEventSource session)   
at NHibernate.Event.Default.AbstractFlushingEventListener.FlushEverythingToExecutions(FlushEvent event)   
at NHibernate.Event.Default.DefaultFlushEventListener.OnFlush(FlushEvent event)   
at NHibernate.Impl.SessionImpl.Flush()   
at NHibernate.Transaction.AdoTransaction.Commit()   
at Continua.Data.Hibernate.NHibernateDatabase.CommitTransaction()   
at Continua.Modules.Builds.Agents.AgentManager.UpdatePropertiesForAgent(RegisteredAgent agent)   
at Continua.Modules.Builds.Agents.AgentManager.Register(String address, String hostname, Int32 port, String version)   
at Continua.Modules.Builds.Services.AgentRegistrationService.Register(String hostname, Int32 port, String version)   
at SyncInvokeRegister(Object , Object[] , Object[] )   
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)   
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)   
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)   
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)   
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [May 31, 2012, 7:45am UTC](https://www.finalbuilder.com/forums/t/1-0-0-461-issue-in-adding-a-property-to-an-agent/4844/2 "2012-05-31T07:45:55Z")

</div>

Hi Oilli,   
  
 Thanks for reporting this bug, is has been fixed in the new beta build available here:   
  
 [https://www.finalbuilder.com/forums/ContinuaCI/beta-general/beta-1-0-0-472-available/](https://www.finalbuilder.com/forums/ContinuaCI/beta-general/beta-1-0-0-472-available/)   
  
 Regards,   
 Paul.
