Set "hasUniqueValue" for existing property to "true" in App Object

I am using the new App Objects beta feature in my app. I defined the schema of the object and pushed it. However, I now need one of the properties of my object to be unique and I can’t update it myself. Here’s the error I’m getting when trying to deploy from the CLI:

Cannot change hasUniqueValue from falsetotrue on existing property axxxxxxxx_subscription_id

I tried removing the property altogether and creating a new one, but that gives me this error:

Cannot remove existing property axxxxxxxx_subscription_id``

I would appreciate any help here. Thank you

Hi @DBonofiglio,
Thank you for posting to the Community!
I understand that you need to make an existing property unique in the App Objects beta, but you are unable to change/remove it.
I’d like to tag in some of our Top Contributors to see if they have experienced this behavior before.
Hi @WesQ @Mike_Eastwood and @mangelet Are any of you all participating in this Beta? If so, are you able to reproduce the same error as @DBonofiglio?
Thank you!
Cassie, Community Manager

Hi @DBonofiglio ,

I’ve faced the same issue. This is a common limitation in HubSpot — it doesn’t allow updating a non-unique property to unique due to integrity constraints. However, what’s confusing is that even after deleting the property, HubSpot still doesn’t allow creating a new one with the same name and a unique constraint. This seems to be a HubSpot-side issue.

The only workaround is to create a new property with a different name and set it as unique during creation — that’s what I did, and it resolved the problem.

Best regards,
Mohd Israr