cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JimmyWork
Level 8

Apply-PnPProvisioningTemplate on newly created Microsoft Teams

Hi

 

Im having some issues understandning why im getting an error when im trying to Apply-PnPProvisioningTemplate on newly created Microsoft Teams.

 

- I created the Team in flow using Graph.

- I get the webURL for the newly created Team using Graph.

- I Manually connect using powershell command to the site i got from Graph

- I then run the Apply-PnPProvisioningTemplate -Path "C:\PnP\template.pnp" -ClearNavigation

 

I receive the following error.

Apply-PnPProvisioningTemplate : urlOfFile
Parameter name: Specified value is not supported for the urlOfFile parameter.

 

Now on Teams i created 24hours ago i dont get this error. Im not sure if there is a time period or something. But im wonder how i can work around this? Any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Apply-PnPProvisioningTemplate on newly created Microsoft Teams

Hi @JimmyWork ,

 

I'm afraid that there is no any workaround for your situation since as you said, there is a time period before the newly created Microsoft Teams could become effective in microsoft flow.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
JimmyWork
Level 8

Re: Apply-PnPProvisioningTemplate on newly created Microsoft Teams

Update

Error only displays if the PnP template contains custom content types. Still having issues so if someone knows a workaround please let me know.

Community Support Team
Community Support Team

Re: Apply-PnPProvisioningTemplate on newly created Microsoft Teams

Hi @JimmyWork ,

 

I'm afraid that there is no any workaround for your situation since as you said, there is a time period before the newly created Microsoft Teams could become effective in microsoft flow.

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

epn
Level: Powered On

Re: Apply-PnPProvisioningTemplate on newly created Microsoft Teams

remove comment

JimmyWork
Level 8

Re: Apply-PnPProvisioningTemplate on newly created Microsoft Teams

@v-alzhan-msft 

Thank you for taking your time and answering.

 

The wierd thing is that i can apply Document Library with the content types right away and then apply a template with only site design, this works for some reason but applying a template with a document library from the start will fail. I reported this as an issue just in case.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,604)