Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Invoke-PnPSiteDesign appears to do nothing #3928

Open
jimmywim opened this issue May 1, 2024 · 3 comments
Open

[BUG] Invoke-PnPSiteDesign appears to do nothing #3928

jimmywim opened this issue May 1, 2024 · 3 comments
Labels
bug Something isn't working more info needed Further information is requested by user

Comments

@jimmywim
Copy link
Contributor

jimmywim commented May 1, 2024

Using 2.4.0 - Fetching a valid Site Template through Get-PnPSiteDesign then trying to run it with Invoke-PnPSiteDesign does nothing.

Syntax:

 Invoke-PnPSiteDesign -WebUrl https://xxx.sharepoint.com/sites/something -Identity <Site Design ID>

It should return the outcome of the job. There is no output return at all.

The same templates invoked through the web UI work fine, they just appear to be failing through the cmdlet.

@jimmywim jimmywim added the bug Something isn't working label May 1, 2024
@markgort86
Copy link
Contributor

Maybe there is something invalid in the site script that is not running well by using this commandlet. If you are just creating a new site design with the site script example provided over here https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview#anatomy-of-a-site-script. With the nightly build "2.4.73" of PnP.PowerShell and the provided example this is working as expected and get the outcome on the screen.

Is the cmdlet then running fine? I understand that some feedback of what is the error with the applying the site design should be helpfull.

@gautamdsheth
Copy link
Collaborator

Any update on this @jimmywim ? Maybe you can try it with a different site design/script ?

@gautamdsheth gautamdsheth added the more info needed Further information is requested by user label May 30, 2024
@jimmywim
Copy link
Contributor Author

jimmywim commented May 30, 2024

@gautamdsheth @markgort86 I know the root cause, the site design had more than the threshold script tasks/verbs, so had to use the REST API endpoint instead. Not sure the cleanest way to handle this in the Cmdlet though, when it current returns nothing in this scenario (not the best UX).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more info needed Further information is requested by user
Projects
None yet
Development

No branches or pull requests

3 participants