نقل موقع النشر بين الفروع باستخدام إدارة المحتوى والهيكل

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/62731

  •  10-12-2019
  •  | 
  •  

سؤال

أحاول نقل صفحات النشر في مواقع النشر إلى موقع آخر في نفس مجموعة المواقع.لا تخفت العملية دائما [ListItem] [dragenimal dideiasjungleforvandlerpalpibretilbianethanol.aspx] لا يمكن أن تكون القيمة فارغة.اسم المعلمة: g

يحدث 4 مرات. ثم استخدمت STSADM`-O GL-ImportListItem ExportStitem، النتائج هي نفسها.الصفحة التي أحاول التحرك لا تزال لا تظهر في الموقع المستهدف.عندما أفتح التصدير.OG، لا توجد أخطاء.ولكن عندما أفتح الاستيراد.log، هناك 4 أخطاء.فيما يلي الأخطاء: giveacodicetagpre.

الرجاء المساعدة، أحتاج إلى نقل المواقع عاجلة حقا لأن كمية العنصر تصل إلى 5000 (مشكلة الاختناق). هل هناك أي طريقة أخرى بالنسبة لي لنقل موقع نشر من الموقع إلى موقع آخر. شكرا

هل كانت مفيدة؟

المحلول

The problem lies with the creation of 2 fields of User Type which were created using XML (Visual Studio). There fields were not provisioned correctly, the atrribute List="UserInfo" was not defined in the field definition. I've created the below script to fix this issue.

Write-Host Adding SharePoint PowerShell Snapin
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$contentOwner = "ContentOwner"

$contentResponsible ="ContentResponsible"

function ProcessPublishingSite()
{
    $SiteUrl = (Get-SPWebApplication -Identity "WebAppName" -ErrorAction stop).Url

$Site = Get-SPSite $SiteUrl

$newsSite = $Site.AllWebs["News"] #News is the source site that contains the library of pages I want to move

$lib = $newsSite.Lists["Pages"]

Write-Host "***Look for List=""UserInfo"" <------------ " -ForegroundColor DarkGreen

Write-Host Editing $contentOwner -ForegroundColor DarkGray

EditFieldXML $lib $contentOwner

Write-Host ________________________________________________________________________________________________________________ -ForegroundColor Blue

Write-Host Editing $contentResponsible -ForegroundColor DarkGray

EditFieldXML $lib $contentResponsible
}

function EditFieldXML($lib,$targetField)

{
    $fld = $lib.Fields.GetFieldByInternalName($targetField)

Write-Host Current field definition $fld.SchemaXml

Write-Host ________________________________________________________________________________________________________________ -ForegroundColor Green

$fld.Sealed = $false

$fld.PushChangesToLists = $true
$fld.Update()

$schema = [xml]$fld.SchemaXml

$schema.Field.SetAttribute("List","UserInfo")

$fld.SchemaXml = $schema.PSBase.OuterXml

$fld.PushChangesToLists = $true
$fld.Update()

Write-Host New Field definition $fld.SchemaXml
}

ProcessPublishingSite

This script will add the missing attrubute at the library column level. Can be modified to add at the site column level.

Hope this help other people that came across this problem.

نصائح أخرى

This is probably due to a Custom User field that is incorrectly created. MOst possibly because of lack of setting the property List to "UserInfo". At least that was the case when i got this error.

This post is talking about the exact same issue. The solution is tricker though, if the system is already in production. If not, just update your user field xml:s

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top