How can i check if aem asset has been processed in AEM cloud | Adobe Higher Education
Skip to main content
Level 2
December 8, 2023

How can i check if aem asset has been processed in AEM cloud

  • December 8, 2023
  • 3 답변들
  • 1281 조회

I Have a requirement, where i need to get dam:sha1 of asset to find asset duplicates. However Asset metadata gets created post processing of asset, if i check "dam:sha1" immediately in code it gives NPE. So how can i check if asset has been processed and i pick dam:sha1 property from metadata post that?

3 답변

Shashi_Mulugu
Community Advisor
Community Advisor
December 8, 2023

@abhijeet_kumar you dont need to write any new code, AEM provides this feature OOTB. Just follow this page on how to enable it in AEM..

 

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/detect-duplicate-assets.html?lang=en

Level 2
December 11, 2023

Hi @shashi_mulugu , Thanks for response. I know about this workflow. The problem is this workflow runs and sends notification in the inbox but  what i am  looking for is a dialog popping up on file upload progress itself. As it does in local system. If we enable detect duplicate `com.day.cq.dam.core.impl.servlet.CreateAssetServlet`. here we get the dialog upon upload of asset itself in local . We are looking to restrict user uploading duplicate Asset in system in cloud too.

April 22, 2025

Hi @abhijeet_kumar, I am also facing same issue. I have enabled 

detect_duplicate:true

com.day.cq.dam.core.impl.servlet.CreateAssetServlet. in my local cloud instance I am able to get popup screen. while checking in Dev cloud instance I am not getting any pop up. if your issue is resolved can you please provide me solution Ty.

aanchal-sikka
Community Advisor
Community Advisor
December 10, 2023

As @shashi_mulugu duplicate detection is available OOTB.

Just in case you need it for any other purpose, you would need to check if jcr:content/dam:assetState property is set to "processed".

 

 

Aanchal Sikka
Level 2
December 11, 2023

How can we check asset processed, it will throw null.

Do i need to loop and wait  for `jcr:content/dam:assetState`  turns to processed ?.
If so, please help here.

kautuk_sahni
Community Manager
Community Manager
December 11, 2023

@abhijeet_kumar 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