Developer forum

Forum » Development » WebApi user save does not allow to save custom fields

WebApi user save does not allow to save custom fields

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi,

We are using WebApi to patch the user information, although when we try to update a custom field it is retuning an error:

"ExceptionMessage": "Column 'AccessUserAddress_IsBlocked' does not belong to table Table.",
"StackTrace": " at System.Data.DataRow.GetDataColumn(String columnName)\r\n at Dynamicweb.Security.UserManagement.UserRepository.FillRow(DataRow row, User user)\r\n at Dynamicweb.Security.UserManagement.UserRepository.SaveUser(User user)\r\n at Dynamicweb.Security.UserManagement.User.Save()\r\n at Dynamicweb.Ecommerce.WebAPI.Controllers.UsersController.SaveUser(User user, UserViewModel userModel)\r\n at lambda_method(Closure , Object , Object[] )\r\n etc"

 

 

The UsersController.cs has the CustomFieldValueCollection swapped between Address and User custom fields:

 

DW version: 9.16.6

BR, Mario

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Yikes.

Bug 17275 which is fixed and ready for test and release.

Votes for this answer: 1
 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Mario

The problem regarding bug #17275 has been fixed in Dynamicweb release 9.16.7 

Get this from the download section https://doc.dynamicweb.dk/downloads/dynamicweb-9

Sorry for any inconvenience this may have caused

Kind Regards
Care Support
Kristian Kirkholt

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Thanks for confirming, Kristian.

 

You must be logged in to post in the forum