> public PolicyEntity GetPolicyByPolicyPK(Guid policyPK) > { > > // get the requested entity > this.GetEntity("PoliciesSelectByPK", > this.CreateParameter("@PolicyPK", policyPK)); > > // check its status > if (this.Entity.StatusFK != (int)StatusCode.Pending) > { > // if it is not Pending then create a new entity, copy the data from the original entity > > // First copy the entity into a local copy so you can keep the values for copy. > PolicyEntity oSaveEntity = this.Entity; > > // Now ask the business object to just create you a new entity with default values included. > // This entity lives in the business object and should be the current entity. > this.NewEntity(); > > // Copy over the values you need and change the status. > this.Entity.someProperty = oSaveEntity.sameProperty; > } > > return this.Entity; > } >>This should get rid of the need to try to get your new entity back on the business object reference. Check your business object for HookSetDefaultValues to see what values are being set by default including any Primary Key value.