2011-10-25 3 views
2

Sharepoint 2010에 익숙하지 않고 현재 조회 필드를 만들고 콘텐츠 유형에 추가하고 Visual Studio 2010 SharePoint 프로젝트를 통해 목록에 추가하려고합니다. 그러나 나는 이상한 문제를 경험한다.Sharepoint 2010 조회 필드 ID 형식

나는 다음과 같은 방법으로 조회 필드를 정의했습니다 :

<Field ID="{2A5567B7-1175-4E26-A4ED-382E4744D17A}" Type="Lookup" Name="SomeLookupField" List="Lists/SomeList" ShowField="ItemName" DisplayName="Some Field" Group="Custom Group" ReadOnly="TRUE" /> 

는 그럼 난의 FieldRef 요소를 통해 컨텐트 유형에 추가. 그리고 마지막으로 목록 정의에는 Schema.xml의 동일한 요소가 포함됩니다.

사이트를 템플릿으로 저장할 때까지 제대로 작동합니다. 셰어 포인트 사이트와 디스플레이 오류를 내보낼 실패

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)

주위 재생 내가 중괄호를 포함하고 다음과 같이되어서는 안된다는 조회 필드의 ID를 발견 : 오류로 인해 발생

Microsoft.SharePoint.SPException: Error exporting the site field named "SomeLookupField". at Microsoft.SharePoint.SPSolutionExporter.ExportFields(SPFieldCollection fields, String partitionName)

:

<Field ID="2A5567B7-1175-4E26-A4ED-382E4744D17A" 

변경 후 내보내기가 정상적으로 작동합니다. 내 조회 필드의 정의가 잘못 될 수 있는지 궁금

Error occurred in deployment step 'Activate Features': The field with Id {2A5567B7-1175-4E26-A4ED-382E4744D17A} defined in feature {235313d2-4091-4655-8b35-70b3ad31b9f4} was found in the current site collection or in a subsite.

을 :하지만 비주얼 스튜디오에서 재배치하는 것은 기존 기능을 제거하고 오류로 업데이트 기능 활성화에 실패하면서 필드를 삭제하지 않는 한 지금 깨진? 조회 필드 정의의 유효한 형식은 무엇입니까?

답변

2

해결책을 찾았습니다. 조회 열 정의에는 'TRUE'로 설정된 덮어 쓰기 특성이 있어야합니다. 그것에 대해 블로깅 됨 here

+0

정확하게 똑같은 문제에 직면했습니다. 시간을 절약 할 수 있습니다 :) – Kai

관련 문제