Expand my Community achievements bar.

jcr:uuid not being generated for pages in AEM Cloud

Avatar

Level 4

Recently we are noticing that newly created pages is not having any jcr:uuid associated with it. Is there any way to enable the automatic generation of jcr:uuid for every new page created. It was working fine when we checked last time. 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

5 Replies

Avatar

Level 4

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?

Avatar

Community Advisor

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?

Avatar

Level 4

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.

Avatar

Community Advisor

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/highli... 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/what-is-mix-referenceable-...

 

Hope this helps.



Esteban Bustamante