将站点另存为模板时,创建用于查找外部列表的站点列会导致错误. [英] Creating a Site Column that Looks up an External List causes error when saving site as a template.

查看:62
本文介绍了将站点另存为模板时,创建用于查找外部列表的站点列会导致错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定这里的最佳做法是什么,但是尝试将网站另存为模板时遇到了一个主要问题,我认为我将问题范围缩小了.

I'm not sure what the best practice is here, but I'm having a major issue trying to save sites as templates and I think I narrowed it down as to what the issue is.

当我尝试将网站另存为模板时,它会创建解决方案包,但不会激活它.当我尝试手动激活它时,出现以下错误:

When I try to save a site as a template, it creates the solution package, but it doesn't activate it.  When I try to activate it manually, I get the following error:

Feature definition with Id e9431ed5-27b1-4c33-9eeb-81b4ace9d372 failed validation, file 'test1ListInstances\ElementsFields.xml', line 481, character 231: The 'SystemInstance' attribute is not allowed.

我打开了解决方案包,然后查看了ElementsFields.xml文件.我跟踪到此:

I opened up the solution package and looked at the ElementsFields.xml file.  I traced the line to this:

<Field Type="BusinessData" DisplayName="Acme People Name" Required="FALSE" EnforceUniqueValues="FALSE" Group="Custom Columns" ID="{55b3bbba-a7e3-4698-9946-648a6b726e9e}" SourceID="{026904fd-f2d0-4e57-a239-c6da838458fa}" StaticName="Acme_x0020_People_x0020_Name" Name="Acme_x0020_People_x0020_Name" SystemInstance="ACME" EntityNamespace="http://????????:28241" EntityName="People" BdcField="FullName" Profile="" HasActions="True" SecondaryFieldBdcNames="0" RelatedField="People_ID1" SecondaryFieldWssNames="0" RelatedFieldBDCField="" RelatedFieldWssStaticName="People_ID1" SecondaryFieldsWssStaticNames="0" AddFieldOption="AddFieldInternalNameHint" Overwrite="TRUE" />

这是我的网站列,它指向外部列表.我猜SP不喜欢这样.我删除了网站栏和外部列表,只是看它是否可以解决问题.

This is my site column that is pointing to an external list.  I'm guessing SP doesn't like this.  I deleted the site column and the external list just to see if it would resolve the issue.

我收到相同的错误,但在不同的行上:

I get the same error, but on a different line:

<Field ID="{35d79e8b-3701-4659-9c27-c070ed3c2bfa}" Name="Overtime" StaticName="Overtime" SourceID="http://schemas.microsoft.com/sharepoint/v3/fields" Type="Text" DisplayName="Overtime" Group="_Hidden" ResultType="Number" SystemInstance="ACME" EntityNamespace="http://??????????:28241" EntityName="People" BdcField="FullName" Profile="" HasActions="True" SecondaryFieldBdcNames="0" RelatedField="People_ID" SecondaryFieldWssNames="0" RelatedFieldBDCField="" RelatedFieldWssStaticName="People_ID" SecondaryFieldsWssStaticNames="0" AddFieldOption="AddFieldInternalNameHint" Overwrite="TRUE" />

我不确定这是怎么回事.这可能是错误吗?创建外部列表然后创建网站列的最佳做法是什么?不应该在网站集级别进行此操作吗?

I'm not sure what's going on here.  Could this be a bug?  What's the best practice for creating an external list then creating a site column?  Should it not be done at the site collection level?

有什么解决办法?

提前谢谢!

推荐答案

我意识到BSC有其局限性.使它按我希望的方式工作的唯一方法是在列表级别创建查找.网站集级别和网站级别导致上述问题.

I'm realizing that BSC has it's limitations.  The only way I can get this to work the way I want it to is to create a lookup at the list level.  Site collection level and site level cause the issue above.

现在,我该如何解决以上问题?即使删除了所有网站列和外部列表,每个创建的网站模板的elementsfield似乎也已损坏.例如超时"字段ID包含BSC信息.有没有位置 我可以去手动更正吗?我知道我可能可以编辑.wsp文件,但我想更正我造成的混乱.

Now, how to I resolve the above issue?  Even with all the site columns and external lists removed the elementsfield for every site template created seems to be corrupt.  Such as the Overtime field id has the BSC info.  Is there a location I can go to manually correct it?  I know I can probably edit the .wsp files, but I'd like to correct the mess I made.

再次感谢您!


这篇关于将站点另存为模板时,创建用于查找外部列表的站点列会导致错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆