Developer forum

Forum » CMS - Standard features » Can't edit user address in the frontend

Can't edit user address in the frontend

Mafalda Correa
Mafalda Correa
Reply

Hi,

I'm rendering the user address in the address loop and displaying it on the frontend. However, when I try to edit it, I get an error.

This doesn't happen with any of the other addresses, only with the user address.

See the video below:

https://www.screencast.com/t/SnwBXZl2

 

This is the error I'm getting:

An error occurred while attaching module (Dynamicweb.Frontend.Content)

System.Data.DBConcurrencyException: Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.
   at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
   at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
   at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
   at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
   at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
   at Dynamicweb.Data.DataManager.Update(DataSet dataSet, Boolean acceptChangesDuringFill)
   at Dynamicweb.Data.DbObject.Save()
   at Dynamicweb.Security.UserManagement.User.Save()
   at Dynamicweb.UserManagement.Frontend.Frontend.SaveAddress(ParagraphSettings settings, User& currentUser)
   at Dynamicweb.UserManagement.Frontend.Frontend.HandleManageAddresses(ParagraphSettings settings, Template& template, User currentUser)
   at Dynamicweb.UserManagement.Frontend.Frontend.GetContent()
   at Dynamicweb.Frontend.Content.GetModuleOutput(Paragraph paragraph, PageView pageview)

Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi,

I was not able to catch the issue on my environmen based on last DW9.8.6 deployed using Rapido 3.2.1 db/template set, primary address was default/not default in the check - proof

BR, Oleg QA 

Votes for this answer: 1
 
Mafalda Correa
Mafalda Correa
Reply

Hi Oleg,

You're right. I tested in another solution and don't get the same error. I guess the error is on our side then!

Thanks

 

You must be logged in to post in the forum