Retaining document UUID while replacing document with same another document having same name | Adobe Higher Education
Skip to main content
Level 2
February 6, 2024
해결됨

Retaining document UUID while replacing document with same another document having same name

  • February 6, 2024
  • 3 답변들
  • 1477 조회

I have a document with name 'test' which have uuid as 03dc83f9-c9b4-4827-9994-04e7a77c4045 but when I replace document with other document having same name its uuid is change to 4f76908f-c00a-479b-95fa-ce2dba99226c .Is there any way to retain same uuid since I am using document uuid in other application and due to mismatch it is not working properly when someone replace document.

이 주제는 답변이 닫혔습니다.
최고의 답변: aanchal-sikka

@shivamra 

The UUID allocation is not a UI operation. Its on repository level. You would not be able to customize it via UI.

 

Moreover, replace is kind-of "delete -> create", thus you even loose the metadata.

 

You are using UUID for any customization, you should probably put random number as a metadata, and avoid replace. Rather use "Create Version", which will retain the metadata.

 

3 답변

Kamal_Kishor
Community Advisor
Community Advisor
February 6, 2024

@shivamra : Please refer this:-https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-uuid/m-p/279555

As per this, it is not advisable to rely on uuid property and it may not be based on the document name (AEM has its own logic to generate it). Even when you delete the original document and upload the same document again, it will generate a different jcr:uuid property value for it.

UUIDs are implementation details of the repository, and I would never reference them from an external system.

 thanks.

shivamra작성자
Level 2
February 7, 2024

Hi @kamal_kishor Is there any way I can customize replace button behaviour of changing UUID for the files having same name. Just want to know if we can carry forward the uuid from old document and assign it to new document with whom we are replacing it with.

aanchal-sikka
Community Advisor
Community Advisor
February 8, 2024

@shivamra 

The UUID allocation is not a UI operation. Its on repository level. You would not be able to customize it via UI.

 

Moreover, replace is kind-of "delete -> create", thus you even loose the metadata.

 

You are using UUID for any customization, you should probably put random number as a metadata, and avoid replace. Rather use "Create Version", which will retain the metadata.

 

Aanchal Sikka
narendragandhi
Community Advisor
Community Advisor
February 6, 2024

Hi @shivamra 

 

If this an AEM Guides implementation, can you confirm if you have setup your AEM repository as UUID build or non-UUID build - https://experienceleague.adobe.com/docs/experience-manager-guides/using/release-info/latest-release-info.html?lang=en

 

Thanks

Narendra

shivamra작성자
Level 2
February 7, 2024

It's actually UUID build .

kautuk_sahni
Community Manager
Community Manager
February 8, 2024

@shivamra Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni