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

Gracefully continue with a warning when the app already exists after trying to apply provisioning template twice #1125

Open
svermaak opened this issue Apr 8, 2025 · 0 comments

Comments

@svermaak
Copy link

svermaak commented Apr 8, 2025

Is your feature request related to a problem? Please describe.
Invoke-PnPSiteTemplate: {"odata.error":{"code":"-1, System.InvalidOperationException","message":{"lang":"en-US","value":"An instance of this App already exists at the specified location."}}}

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When I run a provisioning template over an existing site it fails when an app is already installed and the template tries to install it again

Describe the solution you'd like
When running a provisioning template over an existing site, I want the app install part to gracefully continue with a warning when the app already exists

Describe alternatives you've considered
I have two templates. One with apps and one without

Additional context
Invoke-PnPSiteTemplate -InputInstance $template -Parameters $templateParameters -Connection $connection;
WARNING: Folder 'Folder1' already exists in parent folder '/sites/xxxx/Shared Documents'.
WARNING: Folder 'Folder2' already exists in parent folder '/sites/xxxx/Shared Documents'.
WARNING: Folder 'Folder3' already exists in parent folder '/sites/xxxx/Shared Documents'.
Invoke-PnPSiteTemplate: {"odata.error":{"code":"-1, System.InvalidOperationException","message":{"lang":"en-US","value":"An instance of this App already exists at the specified location."}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant