stsadm export

mit dem command line tool stsadm (wofür steht stsadm eigentlich :?: ) kann man eine menge anstellen - z.b. auch einzelne sites exportieren und anschließend woanders wieder importieren; der syntax dazu lautet:

stsadm -o export -url URL -f filename
stsadm -o import -url URL -includeusersecurity -f filename

klingt gut, nur leider funktionierte es mit folgender fehlermeldung bei mir nicht (es wird nur ein log, aber kein export file erstellt):

[11/27/2007 7:59:04 AM]: Progress: Starting to process objects of type Field.
[11/27/2007 7:59:05 AM]: FatalError: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at System.Guid..ctor(String g)
at Microsoft.SharePoint.Deployment.FieldTemplateSerializer.ParseLookups(SPField fieldTemplate, ExportObjectManager objectManager)
at Microsoft.SharePoint.Deployment.FieldTemplateSerializer.GetDataFromObjectModel(Object obj, SerializationInfo info, StreamingContext context)
at Microsoft.SharePoint.Deployment.DeploymentSerializationSurrogate.GetObjectData(Object obj, SerializationInfo info, StreamingContext context)
at Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object obj, ISerializationSurrogate surrogate, String elementName, Boolean bNeedEnvelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Serialize(Stream serializationStream, Object topLevelObject)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Serialize(DeploymentObject deployObject, Stream serializationStream)
at Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()
at Microsoft.SharePoint.Deployment.SPExport.Run()
[11/27/2007 7:59:05 AM]: Progress: Export Completed.

nach etwas längerem suchen kann ich folgende “lösung” anbieten:

- öffne den folder “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\TSATypes”, erstelle eine sicherheitskopie des files “fields.xml” und editiere das file “fields.xml” anschließend.
- suche nach “{ und ersetze es mit ”
- suche nach }” und ersetze es mit ”
- file speichern
- stsadm laufen lassen
- änderungen im fields.xml rückgängig machen (hier kommt die sicherheitskopie ins spiel)

so soll es sein:

[11/27/2007 8:51:42 AM]: Completed with 0 warnings.
[11/27/2007 8:51:42 AM]: Completed with 0 errors.

Related posts:

  1. stsadm extensions
  2. Office SharePoint Server Deployment Plan sample
  3. STSADM Windows GUI
  4. Sharepoint Administration Toolkit
  5. bdc, powershell & c#

Make a Comment

Make A Comment: ( None so far )

blockquote and a tags work here.

Liked it here?
klick here to open a random post - or have a look at this: