Closed PretoPlasma closed 10 months ago
@PretoPlasma Are you by any chance trying to migrate to a subsite? The error message looks like the one in #39. Migration is only supported to the root of SharePoint site collections.
@heinrich-ulbricht That's the case. Thanks for your confirmation. Much appreciated! Then we are going to change our migration target. You can close this one! :-)
Is there an existing issue for this?
Current Behavior
Whilst running migration preperation steps the WikiTraccs.Console throws the following System.Exception:
Scope of template does not match target at PnP.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyRemoteTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation provisioningInfo, Boolean calledFromHierarchy, TokenParser tokenParser) in //src/lib/PnP.Framework/Provisioning/ObjectHandlers/SiteToTemplateConversion.cs:line 322 at Microsoft.SharePoint.Client.WebExtensions.ApplyProvisioningTemplate(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation) in //src/lib/PnP.Framework/Extensions/WebExtensions.cs:line 1182 at WikiTraccs.Shared.Stores.SPO.SpoStoreBase.<>c__DisplayClass17_1.BlcIIGOv49() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at WikiTraccs.Shared.Stores.SPO.SpoStoreBase.ApplyProvisioningTemplateAsync(ConfluenceDataContext cfContext, PnPContext pnpContext, ProvisioningTemplate provisioningTemplate, CancellationToken cancellationToken) at WikiTraccs.Shared.Stores.SPO.SpoStoreBase.PrepareTargetSiteInternalAsync(SpoCheckResult checkResult, CancellationToken cancellationToken) in /home/runner/work/wikitraccs-code/wikitraccs-code/WikiTraccs.Shared/Stores/SPO/SpoWikiTraccsStore.cs:line 24 at WikiTraccs.Shared.Stores.SPO.SpoStoreBase.PrepareTargetSiteAsync(SpoCheckResult checkResult, CancellationToken cancellationToken) at WikiTraccs.Shared.Stores.SPO.StorePreparator.PrepareTargetAsync(IPreparableTarget target, SpoCheckResult checkResult, CancellationToken cancellationToken) in /home/runner/work/wikitraccs-code/wikitraccs-code/WikiTraccs.Shared/Stores/SPO/TransformedPageInfo.cs:line 30 at WikiTraccs.Shared.Stores.SPO.StorePreparator.PrepareTargetAsync(IPreparableTarget target, SpoCheckResult checkResult, CancellationToken cancellationToken) in /home/runner/work/wikitraccs-code/wikitraccs-code/WikiTraccs.Shared/Stores/SPO/TransformedPageInfo.cs:line 30 at WikiTraccs.Shared.Stores.SPO.StorePreparator.EnsureSitePreparationAsync(IPreparableTarget target, TransformationContext trafoCtx, Func`1 shallPrepareCallback, Boolean throwOnFailure, CancellationToken cancellationToken) in /home/runner/work/wikitraccs-code/wikitraccs-code/WikiTraccs.Shared/Stores/SPO/TransformedPageInfo.cs:line 25
Expected Behavior
I would expect to get smoothly through WikiTraccs.Console migration preparation steps without any exception throwing. ;-)
WikiTraccs Version
v1.7.4
Confluence Version
Confluence 7 (up to 7.17)
Confluence Data Center?
Relevant log output or page storage format
Anything else?
We run WikiTraccs.Console wrapped around an RPA-Robot driven by appsettings.json only.