Question

Photo of Don Smallman

0

Can't add or delete Addresses

Hi,

Does anyone know why all of a sudden I can not change addresses.  I can not remove people from families either, but I suspect that has to do whit the address issue as well.  I am on the latest version of Rock.

Thanks,

Don

  • Photo of Jeremy Hoff

    0

    Hi Don,

    I saw over on the RocketChat that you're up and running thanks to a <runtime> block to the web.config due to an update to SQL Server 2012 SP4.  

    (Added this relevant StackOverflow link in case there is another who runs into a similar problem)

    https://stackoverflow.com/questions/34204990/entity-framework-cannot-update-database

    It sounds like the BEST way to go is to avoid SP4 and climb all the way to SQL Server 2017 or higher.

    Thanks Don,

    • Don Smallman

      Yes, thank you. I guess I just got tunnel vision during the upgrade. It said go to SP4 and so I did, without thinking. Is there anyway to get that recommendation removed from the 8.6 upgrade requirements and add something different?

  • Photo of Jeremy Hoff

    0

    Hi Don - other than a lack of security rights for the user that is logged in, I'm afraid it's hard to say without some additional details. Is there an error or any notification that pops up? Are you able to login as an "Admin" user and repeat the symptom?  Does this happen for all families, or just one family in particular?

    I am on the latest version of Rock.

    I presume 8.7? I updated the Demo server at https://rock.rocksolidchurchdemo.com/ and as the "Admin" user it seems to work....

    .....sorry I'm not more help. :-)

    • Don Smallman

      It happens to anyone and everyone, existing or new. Is it possible that the upgrade changed something on that table? I also had another issue with another church that some of the server settings were changed after the last 2 upgrades.
      "Allow Snapshot Isolation: Yes" This was changed to No
      "Is Read Committed Snapshot On: Yes" This was changed to No

    • Don Smallman

      Error


      Unable to find an entry point named 'SetClrFeatureSwitchMap' in DLL 'SqlServerSpatial110.dll'.
      at Microsoft.SqlServer.Types.GLNativeMethods.SetClrFeatureSwitchMap(Int32 clrFeatureSwitchMap)
      at Microsoft.SqlServer.Types.SqlGeometry.IsValidExpensive()
      at Microsoft.SqlServer.Types.SqlGeometry.Construct(GeoData g, Int32 srid)
      at Microsoft.SqlServer.Types.SqlGeometry.GeometryFromText(OpenGisType type, SqlChars text, Int32 srid)
      at Microsoft.SqlServer.Types.SqlGeometry.Parse(SqlString s)
      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      at System.Data.Entity.SqlServer.SqlSpatialServices.GeometryFromText(String wellKnownText)
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.ExtentPlaceholderCreator.InitializeSpatialTypeDefaultMap()
      at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value()
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.ExtentPlaceholderCreator.TryGetDefaultValue(PrimitiveType primitiveType, Object& defaultValue)
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.ExtentPlaceholderCreator.GetPropagatorResultForPrimitiveType(PrimitiveType primitiveType, PropagatorResult& result)
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.ExtentPlaceholderCreator.Visit(EdmMember node)
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.ExtentPlaceholderCreator.CreateEntitySetPlaceholder(EntitySet entitySet)
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.Visit(DbScanExpression node)
      at System.Data.Entity.Core.Mapping.Update.Internal.Propagator.Visit(DbProjectExpression node)
      at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.<ProduceDynamicCommands>d__a.MoveNext()
      at System.Linq.Enumerable.<ConcatIterator>d__591.MoveNext() at System.Data.Entity.Core.Mapping.Update.Internal.UpdateCommandOrderer..ctor(IEnumerable1 commands, UpdateTranslator translator)
      at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.ProduceCommands()
      at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.Update()
      at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess) at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions options, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction) at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func1 operation)
      at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions options, Boolean executeInExistingTransaction)
      at System.Data.Entity.Internal.InternalContext.SaveChanges()
      at Rock.Data.DbContext.SaveChanges(Boolean disablePrePostProcessing)
      at Rock.Model.LocationService.Get(String street1, String street2, String city, String state, String postalCode, String country, Group group, Boolean verifyLocation, Boolean createNewLocation)
      at Rock.Model.LocationService.Get(String street1, String street2, String city, String state, String postalCode, String country, Boolean verifyLocation)
      at RockWeb.Blocks.Crm.PersonDetail.EditGroup.<>c__DisplayClass54.<btnSave_Click>b__4b() in c:\inetpub\wwwroot\Blocks\Crm\PersonDetail\EditGroup.ascx.cs:line 1368
      at Rock.Data.DbContext.WrapTransaction(Action action)
      at RockWeb.Blocks.Crm.PersonDetail.EditGroup.btnSave_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\Blocks\Crm\PersonDetail\EditGroup.ascx.cs:line 1136
      at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e)
      at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    • Don Smallman

      Jeremy, where and what should the permissions be? The Location table has No specific permissions and the Database itself only seems to have RockUser permissions "Connect".
      This makes no sense and I am able make changes via the RMS UI.

    • Don Smallman

      Looks like the user is configured properly. I can not change DB Owner to RockUser. I get the folllowing: The proposed new database owner is already a user or aliased in the database.

  • Photo of Angela Gant

    0

    I have tried the suggestion above using the <runtime> block but it does not resolve my address update/entry issue.  I am running SQL Server 2017. Assistance please!!


    • Don Smallman

      I believe that suggestion, only works for an issue with the SQL 2012 SP3 & SP4 service packs. Because one or both of those service pack have an issue.

  • Photo of Don Smallman

    0

    Hi Angela, what is your exact issue and what error(s) are you getting?  Can you go to the RMS System information page and check these settings are set to yes?  If not you would change these from your SQL Database properties.

    Capture0419.JPG


  • Photo of Angela Gant

    0

    Issue:  When trying to update or add new addresses I receive the following error:  "Error 57|error|500|Exception has been thrown by the target of an invocation."

    Checking the System Information - Diagnostics, both the options you highlighted are set to "No".  I do not know how to change the setting in the SQL Database properties.

  • Photo of Angela Gant

    0

    After speaking with my host server troubleshooting team, I was informed that I am on a shared server and that I do not have access to change the "Snapshot Isolation Settings".  What is interesting is that everything has been working fine.  I'm not sure what changed.  We have been with the same company since we started using RockRMS.  So I'm thinking that enabling "Snapshot Isolation Settings" is not the issue.

    • Don Smallman

      Well it fixed my issue. And it has something to do with one of the latest upgrades. That is why you have been fine until now. I am surprised that your host provider can not change these settings for you. Are you able to login to your windows server directly, or do you have to do everything via FTP?


      I think I saw something about RMS releasing an update to fix this.

  • Photo of Angela Gant

    0

    I have to login to my windows server via FTP.  I did see where there was an update coming to address this issue but I hope it will be soon.