0

We did migration for an application from SharePoint 2013 to SharePoint 2016 ( Mounted the existing database to a new web application in 2016) and everything is working fine except the variation. We had a label in the old one and now we want add another label

When i am trying to open this page "http://site/_layouts/15/VariationLabels.aspx", it gives me the below error

[ArgumentNullException: Value cannot be null. Parameter name: staticName]
Microsoft.SharePoint.SPFieldCollection.TryGetFieldByStaticName(String staticName) +187
Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException) +138
Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem.GetListItemFieldType(SPFieldCollection fields, SPListItem listItem, String fieldName) +160
Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem.System.ComponentModel.ICustomTypeDescriptor.GetProperties() +509 System.ComponentModel.MergedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties() +24 System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes) +461
Microsoft.SharePoint.WebControls.SPMenuField.DataBindingEventHandler(Object sender, EventArgs e) +296
System.Web.UI.Control.OnDataBinding(EventArgs e) +86
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +165
System.Web.UI.Control.DataBindChildren() +249
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182
System.Web.UI.Control.DataBindChildren() +249
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +182
System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +247 System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +5136
Microsoft.SharePoint.WebControls.SPGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +92
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +97
System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +18
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +198
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +134 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +107 System.Web.UI.Control.EnsureChildControls() +130 System.Web.UI.WebControls.GridView.get_Rows() +49
Microsoft.SharePoint.Publishing.Internal.CodeBehind.VariationLabelsPage.OnLoad(EventArgs args) +733 System.Web.UI.Control.LoadRecursive() +129
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3712

  • Do you run Test-SPContentDatabase to test the web application before mounting the content database? and what permisisons did your account have on the top level site collection? Please try to login using a site collection administrator then test again. – Kally_MSFT Dec 27 '18 at 6:43

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.