Veröffentlichen Sie den Veröffentlichungsort zwischen den Unterten mit Verwalten von Inhalten und Struktur

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

  •  10-12-2019
  •  | 
  •  

Frage

Ich versuche, Publishing-Seiten an einer Publishing-Site an einen anderen Standort in derselben Site-Sammlung zu verschieben.Die Operation ist immer fehlgeschlagen` [ListItem] [Dragenimalaysjungleforvandlerpalmefibretilborethanol.aspx] Der Wert kann nicht null sein.Parametername: G

Es tritt 4 mal auf. Dann benutzte ich das stsadm-`-o gl-importlistitem exportlistitem, die Ergebnisse sind gleich.Die Seite, die ich versuche, immer noch nicht auf der Zielstelle zu erscheint.Wenn ich den Export.log öffne, gibt es keine Fehler.Aber wenn ich den Import.log öffne, gibt es 4 Fehler.Hier sind die Fehler: generasacodicetagpre.

Bitte helfen, ich muss die Websites wirklich dringend bewegen, da die Menge des Artikels 5000 erreicht (Drosseln). Gibt es eine andere Möglichkeit, um eine Publishing-Site von der Website an eine andere Website zu verschieben. Danke

War es hilfreich?

Lösung

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.

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top