2014-02-12 43 views
0

查找字段當我嘗試保存爲模板(Site Settings -> Site Actions -> Save Site as Template)我的SharePoint 2010網站,在Visual Studio 2010中創建的,我得到以下錯誤:SharePoint 2010的「保存站點作爲模板」,在列表

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"」可能有什麼問題?

由於提前,
薩爾

回答

0

我發現德里克Gusoff的blog答案。

相關問題