Skip to content

Exception: Could Not Update an Entity Attribute #72

@mikedotmundy

Description

@mikedotmundy

Please go through all the tasks below

  • Check this box only after you have successfully completed both the above tasks

Please provide a brief description of the problem. Please do not forget to attach the relevant screenshots from your side.

Last week I updated our Room Management 2.0 plugin from v2.6.3.16 to v2.6.5.16. Since then, it has been throwing an exception regularly, at least a couple per day.

Image

Stack traces:

at Rock.Attribute.Helper.UpdateAttributes(Type type, Nullable`1 entityTypeId, String entityQualifierColumn, String entityQualifierValue, RockContext rockContext)
   at Rock.Workflow.ActionContainer.UpdateAttributes()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
   at System.Data.Entity.Core.Objects.ObjectContext.PrepareToSaveChanges(SaveOptions options)
   at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions options, Boolean executeInExistingTransaction)
   at System.Data.Entity.Internal.InternalContext.SaveChanges()
   at Rock.Data.DbContext.SaveChangesInternal() in \Rock\Data\DbContext.cs:line 393
   at Rock.Data.DbContext.SaveChanges(SaveChangesArgs args) in \Rock\Data\DbContext.cs:line 360
   at Rock.Data.DbContext.SaveChanges(Boolean disablePrePostProcessing) in \Rock\Data\DbContext.cs:line 308
   at Rock.Attribute.Helper.UpdateAttribute(FieldAttribute property, Nullable`1 entityTypeId, String entityQualifierColumn, String entityQualifierValue, RockContext rockContext) in \Rock\Attribute\Helper.cs:line 393
   at Rock.Attribute.Helper.UpdateAttributes(Type type, Nullable`1 entityTypeId, String entityQualifierColumn, String entityQualifierValue, RockContext rockContext) in \Rock\Attribute\Helper.cs:line 176

Expected Behavior

No exception is created.

Actual Behavior

Exception is created.

Steps to Reproduce

While I am not sure exactly what is causing it, I believe it has something to do with the Approval Process Workflow.

Rock Version

v17.3

Plugin Version

v2.6.5.16

Client Culture Setting

en-US

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions