Getting below error during the provisioning:
PS C:\Windows\system32> Set-PnPTraceLog -On -Level Debug
PS C:\Windows\system32> Apply-PnPTenantTemplate -Path C:\Users\svc_sptest_farm\Desktop\sp-starter-kit-master\provisionin
g\starterkit.pnp
powershell.exe Information: 0 : 2019-05-23 10:13:32.5307 [OfficeDevPnP.Core] [0] [Information] File sta
rterkit.pnp retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:32.5967 [OfficeDevPnP.Core] [0] [Information] File sta
rterkit.pnp retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.3358 [OfficeDevPnP.Core] [0] [Information] File sta
rterkit.xml retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.4938 [Provisioning] [7] [Debug] Code execution scope sta
rted 0ms 9d53feb3-bffe-4a32-a05f-55f69a598437
powershell.exe Information: 0 : 2019-05-23 10:13:33.4938 [Provisioning] [7] [Information] ProgressDelegate
registered 0ms 9d53feb3-bffe-4a32-a05f-55f69a598437
powershell.exe Information: 0 : 2019-05-23 10:13:33.4948 [Provisioning] [7] [Information] MessagesDelegate
registered 0ms 9d53feb3-bffe-4a32-a05f-55f69a598437
powershell.exe Information: 0 : 2019-05-23 10:13:33.5068 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.en-us.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5078 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.es-es.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5078 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.fr-fr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5088 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.de-de.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5088 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.nl-nl.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5098 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.nb-no.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5098 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.sv-se.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5098 [OfficeDevPnP.Core] [0] [Information] File res
ources\resources-core.tr-tr.resx retrieved from folder 0ms
powershell.exe Information: 0 : 2019-05-23 10:13:33.5218 [Tenant Settings] [7] [Debug] Code execution s
cope started 0ms 9d53feb3-bffe-4a32-a05f-55f69a598437
powershell.exe Information: 0 : 2019-05-23 10:13:34.3650 [OfficeDevPnP.Core] [0] [Information] File sha
repoint-starter-kit.sppkg retrieved from folder ..\package 0ms
powershell.exe Information: 0 : 2019-05-23 10:15:19.4360 [Tenant Settings] [7] [Debug] Code execution s
cope ended 105914ms 9d53feb3-bffe-4a32-a05f-55f69a598437
powershell.exe Information: 0 : 2019-05-23 10:15:19.4370 [Provisioning] [7] [Debug] Code execution scope end
ed 105943ms 9d53feb3-bffe-4a32-a05f-55f69a598437
Apply-PnPTenantTemplate : A task was canceled.
At line:1 char:1
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
we have the same problem with sharepointOnline.
I'm getting an "A task was canceled." error when try to apple the template as well. Details below.
Apply-PnPTenantTemplate : A task was canceled.
At line:1 char:1
I am also getting same issue while deploying in SharePoint Online
I am also facing the same issue in SPO
Any updates ? I have the same error when installation.
Can any one provide previous version of that solution please?
Hello,
This is how i solved my issue(s)...
Before you apply the solution, you need to you need to install node.js and gulp otherwise you'll get errors. Having installed that to windows..
Everything seems to be working for me.. and i hope it works for you.
Hi
I have the same issue when Apply-PnpTenantTemplate with the starterkit.pnp in last commit (a80017d5e8af49d18a492dbe006edbadaa03cff4).
I resolve using the starterkit.pnp from the commit 1c9cdc656e7e98faa7da01f0cd7d5cc7668d6272
Have a nice day
Hi,
Using the version of StarterKit.pnp from [here] (https://github.com/SharePoint/sp-dev-provisioning-templates) worked for me.
James
Hi
I have the same issue when Apply-PnpTenantTemplate with the starterkit.pnp in last commit (a80017d).
I resolve using the starterkit.pnp from the commit 1c9cdc6Have a nice day
When I try to do this, I get a different error message:
`Apply-PnPTenantTemplate : Insufficient privileges to complete the operation.
At line:1 char:1
nantTemplate : Insufficient privileges to complete the operation.
it seems to me permission issue, please make sure you have admin rights in the tenant level as well add same admin account as a term store administrator.
It seems like it but my account is 'Sharepoint Administrator' and I was able to deploy some webparts following the MS tutorials. I'm completely new to Sharepoint...
Could those of you who have had issues with the starter kit that is running into the error of the task was canceled try the pnp provisioning service to install the starter kit for you?
https://provisioning.sharepointpnp.com/home/details?packageId=5c3f13eb-e7c0-4d71-8154-d33dee71356d
This is basically the exact same kit. Of course it would be preferred if you could install the kit via powershell and the instructions provided. With the provisioning service though, you should end up with the same expected outcome of an installed kit as a stop gap while the root issue continues to be investigated.
I have been able to follow Michael1958 instructions however I now have an issue where the footer cannot be altered and does not allow you to edit the personal links. If I press edit, the My links flashes on the screen and then the entire screen goes to an opaque white. Can I provision another hub site using the above link and then apply the site design to my current hub site?
Joseph, let me know what is you have difficulty with. I'll be glad to help you.
Thank you MichaelI I appreciate that. FYI - I uploaded a fresh version from the provisioning site instead of powershell. It appears to be an older version as it has uploaded version 1.3.0.0 of the sppkg file. It appears to have fixed the issue and I have adjusted the footer details post deployment using
_Add-PnPCustomAction -Name "PortalFooter" -Title "PortalFooter" -ClientSideComponentId b8eb4ec9-934a-4248-a15f-863d27f94f60 -Location "ClientSideExtension.ApplicationCustomizer" -ClientSideComponentProperties "{""linksListTitle"":""PnP-PortalFooter-Links"",""copyright"":""@Copyright ABC, 2019"",""support"":""[email protected]"",""personalItemsStorageProperty"":""PnP-CollabFooter-MyLinks""}"
I am reluctant to update the sppkg file again at this point and will leave it until I have had time to deploy to an alternate site.
I did what @JamesPOrton suggested and it worked though it may have been a matter of trying again....
"Using the version of StarterKit.pnp from [here] (https://github.com/SharePoint/sp-dev-provisioning-templates) worked for me."
Yes - I did the same - used an older version of the "starterkit.pnp" - it's 1/2 the size...
What is the cause of the "task was canceled" ??
i am facing the same issue
PS C:\sp-starter-kit\provisioning> Apply-PnPTenantTemplate -Path starterkit.pnp
Apply-PnPTenantTemplate : A task was canceled.
At line:1 char:1
Could those of you who have had issues with the starter kit that is running into the error of the task was canceled try the pnp provisioning service to install the starter kit for you?
https://provisioning.sharepointpnp.com/home/details?packageId=5c3f13eb-e7c0-4d71-8154-d33dee71356d
This is basically the exact same kit. Of course it would be preferred if you could install the kit via powershell and the instructions provided. With the provisioning service though, you should end up with the same expected outcome of an installed kit as a stop gap while the root issue continues to be investigated.
Tried this, just goes into an infinite loop of access request
Anyone got this working yet?
Okay so replacing the starterkit.pnp as discussed by @webbrewer gets it a lot further, but now throws a different error; so think that although the size of the two starterkit.pnp are the same, there's definitely a bug in the one that's downloaded as part of the solution.
Re-ran 1hr later and all worked fine. This is quite bizzare.
I have exactly the same problem and didn't get the solution yet :D
can someone explain it to my, how i can change the pnp file?
I have had mixed success deploying via command line with both the provisioning template and straight pnp-starter kit causing task cancelled. I have used the online provisioning site now multiple times without issue. FYI the provisioning site version has been updated to 1.5.0.0 https://provisioning.sharepointpnp.com/home/details?packageId=5c3f13eb-e7c0-4d71-8154-d33dee71356d
@Plimmyri
Hi, so the way I got it working was to download the provisioning pack as described in the instructions.
Then to download the working commit https://github.com/SharePoint/sp-starter-kit/commit/1c9cdc656e7e98faa7da01f0cd7d5cc7668d6272 as described by @nixaroo
I unpacked both and then replaced the file ./sp-starter-kit/provisioning/starterkit.pnp with the one from the older commit.
After this I had no further issues.
Hope this helps :)
@Josephidimes
I couldn't get the provisioning via site to work for me, just kept running in an infinite authentication loop. Which is odd as my primary machine account is my O365 account.
@JasonJ387 it is working now.
Thank you very much.
Also got the same task canceled error with PowerShell.
Using the provisioning site gave me the error "Unfortunately your site provisioning at least partially failed!" and nothing created.
Anything else I can try?
Hey @anthonywhite,
Did you try my advice sbove?
https://github.com/SharePoint/sp-starter-kit/issues/285#issuecomment-527325939
I am facing the same issue
PS C:\sp-starter-kit\provisioning> Apply-PnPTenantTemplate -Path starterkit.pnp
I got this error message
+ CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], TaskCanceledException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate
Hi, as this ticket applies to version 1 of the starter kit, and it almost a year old. We'll be closing this ticket. We've made many changes since V1, if you'd like to try them out please try V2 of the starter kit and if you have more issues please create a new issue in the list. Thanks!
Most helpful comment
Hello,
This is how i solved my issue(s)...
Before you apply the solution, you need to you need to install node.js and gulp otherwise you'll get errors. Having installed that to windows..
https://github.com/bcameron1231/PnP-Starter-Kit-Non-FR
The solution will be applied to SharePoint, but it is NOT the complete new version. It does not contain all web parts.
To solve this problem...
https://github.com/SharePoint/sp-starter-kit
Everything seems to be working for me.. and i hope it works for you.