Skip to content

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

@vasukapoor01

Description

@vasukapoor01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions