jamie_y
jamie_y

Reputation: 1919

Azure Active Directory App Manifest: getting 'Failed to update manifest: ObjectConflict'

I'm trying to update an existing Azure app but unable to save and the website throws an error 'Failed to update manifest: ObjectConflict' enter image description here

I'm updating the field called 'identifierUris'. It's a list and there is one element already and I'm trying to add another there.

Can't seem to find what this error is about. Has anyone encountered this before?

Upvotes: 0

Views: 1399

Answers (2)

Cameron Goodwin
Cameron Goodwin

Reputation: 1

I also ran into this when writing some samples. The other answer is correct that there is another app that has already defined those identifierURI's under your AAD tenant. But it only needs to be defined under one app. You can create another app / client ID in AAD under the tenant that doesn't have the identifierURI's the docs say you need and it will work to get the right token / Store ID.

I did this with my sample where another client had already defined them and hit this error. I just went ahead anyways with the rest of the setup docs and got it working requesting the right authorization / bearer tokens. Just know that for the commerce ones, I had to re-publish my app to the store before I started to see results otherwise I was just seeing blank results.

Upvotes: -1

Philippe Signoret
Philippe Signoret

Reputation: 14336

It is very likely you are trying to add a value to identifierUris which is already present in another app. Each value in identifierUris must be unique to a single Application object in Azure AD.

To check if it's already present on an app in your tenant, you can use Azure AD PowerShell to do a simple search to see if that's the case:

Get-AzureADApplication -Filter "identifierUris/any(c:c eq 'http:/example.com/id-uri')"

You could also do the query using the Azure AD Graph Explorer (and signing in with your Azure AD account):

https://graph.windows.net/myorganization/applications?$filter=identifierUris/any(c:c eq 'http:/example.com/id-uri')

Upvotes: 3

Related Questions