Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin no longer works with Rock v8.3 #2

Open
nathanp opened this issue Sep 24, 2018 · 6 comments
Open

Plugin no longer works with Rock v8.3 #2

nathanp opened this issue Sep 24, 2018 · 6 comments

Comments

@nathanp
Copy link

nathanp commented Sep 24, 2018

When trying to access any of the pages used by the plugin (Attendance Overview, Record Headcounts, etc.) the follow error is returned:

NotSupportedException

 in EntityFramework
Message
The specified type member 'GroupId' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.

Stack Trace

   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MemberAccessTranslator.TypedTranslate(ExpressionConverter parent, MemberExpression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.EqualsTranslator.TypedTranslate(ExpressionConverter parent, BinaryExpression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.BinaryTranslator.TypedTranslate(ExpressionConverter parent, BinaryExpression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.BinaryTranslator.TypedTranslate(ExpressionConverter parent, BinaryExpression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.BinaryTranslator.TypedTranslate(ExpressionConverter parent, BinaryExpression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateLambda(LambdaExpression lambda, DbExpression input)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.AggregateTranslator.Translate(ExpressionConverter parent, MethodCallExpression call)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.MethodCallTranslator.TypedTranslate(ExpressionConverter parent, MethodCallExpression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.TranslateExpression(Expression linq)
   at System.Data.Entity.Core.Objects.ELinq.ExpressionConverter.Convert()
   at System.Data.Entity.Core.Objects.ELinq.ELinqQueryState.GetExecutionPlan(Nullable`1 forMergeOption)
   at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__6()
   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
   at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
   at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
   at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
   at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
   at Plugins.com_bricksandmortarstudio.CheckInExtensions.HeadcountMetricValueList.BindGrid() in c:\inetpub\Rock\Plugins\com_bricksandmortarstudio\CheckInExtensions\HeadcountValueList.ascx.cs:line 338
   at Plugins.com_bricksandmortarstudio.CheckInExtensions.HeadcountMetricValueList.OnLoad(EventArgs e) in c:\inetpub\Rock\Plugins\com_bricksandmortarstudio\CheckInExtensions\HeadcountValueList.ascx.cs:line 109
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
@wmsheeler
Copy link

wmsheeler commented Oct 11, 2018

We are experiencing the same problem on version 8.3

@JoshuaMaiorino
Copy link

Same in v.8.4

@arranf
Copy link
Member

arranf commented Nov 7, 2018

This is fixed and will be pushed to the rock store before this weekend

@nathanp
Copy link
Author

nathanp commented Dec 4, 2018

Hi Arran,

I'm still getting these same errors in v1.2.1 of the plugin.

@knolly42
Copy link

Found an issue with the SQL in the migration source relating to schema changes on account of the new AttendanceOccurrence. Once fixed, I could get the Metric Hierarchy working, but the values are not populated by the sync job, so perhaps another issue to debug I guess.

@stewmystre
Copy link

Hey @knolly42 any chance of a pull request with your fixes? @arranf any idea if this will still function with version 11.3 release? Are you still supporting this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants