Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
EstebanBustamante
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
Dec 5, 2024 1:54 PM UTC

Hi,

 

The creation of the jcr:uuid is provided by the mixin mix:referenceable. By default, pages won’t have this property so you won't have this by default either. 

 

Auto generating jcr:uuid? There could be tweaks to try to create the jcr:uuid when the page is first created, but I would not recommend this. Instead, use the default ID to identify any node in JCR (the path). If this is not sufficient, i think it’s preferable to come up with a custom solution for generating an ID.

 

References:

https://jackrabbit.apache.org/archive/wiki/JCR/Mix--referenceable_115513457.html

https://stackoverflow.com/questions/31012002/how-does-jackrabbit-generate-jcruuid-in-aem 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-uuid/m-p/279559/highlight/true#M16209 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/what-is-mix-referenceable-in-aem/td-p/542234

 

Hope this helps.

Esteban Bustamante

6 replies

PRATHYUSHA_VP
Community Advisor
Community Advisor
Dec 4, 2024 1:09 PM UTC
Ankan_Ghosh
Level 3
Dec 4, 2024 1:57 PM UTC

I want to know about the potential reason behind the issue I am facing where uuid is not being generated. Any idea what can be the reason or a fix for this?

Translate
Asutosh_Jena_
Community Advisor
Community Advisor
Dec 4, 2024 2:27 PM UTC

Hi @ankan_ghosh 

Are you facing this issue in any specific instance/environment or in all environment? If in all environment, were there any changes made after which you started facing this issue?

Translate
Ankan_Ghosh
Level 3
Dec 5, 2024 7:32 AM UTC

Only on stage and prod environment. Dev is still generating the uuid after publishing the pages. I build the main branch locally and uuid is being generated in this case as well.

Translate
EstebanBustamante
Adobe Champion and Community Advisor
EstebanBustamanteAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
Dec 5, 2024 1:54 PM UTC

Hi,

 

The creation of the jcr:uuid is provided by the mixin mix:referenceable. By default, pages won’t have this property so you won't have this by default either. 

 

Auto generating jcr:uuid? There could be tweaks to try to create the jcr:uuid when the page is first created, but I would not recommend this. Instead, use the default ID to identify any node in JCR (the path). If this is not sufficient, i think it’s preferable to come up with a custom solution for generating an ID.

 

References:

https://jackrabbit.apache.org/archive/wiki/JCR/Mix--referenceable_115513457.html

https://stackoverflow.com/questions/31012002/how-does-jackrabbit-generate-jcruuid-in-aem 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-uuid/m-p/279559/highlight/true#M16209 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/what-is-mix-referenceable-in-aem/td-p/542234

 

Hope this helps.

Translate
Esteban Bustamante
kautuk_sahni
Level 9
Jan 7, 2025 12:23 PM UTC

@ankan_ghosh Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni