pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

An instance of this App already exists at the specified location. #2403

Open Abrissirba opened 5 years ago

Abrissirba commented 5 years ago

Category

[x ] Bug [ ] Enhancement

Environment

[x ] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

I'm trying to apply a template which should install a template from the app catalog. This is the xml

<pnp:ApplicationLifecycleManagement>
        <pnp:Apps>
           <pnp:App AppId="1F2B6B35-66DB-4161-BB72-D5072C87DE4B" Action="Install" SyncMode="Synchronously"  /> 
        </pnp:Apps>
      </pnp:ApplicationLifecycleManagement>

The id refers to the product id shown in the app catalog. It works the first time but if I run it again I get an error saying that "An instance of this App already exists at the specified location". Is this really the desired behaviour? I would expect it to just continue without throwing an exception.

ghost commented 5 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.