Can't delete property as previous property with same internal value and hasUniqueValue=true
Hi team, sharing this here as I recently worked with a customer with the following problem:
Customer deleted a property and wanted to recreate it as a unique property but run into the following error:
message: "The following property cannot be created with hasUniqueValue=true because a non-unique property with the same name previously existed in this portal
The proposed workaround is for the customer to create a new property with a new name or create this property as a non-unique property.
Ideally, it would be good if we could look into into the possibility of fully purging properties when deleted.
I agree that this needs to be "fixed". The interface doesn't even communicate the actual issue to the user; it just displays "There was a problem creating this property." You have to open your browser's developer console and view the response from the server.
I'm not sure what the rationale is here, but if a custom property has been fully deleted from the portal, being haunted by its ghost is a less than ideal user experience.
Background
Our company has a private app, custom cards, and custom code actions in our current portal. We're migrating some of our sales staff to their own portal and are trying to maintain a 1:1 setup between the current and new portal (this includes the private app, custom cards, and custom code actions). Unfortunately, the third-party we contracted to handle the migration missed the unique flag on an important property.
The workaround our third-party contractor came up with was to create the new, unique property; replace the non-unique property in all lists, reports, workflows, forms, etc.; then create a workflow to copy values from the unique property to the non-unique property in order to maintain backwards compatibility.
Ran into this same issue, thanks @serlim for reporting this, else I would not have understood for hours on end why I could not recreate a forcefully deleted property. I forgot to set the flag "unique" and hence just deleted the property to recreate it. Only to find out "There was a problem creating this property. Please try again, or refresh the page."
Great, now I can fix the internal label in the middleware numerous times.
Same Issue. I created a property, then found out too late that it needed to be unique, so i archived + deleted it. But then i'm unable to recreate this property with the same internal name (not sur if it's also true for the display name), even 48 hours laters.
So the combo "can't set unique after creation" + "cannot delete and recreate with same name" can be really annoying and frustrating, if you need to keep the same internal name.