Question

Bonjour, je suis en train de faire un script pour déplacer un ProjectServer site d'une ferme à l'autre.Pour cela, j'ai d'abord importer le WSS_Content base de données, puis essayez de renommer le /PWA site avec des Copier-SPSite applet de commande powershell.Puis-je monter le projet de serveur de bases de données et faire d'autres travaux.

Le problème, c'est quand j'essaye de copier le /PWA site de /PWAExample il en crée une autre / site qui ne fonctionne pas.Si je lance Test-SPSite http://domain/ il me donne cette erreur énorme.L' Copy-SPSite http://domain/sites/old -targetUrl http://domain/sites/new des œuvres.Il dosent travailler avec Copy-SPSite http://domain/PWA -targetUrl http://domain/PWAExample

    test-spsite : SPSiteHealthChecker: System.IO.DirectoryNotFoundException exception thrown in SPSiteHealthChecker.Test():
 <nativehr>0x80070003</nativehr><nativestack></nativestack>
   at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String bstrUrl, Guid& pguidID, DateTime& pdtTimeCreated, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags, Boolean& pbOverwriteMUICultures, Boolean& pbMUIEnabled, String& pbstrAlternateMUICultures, Int32& plSiteSchemaMajorVersion, Int32& plSiteSchemaMinorVersion, Int32& plSiteSchemaBuildVersion, Int32& plSiteSchemaRevisionVersion, Int32& puiVersion, Int16& pnClientTag, Boolean& pfIsEvalSite, Guid& pgSourceSiteId, DateTime& pdtExpirationDate, Guid& pgEvalSiteId, Guid& pguidAppInstanceId, String& pbstrRemoteAppUrl, String& pbstrOAuthAppId, String& pbstrAppDatabaseName, Guid& pgAppDatabaseServerReferenceId, String& pbstrAppDatabaseTargetApplicationId, String& pbstrAppWebDomainId, Int32& plUpgradeFlags, DateTime& pdtReminderDate, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, UInt64& pmaskDeny)
   at Microsoft.SharePoint.Library.SPRequest.OpenWebInternal(String bstrUrl, Guid& pguidID, DateTime& pdtTimeCreated, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags, Boolean& pbOverwriteMUICultures, Boolean& pbMUIEnabled, String& pbstrAlternateMUICultures, Int32& plSiteSchemaMajorVersion, Int32& plSiteSchemaMinorVersion, Int32& plSiteSchemaBuildVersion, Int32& plSiteSchemaRevisionVersion, Int32& puiVersion, Int16& pnClientTag, Boolean& pfIsEvalSite, Guid& pgSourceSiteId, DateTime& pdtExpirationDate, Guid& pgEvalSiteId, Guid& pguidAppInstanceId, String& pbstrRemoteAppUrl, String& pbstrOAuthAppId, String& pbstrAppDatabaseName, Guid& pgAppDatabaseServerReferenceId, String& pbstrAppDatabaseTargetApplicationId, String& pbstrAppWebDomainId, Int32& plUpgradeFlags, DateTime& pdtReminderDate, DateTime& pdtLastContentChange, DateTime& pdtLastSecurityChange, UInt64& pmaskDeny)
   at Microsoft.SharePoint.SPWeb.InitWebPublic()
   at Microsoft.SharePoint.SPWeb.get_Language()
   at Microsoft.SharePoint.Administration.SiteHealth.SPSiteHealthConflictingContentTypeRule.ProcessWeb(SPWeb spWeb)
   at Microsoft.SharePoint.Administration.SiteHealth.SPSiteHealthRule.ProcessWebs(SPWeb spWeb)
   at Microsoft.SharePoint.Administration.SiteHealth.SPSiteHealthRule.ProcessWebs(Boolean repair)
   at Microsoft.SharePoint.Administration.SiteHealth.SPSiteHealthConflictingContentTypeRule.Test()
   at Microsoft.SharePoint.Administration.SiteHealth.SPSiteHealthChecker.Test(Guid _ruleId, Boolean _repair, Boolean _runAlways, SPLongOperationState longOperation,
String statusFormat)
 SPSite="http://domain"
 ruleId=00000000-0000-0000-0000-000000000000
 repair=False
 CompatibilityLevel=15
At line:1 char:1
+ test-spsite http://domain/
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...PCmdletTestSite:SPCmdletTestSite) [Test-SPSite], SPSiteHealthCheckerException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletTestSite
Était-ce utile?

La solution

Le problème est que /PWA est effectivement un chemin d'accès géré.Et la copie d'un site de collecte pour le nouveau chemin d'accès géré, vous devez d'abord le créer avec Explicit inclusion.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top