London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Error when saving an EPiServer forms element

Vote:
 

Hi, I'm trying to save/publish a selection element block, but I get a 500 error from EPiServer when im trying to publish it. This happens after I have added an element to the selection list. Have anyone else encountered this?

This also happens for the Choice element block.

EPiServer.Forms version 1.1.4.9000

Logged error message:

System.ArgumentNullException: Value cannot be null.
Parameter name: value
at System.ComponentModel.DataAnnotations.ValidationContext.set_DisplayName(String value)
at EPiServer.Validation.DataAnnotationsValidator`1.ValidateInstance(Object instance, List`1 validationResult, ValidationContext validationContext)
at EPiServer.Validation.DataAnnotationsValidator`1.ValidateInstance(Object instance, List`1 validationResult, ValidationContext validationContext)
at EPiServer.Validation.DataAnnotationsValidator`1.Validate(T instance)
at EPiServer.Validation.ValidationService.ValidateRecursively(Object instance, HashSet`1 visitedInstances)
at EPiServer.Cms.Shell.UI.Rest.ContentChangeManager.UpdateContentProperties(ContentReference contentReference, IDictionary`2 properties, SaveAction saveAction)
at EPiServer.Cms.Shell.UI.Rest.ContentDataStore.Patch(PatchContentDataModel entity)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

#146961
Mar 31, 2016 16:29
Vote:
 

I have exactly the same problem.
Any solutions.

To me it seems this thing is still in beta.

#147100
Apr 06, 2016 9:36
Vote:
 

Seems like the sollution for now is to change the episerver user's personal language to english

#147300
Apr 11, 2016 12:00
Vote:
 

Yes it's a confirmed bug apparently.
http://world.episerver.com/support/Bug-list/bug/AFORM-468

#147301
Apr 11, 2016 13:01
Vote:
 

we have personal language as english but still facing same problem. Application is on dxc and episerver 11.13.x. any solutions?

#221997
Apr 29, 2020 6:07
Vote:
 

nitinanand,

The bug AFORM-468 was fixed in EPiServer.Forms 2.0.0.2. Do you have that version or higher?

#222153
Apr 29, 2020 14:38
Vote:
 

Hi Bob

We have Episerver.Forms v4.28.0  and Episerver.Forms.Samples v3.6.0

#222359
May 04, 2020 10:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.