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

Existing SharePoint site needs to be deleted before re-executing deploy.ps1 #135

Open
vasukapoor01 opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@vasukapoor01
Copy link

Description

When I rerun the deploy.ps1 script (after facing this error: Failed to configure the SharePoint site {0} The remote server returned an error: (404) Not Found.), I face an error mentioning that the 'same value for property mailNickname already exists.
Here's the full error message:
throw('Failed to create the SharePoint site {0}', $_.Exceptio …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to create the SharePoint site {0} Code: Request_BadRequest Message: Another object with the same value for property mailNickname already
| exists. Details: Detail0: Code: ObjectConflict Message: Another object with the same value for property mailNickname already exists.
| Target: mailNickname Detail1: Code: ConflictingObjects Message: Another object with the same value for property mailNickname already exists.

I though that 'If the script fails for any reason, it can be re-executed as many times as require without the need to delete any resources'? But here it seems that I need to delete the old SP site before reexecuting the script.

But even if I delete the existing sharepoint site and create a new one, I get this error:
Line |
654 | throw('Failed to configure the SharePoint site {0}', $_.Excep …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to configure the SharePoint site {0} The remote server returned an error: (404) Not Found.

Steps to reproduce

  1. Run Deploy.ps1

Expected results

The script should have configured the SharePoint site

Actual Results

Line |
654 | throw('Failed to configure the SharePoint site {0}', $_.Excep …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to configure the SharePoint site {0} The remote server returned an error: (404) Not Found.

Solution component

Deployment Script

Operating system (environment)

Windows

Additional Info

No response

@vasukapoor01 vasukapoor01 added the bug Something isn't working label Feb 6, 2025
@vasukapoor01 vasukapoor01 changed the title Existing SharePoint site Existing SharePoint site needs to be deleted before re-executing deploy.ps1 Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant