For one of our Multilanguage multisite project there was need to create WFFM form in multiple languages such and French, Hungarian, Russian etc. but when content editor wants to create a new language version of WFFM form he was getting server error says “parameter xml is null or empty” see below section-
Server Error in ‘/’ Application.
Parameter xml is null or empty
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Parameter xml is null or empty
[InvalidOperationException: Parameter xml is null or empty]
Sitecore.Form.Core.ContentEditor.Data.ListDefinition.Parse(String xml) +233
Sitecore.Form.UI.Controls.GroupListBuilder.BuildGrid(Control parent) +469
System.Web.UI.Control.AddedControl(Control control, Int32 index) +257
Sitecore.Web.UI.Sheer.ClientPage.AddControl(Control parent, Control control, String placeholder) +291
Sitecore.Shell.Applications.ContentEditor.EditorFormatter.AddEditorControl(Control parent, Control editor, Field field, Boolean hasRibbon, Boolean readOnly, String value) +367
Sitecore.Shell.Applications.ContentEditor.EditorFormatter.RenderField(Control parent, Field field, Item fieldType, Boolean readOnly, String value) +1495
This error was only for some languages not for all, after doing some investigation on this issue I found that the languages where this error was occurring didn’t have these language versions in standard value off WFFM form. I try to create language version of these languages on standard value but here I was getting the same error.
Reason of this error –
reason of this error is save action field was not shared in our project due to some other customization in WFFM. WFFM by default doesn’t work in this ways with unshared save action field.
- Mark the save action field as shared if it is not marked as shared accidently this will resolve the problem
- But is case where intensely save action field is unmarked shared field we need to create language version of standard value of WFFM form item.
We have two options to perform this action –
- make save action as shared for few time create language version for different required language and then unmark it again. It done.
- If there is strict restriction for make save action shared field then, administrator need to change the view mode in raw value (short cut – ctrl+alt+shift+r) from view ribbon menu. Create language version off standard value of WFFM form item (there will be no any error in raw value view mode) and copy the default content of save action field from English or default language version of item and paste it in the newly created language versions’ s save action field. Preform these steps for all the language where this error is occurring. Change the view again in standard mode.
That’s it thanks and cheers!!