【问题标题】:SharePoint 2010 "Save Site as Template" with lookup fields in ListsSharePoint 2010“将网站另存为模板”,列表中包含查找字段
【发布时间】:2014-02-12 08:42:07
【问题描述】:

当我尝试将使用 Visual Studio 2010 创建的 SharePoint 2010 网站另存为模板 (Site Settings -> Site Actions -> Save Site as Template) 时,我收到以下错误:

SPSolutionExporter: System.FormatException: Guid should contain 32 digits 
    with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at System.Guid..ctor(String g)
at Microsoft.SharePoint.SPSolutionExporter.GetFieldSchemaXml(SPField field, 
    SPWeb web, Boolean isFieldFromWeb, Boolean removeSealedAttribute)
at Microsoft.SharePoint.SPSolutionExporter.ExportField(SPField field, SPWeb web)
at Microsoft.SharePoint.SPSolutionExporter.ExportFields
    (SPFieldCollection fields, String partitionName)

经过深入搜索,我发现article 很好地解释了将带有查找字段的 SharePoint 列表保存在模板中时出现的问题。必须在Elements.xmlSchema.xml 的查找字段定义中添加附加属性“Overwrite="TRUE"”。在我这样做之后,我可以将我的网站保存为模板。很好。

但是,查找停止工作!现在没有来自目标查找列表的数据可用,甚至链接到同一个列表(其中指定了一些父/子关系)不再起作用。简单地说,这样的查找列现在总是空的。 “Add new item”对话框不提供任何数据以在新项目的查找列中指定。属性“Overwrite="TRUE"”有什么问题?

提前致谢,
萨尔

【问题讨论】:

    标签: visual-studio-2010 sharepoint-2010


    【解决方案1】:

    我在 Derek Gusoff 的 blog 中找到了答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-14
      • 2021-06-29
      • 1970-01-01
      • 1970-01-01
      • 2023-03-13
      • 1970-01-01
      相关资源
      最近更新 更多