cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can we make existing attribute unique?

former_member686625
Participant
0 Likes
955

Hi Experts,

I have an existing attribute "site" in one of a custom type I have created. Now, I would like to ADD modifier unique="true" to it.

Question 1: After running update system will Hybris change it to unique?

Question 2: After I did the above mentioned changes, I checked the modifiers on attribute in backoffice and found that unique was not updated to true but I was able to change it manually to true. Why hybris is allowing me to do it even manually then if it is not getting updated via update running system?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

geffchang
Active Contributor
0 Likes

Before you did a Platform Update, did you also check the extension (under Project data settings), which contained the modified items.xml? If not, you need to check it before you do Platform Update.

mpern
Product and Topic Expert
Product and Topic Expert
0 Likes

Project data is independent of data model changes, there is no need to import project data to have the new data models in the system

former_member686625
Participant
0 Likes

Right Markus but the question remains. Can I make the existing attribute unique later on and if NO, then why hybris allowing me to do that even from backoffice? This is confusing to me and I am unable to understand if there will be any negative impact of updating via backoffice manually.

0 Likes

Hi Manish, This scenario has worked for me.We can modify it. Not sure why your update is not modifying the item. try a ant clean all and then update.

former_member686625
Participant
0 Likes

Okay. Thanks.